Update nginx.nix
All checks were successful
Deploy NixOS / deploy (push) Successful in 31s

This commit is contained in:
2026-02-13 10:29:18 -07:00
parent 410ab37a91
commit 4df3457aa8

View File

@@ -396,8 +396,16 @@ in
forceSSL = true;
# lk-jwt-service (handles its own CORS)
locations."~ ^(/sfu/get|/healthz)" = {
priority = 400;
locations."/sfu/get" = {
proxyPass = "http://[::1]:${toString config.services.lk-jwt-service.port}";
extraConfig = ''
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;
'';
};
locations."/healthz" = {
proxyPass = "http://[::1]:${toString config.services.lk-jwt-service.port}";
extraConfig = ''
proxy_set_header Host $host;