Last active
November 17, 2024 00:08
-
-
Save smartwatermelon/d323a32d36293a7407e138e0556db886 to your computer and use it in GitHub Desktop.
nginx config to make Transmission accept https connections from internal network without password prompt
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 443 ssl; | |
server_name YOUR_TRANSMISSION_HOST_NAME; | |
ssl_certificate /usr/local/etc/nginx/ssl/nginx.crt; | |
ssl_certificate_key /usr/local/etc/nginx/ssl/nginx.key; | |
# you should create a self-signed cert: | |
# sudo mkdir -p /usr/local/etc/nginx/ssl | |
# sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /usr/local/etc/nginx/ssl/nginx.key -out /usr/local/etc/nginx/ssl/nginx.crt | |
location /transmission { | |
proxy_pass http://localhost:19091; | |
# Make Transmission see the connection as coming from localhost | |
proxy_set_header X-Real-IP 127.0.0.1; | |
proxy_set_header X-Forwarded-For 127.0.0.1; | |
proxy_set_header Host localhost; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment