config/nginx/README.md

377 B

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