From 2fc4da92445460e1f2575d6ddce094d3ebfff526 Mon Sep 17 00:00:00 2001 From: kalipso Date: Tue, 21 Jan 2025 21:25:42 +0100 Subject: [PATCH] [nginx] proxy forward host --- machines/durruti/host_config.nix | 2 ++ machines/fanny/configuration.nix | 2 ++ machines/vpn/configuration.nix | 1 + 3 files changed, 5 insertions(+) diff --git a/machines/durruti/host_config.nix b/machines/durruti/host_config.nix index 504a26f..9bb3c7b 100644 --- a/machines/durruti/host_config.nix +++ b/machines/durruti/host_config.nix @@ -39,6 +39,7 @@ in locations."/" = { proxyPass = "http://10.0.0.10"; extraConfig = '' + proxy_set_header Host $host; ''; }; }; @@ -49,6 +50,7 @@ in locations."/" = { proxyPass = "http://10.0.0.12"; extraConfig = '' + proxy_set_header Host $host; ''; }; }; diff --git a/machines/fanny/configuration.nix b/machines/fanny/configuration.nix index 2eb0c6b..05c3f00 100644 --- a/machines/fanny/configuration.nix +++ b/machines/fanny/configuration.nix @@ -67,6 +67,7 @@ in locations."/" = { proxyPass = "http://10.0.0.11:9000"; extraConfig = '' + proxy_set_header Host $host; ''; }; }; @@ -75,6 +76,7 @@ in locations."/" = { proxyPass = "http://10.0.0.13"; extraConfig = '' + proxy_set_header Host $host; ''; }; }; diff --git a/machines/vpn/configuration.nix b/machines/vpn/configuration.nix index bd67ecf..a71cf8f 100644 --- a/machines/vpn/configuration.nix +++ b/machines/vpn/configuration.nix @@ -34,6 +34,7 @@ with lib; locations."/" = { proxyPass = "http://10.100.0.101"; extraConfig = '' + proxy_set_header Host $host; ''; };