diff --git a/nix/infra/nginx.nix b/nix/infra/nginx.nix index fbe1985..7dd0080 100644 --- a/nix/infra/nginx.nix +++ b/nix/infra/nginx.nix @@ -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;