Set up Syncthing reverse proxy

This commit is contained in:
coolneng 2019-11-13 00:00:04 +01:00
parent 84a17713ea
commit 630e32cc9d
4 changed files with 13 additions and 9 deletions

View File

@ -34,12 +34,14 @@
- [X] Basic configuration - [X] Basic configuration
- [X] Relay server - [X] Relay server
- [ ] Discovery server - [ ] Discovery server
*** DONE Radicale *** DONE Radicale [0/2] [0%]
CLOSED: [2019-11-08 Fri 13:51] CLOSED: [2019-11-08 Fri 13:51]
- [ ] Harden password
- [ ] Encrypt password
** Web stack [1/7] [14%] ** Web stack [1/7] [14%]
*** IN-PROGRESS Nginx [1/5] [20%] *** IN-PROGRESS Nginx [2/5] [40%]
- [X] Radicale reverse proxy - [X] Radicale reverse proxy
- [ ] Syncthing reverse proxy - [X] Syncthing reverse proxy
- [ ] Wallabag vhost - [ ] Wallabag vhost
- [ ] Gitea vhost - [ ] Gitea vhost
- [ ] Miniflux vhost - [ ] Miniflux vhost
@ -47,10 +49,11 @@
- [ ] Php-fpm - [ ] Php-fpm
*** TODO PostgreSQL [0/1] [0%] *** TODO PostgreSQL [0/1] [0%]
- [ ] Restore DBs - [ ] Restore DBs
*** DONE ACME [2/2] [100%] *** DONE ACME [2/3] [66%]
CLOSED: [2019-11-10 Sun 21:47] CLOSED: [2019-11-10 Sun 21:47]
- [X] Obtain certs - [X] Obtain certs
- [X] Automatic renewal - [X] Automatic renewal
- [ ] Generate dhparam
*** TODO Wallabag *** TODO Wallabag
*** TODO Miniflux *** TODO Miniflux
*** TODO Hugo [0/2] [0%] *** TODO Hugo [0/2] [0%]

View File

@ -23,11 +23,11 @@
#cert = ""; #cert = "";
#key = ""; #key = "";
folders = { folders = {
"Documents" = { devices = [ "monolith" ]; id = "wusdj-bfjkr"; }; "Documents" = { devices = [ "monolith" "roamer" ]; id = "wusdj-bfjkr"; };
"Notes" = { devices = [ "monolith" "roamer" ]; id = "2aqt7-vpprc"; }; "Notes" = { devices = [ "monolith" "roamer" ]; id = "2aqt7-vpprc"; };
"Music" = { devices = [ "monolith" ]; id = "kafhz-bfmzm"; }; "Music" = { devices = [ "monolith" "roamer" ]; id = "kafhz-bfmzm"; };
"Photos" = { devices = [ "monolith" "roamer" ]; id = "mjibc-ustcg"; }; "Photos" = { devices = [ "monolith" "roamer" ]; id = "mjibc-ustcg"; };
"Security" = { devices = [ "monolith" ]; id = "z4lpn-pmm3v"; }; "Security" = { devices = [ "monolith" "roamer" ]; id = "z4lpn-pmm3v"; };
"Projects" = { devices = [ "monolith" ]; id = "cjhmu-avy9v"; }; "Projects" = { devices = [ "monolith" ]; id = "cjhmu-avy9v"; };
Documents.type = "receiveonly"; Documents.type = "receiveonly";

View File

@ -20,7 +20,6 @@
631 # Cups 631 # Cups
6566 # SANE 6566 # SANE
22067 # Syncthing relay 22067 # Syncthing relay
8384 # Syncthing GUI
80 80
443 443
]; ];

View File

@ -54,10 +54,12 @@
proxyPass = "http://localhost:5232/"; proxyPass = "http://localhost:5232/";
extraConfig = '' extraConfig = ''
proxy_set_header X-Script-Name /radicale; proxy_set_header X-Script-Name /radicale;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_header Authorization; proxy_pass_header Authorization;
''; '';
}; };
locations."/syncthing/" = {
proxyPass = "http://localhost:8384/";
};
}; };
}; };
}; };