Commit 2ce34a325c
Verified · cmc
Layout: unified · split
linux/nginx/etc/nginx/conf.d/art.conf −1
| @@ -1,5 +1,4 @@ | |||
| 1 | server { | 1 | server { |
| 2 | listen [::]:443 ssl; | ||
| 3 | listen 443 ssl; | 2 | listen 443 ssl; |
| 4 | http2 on; | 3 | http2 on; |
| 5 | server_name art.cleberg.net mplqs2jxkjd5wxak3zjv55oxyadf4vwzx6ksgj4ztftndjl6elgsf4qd.onion; | 4 | server_name art.cleberg.net mplqs2jxkjd5wxak3zjv55oxyadf4vwzx6ksgj4ztftndjl6elgsf4qd.onion; |
linux/nginx/etc/nginx/conf.d/bt.conf added +35
| @@ -0,0 +1,35 @@ | |||
| 1 | server { | ||
| 2 | listen 443 ssl; | ||
| 3 | http2 on; | ||
| 4 | server_name bt.cleberg.net; | ||
| 5 | |||
| 6 | include custom.d/tls/ssl_engine.conf; | ||
| 7 | include custom.d/tls/certificate_files.conf; | ||
| 8 | include custom.d/tls/policy_strict.conf; | ||
| 9 | include custom.d/basic.conf; | ||
| 10 | |||
| 11 | # location /authelia { | ||
| 12 | # include custom.d/reverse_proxy/authelia.conf; | ||
| 13 | # } | ||
| 14 | |||
| 15 | location = / { | ||
| 16 | # include custom.d/reverse_proxy/authelia_request.conf; | ||
| 17 | return 301 /transmission/web/; | ||
| 18 | } | ||
| 19 | |||
| 20 | location /transmission/ { | ||
| 21 | # include custom.d/reverse_proxy/authelia_request.conf; | ||
| 22 | proxy_read_timeout 300; | ||
| 23 | proxy_http_version 1.1; | ||
| 24 | |||
| 25 | proxy_set_header Host $host; | ||
| 26 | proxy_set_header X-Real-IP $remote_addr; | ||
| 27 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| 28 | proxy_set_header X-Forwarded-Proto $scheme; | ||
| 29 | proxy_set_header X-Forwarded-Host $host; | ||
| 30 | proxy_set_header X-Forwarded-Server $host; | ||
| 31 | |||
| 32 | proxy_pass_header X-Transmission-Session-Id; | ||
| 33 | proxy_pass http://127.0.0.1:9091; | ||
| 34 | } | ||
| 35 | } | ||