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" = {
|
"clan-war.net" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = 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" = {
|
"api.clan-war.net" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue