home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 84aae5d4f69ea336fc69ecdc760a0750b66428b4
parent 04dcabda5bbceff2243972572d63269c85afd212
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 15 Apr 2022 12:31:40 +0200

systems/wakasu: fix nginx configuration

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/hosts/wakasu.nix | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/systems/hosts/wakasu.nix b/systems/hosts/wakasu.nix @@ -103,9 +103,11 @@ in enableACME = true; forceSSL = true; locations."/" = { - proxy_set_header = "Host $host"; - proxy_set_header = "X-Forwarded-For $remote_addr"; proxyPass = "http://192.168.1.187:80"; + extraConfig = '' + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + ''; }; }; };