diff --git a/Dockerfile b/Dockerfile index 29cad6e..a15aaca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:14 +FROM node:18 WORKDIR /usr/src/app @@ -9,4 +9,4 @@ RUN yarn install COPY . . EXPOSE 80 -CMD [ "node", "./bin/www" ] \ No newline at end of file +CMD [ "node", "./bin/www" ] diff --git a/README.md b/README.md index a5d1c3f..6bb50ce 100644 --- a/README.md +++ b/README.md @@ -20,14 +20,14 @@ The api doc is available at http://localhost:3001/api-docs by default. | Method | GET | | Description | Return the current APY on the network. | -| Endpoint | /validators/accountinfos | -|-------------|-------------------------------------------------| -| Method | GET | -| Description | Return an array of validator enhanced with data from the account infos smart contract | +| Endpoint | /validators/accountinfos | +|-------------|---------------------------------------------------------------------------------------| +| Method | GET | +| Description | Return an array of validator enhanced with data from the account infos smart contract | | Endpoint | /deploys/:hash | |-------------|-------------------------------------| -| Method | GET | +| Method | GET | | Description | Return a previously inserted deploy | | Endpoint | /deploys/ | @@ -36,19 +36,19 @@ The api doc is available at http://localhost:3001/api-docs by default. | Description | Insert a deploy in the database | | Body | Can be obtained by using the DeployUtil.deployToJson method from the casper js sdk.
```{ deploy: {...}}``` | -| Endpoint | /validators/accountinfos | -|-------------|-------------------------------------------------| -| Method | GET | -| Description | Return an array of validator enhanced with data from the account infos smart contract | +| Endpoint | /validators/accountinfos | +|-------------|---------------------------------------------------------------------------------------| +| Method | GET | +| Description | Return an array of validator enhanced with data from the account infos smart contract | ## Admin endpoints The api docs and the bull dashboard are exposed on a different port than the api, by default 3001. Allowing you to choose to expose it or not with network rules. -| Endpoint | /api-docs | -|-------------|-------------------------------------------------| -| Method | GET | +| Endpoint | /api-docs | +|-------------|-----------------------------------| +| Method | GET | | Description | Swagger ui to test easily the api | diff --git a/kubernetes/mainnet/config.yml b/kubernetes/mainnet/config.yml index 419364c..fc56b9f 100644 --- a/kubernetes/mainnet/config.yml +++ b/kubernetes/mainnet/config.yml @@ -4,7 +4,7 @@ metadata: name: api-casperholders-config data: CASPER_RPC_URL: https://node.casperholders.com - ORIGIN: https://casperholders.io,https://www.casperholders.io,https://dive.casper.dev + ORIGIN: https://casperholders.io,https://www.casperholders.io,https://dive.casper.dev,https://div3.casper.dev,https://explore.div3.app,https://div3.in PORT: "80" DATA_API: https://data.test.casperholders.com NODE_ENV: "production" diff --git a/kubernetes/testnet/config.yml b/kubernetes/testnet/config.yml index cf52848..d8270ae 100644 --- a/kubernetes/testnet/config.yml +++ b/kubernetes/testnet/config.yml @@ -4,7 +4,7 @@ metadata: name: api-testnet-casperholders-config data: CASPER_RPC_URL: https://node.testnet.casperholders.com - ORIGIN: http://localhost:8080,https://testnet.casperholders.io,https://dive.casper.dev + ORIGIN: http://localhost:8080,https://testnet.casperholders.io,https://dive.casper.dev,https://div3.casper.dev,https://explore.div3.app,https://div3.in PORT: "80" DATA_API: https://data.testnet.casperholders.com NODE_ENV: "production"