diff --git a/nixos/system/hectic-lab/mechabellum.nix b/nixos/system/hectic-lab/mechabellum.nix index e4a8982..fc3576e 100644 --- a/nixos/system/hectic-lab/mechabellum.nix +++ b/nixos/system/hectic-lab/mechabellum.nix @@ -33,14 +33,10 @@ in { forceSSL = true; root = inputs.mechabellum-replay-analysis.packages.${system}.frontend; - locations."/api/" = { - proxyPass = "http://${apiHost}:${builtins.toString apiPort}/api/"; + locations."/api" = { + proxyPass = "http://${apiHost}:${builtins.toString apiPort}"; extraConfig = '' proxy_http_version 1.1; - proxy_set_header 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; ''; };