Skip to content

Instantly share code, notes, and snippets.

@heysamtexas
Created February 14, 2016 23:41
Show Gist options
  • Save heysamtexas/643ee5f3a5366c430c00 to your computer and use it in GitHub Desktop.
Save heysamtexas/643ee5f3a5366c430c00 to your computer and use it in GitHub Desktop.
Config for transmission behind nginx
# all credit goes to: https://www.dgsec.net/transmission-web-over-https-with-nginx/
server {
listen 443 ssl;
listen [::]:443 ssl ;
server_name torrent.YOURDOMAIN.NET;
ssl_certificate ssl/YOURCERT.crt;
ssl_certificate_key ssl/YOURCERT.pem;
ssl_dhparam ssl/YOUR_dhparam.pem;
## security enforcement
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
ssl_stapling on;
ssl_stapling_verify on;
## /security enforcement
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect false;
proxy_pass http://127.0.0.1:9099;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment