Simple private cloud in Docker !
git clone https://github.com/13paulmurith/nextcloud-docker.git
docker-compose up -d & docker-compose stop
Remove the 4430 server part from nextcloud-example.conf and edit it like this :
server { listen 8000; server_name {server_ip}; }
Add DNS host entry to your domain and change server_name (use 'nextcloud-example.conf' it's easier)
server { listen 8000; server_name nextcloud.domain.tld; return 301 https://$host$request_uri; }
server { listen 4430 ssl http2; server_name nextcloud.domain.tld; ssl_certificate /certs/domain.tld.crt; ssl_certificate_key /certs/domain.tld.key; location / { proxy_pass http://nextcloud:8888; include /conf.d/proxy-params.conf; } }
Navigate to https://certbot.eff.org/lets-encrypt and follow instructions