config/nginx
Adrian 3200fc17e9 Add nextcloud, backup, and ssh setup 2020-04-17 01:03:15 +02:00
..
conf.d Add nextcloud, backup, and ssh setup 2020-04-17 01:03:15 +02:00
sites-available Add nextcloud, backup, and ssh setup 2020-04-17 01:03:15 +02:00
snippets Add nextcloud, backup, and ssh setup 2020-04-17 01:03:15 +02:00
README.md Add nextcloud, backup, and ssh setup 2020-04-17 01:03:15 +02:00

README.md

Nginx

DOMAIN=example.com

sudo cp -r sites-available snippets conf.d /etc/nginx

sudo rm /etc/nginx/sites-*/default
sudo ln -s ../sites-available/0nohost /etc/nginx/sites-enabled
sudo ln -s ../sites-available/redirect-ssl-all /etc/nginx/sites-enabled

sudo sed -i s/example.com/$DOMAIN/ /etc/nginx/conf.d/ssl.conf

Certificate Reload

nginx -s reload