Update syncthing setup
This commit is contained in:
parent
dcbdfdc422
commit
734b1a3321
9 changed files with 363 additions and 195 deletions
21
templates/syncthing/nginx.j2
Normal file
21
templates/syncthing/nginx.j2
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
upstream syncthing-upstream {
|
||||
server syncthing:8384;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name {{ syncthing_domain }};
|
||||
|
||||
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 X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_pass http://syncthing-upstream;
|
||||
proxy_read_timeout 600;
|
||||
proxy_send_timeout 600;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue