Refactor nftables, vpn and transmission configuration
This commit is contained in:
parent
465a5d2887
commit
dcbdfdc422
24 changed files with 292 additions and 192 deletions
20
templates/transmission/nginx.j2
Normal file
20
templates/transmission/nginx.j2
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
upstream transmission-upstream {
|
||||
server transmission:9091;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name {{ transmission_domain }};
|
||||
|
||||
location / {
|
||||
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;
|
||||
|
||||
proxy_pass http://transmission-upstream;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue