From 74ed204e6b727328b0478c8aaeebc8c782132aa6 Mon Sep 17 00:00:00 2001 From: yukkop Date: Wed, 27 May 2026 18:48:29 +0000 Subject: [PATCH] fix: `mechabellum`: api --- nixos/system/hectic-lab/mechabellum.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; ''; };