diff --git a/homelab-services/nimh-static/flake.nix b/homelab-services/nimh-static/flake.nix index a988a99..d98ca9d 100644 --- a/homelab-services/nimh-static/flake.nix +++ b/homelab-services/nimh-static/flake.nix @@ -81,6 +81,14 @@ locations."/" = { # Default k3s port? proxyPass = "http://127.0.0.1:30080"; + + extraConfig = '' + proxy_set_header Host $host; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + ''; }; }; }; diff --git a/nixos/configuration.nix b/nixos/configuration.nix index f683848..cb3a2d2 100755 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -86,6 +86,7 @@ }; }; + # This deploys to the k3s cluster declared below services.nimh-static = { enable = true;