Set up Syncthing reverse proxy

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

View File

@@ -23,11 +23,11 @@
#cert = "";
#key = "";
folders = {
"Documents" = { devices = [ "monolith" ]; id = "wusdj-bfjkr"; };
"Documents" = { devices = [ "monolith" "roamer" ]; id = "wusdj-bfjkr"; };
"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"; };
"Security" = { devices = [ "monolith" ]; id = "z4lpn-pmm3v"; };
"Security" = { devices = [ "monolith" "roamer" ]; id = "z4lpn-pmm3v"; };
"Projects" = { devices = [ "monolith" ]; id = "cjhmu-avy9v"; };
Documents.type = "receiveonly";

View File

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

View File

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