Forked from michaelkeevildown/ssl-transmission-nginx.conf
Created
December 6, 2019 02:54
-
-
Save linuxpld/0ec8fa68a87bbc6abb3a37a84b5bce00 to your computer and use it in GitHub Desktop.
SSL Transmission Nginx Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
server_name domain.com; | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
server { | |
listen 443 default_server; | |
server_name domain.com; | |
root /var/www; | |
ssl on; | |
ssl_certificate /etc/nginx/ssl/transmission.cert; | |
ssl_certificate_key /etc/nginx/ssl/transmission.key; | |
ssl_session_timeout 5m; | |
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES"; | |
ssl_prefer_server_ciphers on; | |
# individual nginx logs for this gitlab vhost | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
#location /index { | |
# autoindex on; | |
#} | |
location / { | |
proxy_read_timeout 300; | |
proxy_pass_header X-Transmission-Session-Id; | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header X-Forwarded-Server $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
# if you changed the port number for transmission daemon, then adjust the | |
# folllowing line | |
proxy_pass http://127.0.0.1:9091/transmission/web/; | |
} | |
# Also Transmission specific | |
location /rpc { | |
proxy_pass http://127.0.0.1:9091/transmission/rpc; | |
} | |
location /upload { | |
proxy_pass http://127.0.0.1:9091/transmission/upload; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment