Compare commits

..

1 Commits

Author SHA1 Message Date
07d7f02720 Handle multiple domains in records in status API 2025-02-06 16:32:10 +05:30
2 changed files with 6 additions and 7 deletions

View File

@ -1,8 +1,7 @@
# Webapp Deployer
# webapp-deployment-status-api
This service is run by Laconic Network Service Providers and listens for ApplicationDeploymentRequests on the Laconic Registry. When a valid Request is published onchain, this service will build and host the application on the Service Providers' Kubernetes cluster.
For setup, see [here](https://git.vdb.to/cerc-io/testnet-ops/src/branch/main/service-provider-setup$0)
This API provides status information about webapp deployment requests and a mechanism for upload encrypted configuration
files used by those requests.
## Build and Run
@ -139,6 +138,4 @@ CHECK_INTERVAL=15
AUCTION_CHECK_INTERVAL=10
HANDLE_AUCTION_REQUESTS=true
AUCTION_BID_AMOUNT=50000
DEPLOYER_GITHUB_TOKEN="optional, set for deploying private repos"
```

View File

@ -159,7 +159,9 @@ export class RegHelper {
}
status.app = r.attributes.application;
const hostname = r.attributes.dns ?? generateHostnameForApp(app);
const dnsList: string[] = r.attributes.dns ? r.attributes.dns.split(",") : [];
const hostname = dnsList.length ? dnsList[dnsList.length - 1] : generateHostnameForApp(app);
if (deploymentsByRequest.has(r.id)) {
const deployment = deploymentsByRequest.get(r.id);