fix syncthing proxy

fix syncthing proxy
This commit is contained in:
Joakim Repomaa
2025-02-07 19:33:29 +02:00
committed by Joakim Repomaa
parent 2d6e8607f3
commit 953d2b5c5d
2 changed files with 9 additions and 9 deletions

View File

@@ -10,15 +10,11 @@ in
enable = true;
dataDir = "/mnt/storage/syncthing";
openDefaultPorts = true;
guiAddress = "127.0.0.1:${toString port}";
guiAddress = "[::1]:${toString port}";
settings.gui.insecureSkipHostCheck = true;
};
modules.webserver.vHosts.${fqdn}.locations."/" = {
proxy = "http://127.0.0.1:${toString port}";
extraConfig = ''
proxy_set_header Host $host;
'';
};
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}";
fileSystems."${storage_dir}" = {
device = "//u407959.your-storagebox.de/backup/syncthing";