From cf1d92a7458313b9f3212b6d67958996341e11d4 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 31 Mar 2020 20:50:14 -0700 Subject: Finally fix guardIP First problem was that my `extract` function wasn't working. Second problem was that nginx wasn't passing along the headers anyway. --- Run/Que/service.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Run/Que/service.nix') diff --git a/Run/Que/service.nix b/Run/Que/service.nix index b9f5c19..1d82bd6 100644 --- a/Run/Que/service.nix +++ b/Run/Que/service.nix @@ -60,6 +60,10 @@ in enableACME = true; locations."/" = { proxyPass = "http://localhost:${toString cfg.port}"; + extraConfig = '' + # forward the headers so the `guardIP` function works properly + proxy_pass_request_headers on; + ''; }; }; }; -- cgit v1.2.3