infra: put api on same endpoint

This commit is contained in:
jopejoe1 2024-07-11 14:28:27 +02:00
parent 11770f7635
commit 7103636ed6

View file

@ -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;