Skip to content

Instantly share code, notes, and snippets.

@fergalmoran
Created November 2, 2017 17:21
Show Gist options
  • Save fergalmoran/6164a3690633cf105c18c6ac2a72f872 to your computer and use it in GitHub Desktop.
Save fergalmoran/6164a3690633cf105c18c6ac2a72f872 to your computer and use it in GitHub Desktop.
Sonarr (or anything) Let's Encrypt & nginx reverse proxy
Run
./certbot-auto certonly --standalone --agree-tos --redirect --duplicate --text --email [email protected] \
-d sonarr.bitchmints.com --server https://acme-v01.api.letsencrypt.org/directory
nginx config
server {
listen 443;
server_name sonarr.bitchmints.com;
ssl on;
ssl_certificate /etc/letsencrypt/live/sonarr.bitchmints.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/sonarr.bitchmints.com/privkey.pem;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:!aNULL:!MD5:!DSS;
ssl_prefer_server_ciphers on;
location / {
¦ proxy_pass http://localhost:8989;
proxy_buffering off;
¦ proxy_set_header Host $host;
¦ proxy_set_header X-Real-IP $remote_addr;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment