summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/networking/firefox-syncserver.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/networking/firefox-syncserver.nix')
-rw-r--r--nixos/modules/services/networking/firefox-syncserver.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/firefox-syncserver.nix b/nixos/modules/services/networking/firefox-syncserver.nix
index a06b9573a850..42924d7f6993 100644
--- a/nixos/modules/services/networking/firefox-syncserver.nix
+++ b/nixos/modules/services/networking/firefox-syncserver.nix
@@ -304,6 +304,10 @@ in
forceSSL = cfg.singleNode.enableTLS;
locations."/" = {
proxyPass = "http://127.0.0.1:${toString cfg.settings.port}";
+ # We need to pass the Host header that matches the original Host header. Otherwise,
+ # Hawk authentication will fail (because it assumes that the client and server see
+ # the same value of the Host header).
+ recommendedProxySettings = true;
};
};
};