From 39134ba640289f65b95dafbeddf86120ceb0f917 Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Fri, 7 Feb 2025 18:56:40 +0200 Subject: [PATCH] fix syncthing service --- hosts/freun.dev/services/syncthing.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/freun.dev/services/syncthing.nix b/hosts/freun.dev/services/syncthing.nix index eba9e44..e8071b8 100644 --- a/hosts/freun.dev/services/syncthing.nix +++ b/hosts/freun.dev/services/syncthing.nix @@ -13,7 +13,12 @@ in guiAddress = "127.0.0.1:${toString port}"; }; - modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}"; + modules.webserver.vHosts.${fqdn}.locations."/" = { + proxy = "http://localhost:${toString port}"; + extraConfig = '' + proxy_set_header Host $host; + ''; + }; fileSystems."${storage_dir}" = { device = "//u407959.your-storagebox.de/backup/syncthing";