A loadbalancer config for all services
- install nginx and certbot
- request needed certificated for all domains using
sudo certbot --nginx
- clone this repository on remote
- symlink sites-available
sudo ln -s /folder/of/repository/nginx/sites-available /etc/nginx/sites-available
then symlink sites-enabledsudo ln -s /etc/nginx/sites-available /etc/nginx/sites-enabled
- symlink static file serving
sudo ln -s /folder/of/static/ /var/www/html/
- check nginx config
sudo nginx -t
eventually adjustssl_certificate
andssl_certificate_key
paths - restart nginx
sudo systemctl restart nginx.service