Forked from michaelkeevildown/ssl-transmission-nginx.conf
Last active
January 25, 2020 16:46
-
-
Save Kambaa/ba13b4582747b10c26c57d8438868ecf to your computer and use it in GitHub Desktop.
SSL Transmission Nginx Config
This file contains 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; | |
#} | |
#TRANSMISSION TORRENT WEB CLIENT SETUP START FOR MY PI | |
location /transmission/ { | |
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; | |
} | |
#TRANSMISSION TORRENT WEB CLIENT SETUP END | |
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
This helped me fix a few problems I was having, thank you :)