Merge branch 'master' of github.com:hectic-lab/util.nix
This commit is contained in:
@@ -33,14 +33,10 @@ in {
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
root = inputs.mechabellum-replay-analysis.packages.${system}.frontend;
|
root = inputs.mechabellum-replay-analysis.packages.${system}.frontend;
|
||||||
|
|
||||||
locations."/api/" = {
|
locations."/api" = {
|
||||||
proxyPass = "http://${apiHost}:${builtins.toString apiPort}/api/";
|
proxyPass = "http://${apiHost}:${builtins.toString apiPort}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_http_version 1.1;
|
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