Skip to main content

Nginx with TLS

·1 min
# Install
sudo apt install nginx certbot python3-certbot-nginx

# Setup TLS on a new domain. Say 'yes' when it asks whether to setup automatic redirection from HTTP to HTTPS.
sudo certbot --nginx -d wallabag.flister.cf

# Edit configuration in /etc/nginx/sites-enabled, especially the `location` section for the relevant domain, and reload.
sudo systemctl reload nginx