-
-
Save heysamtexas/8b35b0b0af24d520aee0 to your computer and use it in GitHub Desktop.
Configuration to use nginx as reverse proxy for Transmission BT with SSL protected with auth
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
upstream transmission { | |
server 127.0.0.1:9091; #Transmission | |
} | |
server { | |
listen 443 ssl spdy; | |
server_name example.com; | |
auth_basic "Server Restricted"; | |
auth_basic_user_file /var/www/myWebSite/web/.htpasswd; | |
# Path to the root of your installation | |
error_log /var/www/myWebSite/logs/error.log; | |
access_log /var/www/myWebSite/logs/access.log; | |
### SSL cert files ### | |
ssl_certificate /var/www/myWebSite/ssl/advert.crt; | |
ssl_certificate_key /var/www/myWebSite/ssl/advert.key; | |
### Add SSL specific settings here ### | |
ssl_session_timeout 10m; | |
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP; | |
ssl_prefer_server_ciphers on; | |
location ^~ /transmission/ { | |
proxy_http_version 1.1; | |
proxy_set_header Connection ""; | |
proxy_pass_header X-Transmission-Session-Id; | |
location /transmission/rpc { | |
proxy_pass http://transmission; | |
} | |
location /transmission/web/ { | |
proxy_pass http://transmission; | |
} | |
location /transmission/upload { | |
proxy_pass http://transmission; | |
} | |
location /transmission/web/style/ { | |
alias /usr/share/transmission/web/style/; | |
} | |
location /transmission/web/javascript/ { | |
alias /usr/share/transmission/web/javascript/; | |
} | |
location /transmission/web/images/ { | |
alias /usr/share/transmission/web/images/; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment