infra: put api on same endpoint
This commit is contained in:
parent
11770f7635
commit
7103636ed6
1 changed files with 4 additions and 1 deletions
|
@ -15,7 +15,10 @@
|
|||
"clan-war.net" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/".root = "${self.legacyPackages.${config.nixpkgs.hostPlatform.system}.web.override { withBackendUrl = "https://api.clan-war.net/api/v1";}}/";
|
||||
locations = {
|
||||
"/".root = "${self.legacyPackages.${config.nixpkgs.hostPlatform.system}.web.override { withBackendUrl = "https://clan-war.net/api/v1";}}/";
|
||||
"/api".proxyPass = "http://localhost:8080/api";
|
||||
};
|
||||
};
|
||||
"api.clan-war.net" = {
|
||||
forceSSL = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue