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