fix: mechabellum: api
This commit is contained in:
@@ -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;
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user