Created
December 11, 2015 00:40
-
-
Save ekho/8d073ebbb02d77ddb311 to your computer and use it in GitHub Desktop.
Nginx configs for some tools
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 { | |
index index.html index.htm; | |
server_name btsync.local; | |
access_log /var/log/nginx/btsync.local-access.log; | |
error_log /var/log/nginx/btsync.local-error.log; | |
location / { | |
rewrite ^/gui(.*) $1 last; | |
proxy_pass http://127.0.0.1:8888/gui/; | |
proxy_redirect /gui/ /; | |
proxy_buffering off; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
# proxy_set_header Authorization "Basic <base64 of login:password>"; # optionally | |
} | |
} |
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 { | |
index index.html index.htm; | |
server_name plex.local; | |
access_log /var/log/nginx/plex.local-access.log; | |
error_log /var/log/nginx/plex.local-error.log; | |
location / { | |
proxy_pass http://127.0.0.1:32400/web/; | |
proxy_redirect default; | |
proxy_buffering off; | |
} | |
} |
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; | |
keepalive 4; | |
} | |
server { | |
index index.html index.htm; | |
server_name transmission.local; | |
access_log /var/log/nginx/transmission.local-access.log; | |
error_log /var/log/nginx/transmission.local-error.log; | |
location / { | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
# proxy_set_header Authorization "Basic <base64 of login:password>"; # optionally | |
proxy_pass_header X-Transmission-Session-Id; | |
location /rpc { | |
proxy_pass http://transmission/transmission/rpc; | |
proxy_redirect off; | |
proxy_buffering off; | |
} | |
proxy_pass http://transmission/transmission/web/; | |
proxy_redirect off; | |
proxy_buffering off; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment