Skip to content

Commit

Permalink
update DID_NETWORK to VERIDA_NETWORK, update to node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-verida committed Apr 5, 2024
1 parent 68fa7b5 commit b70f134
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.20.0
lts/hydrogen
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14.20.0-slim as node
FROM node:hydrogen-slim as node

ENV NODE_ENV=production
EXPOSE 5000
Expand Down
2 changes: 1 addition & 1 deletion DockerfileLiveDev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14.20.0-slim as node
FROM node:hydrogen-slim as node

ENV NODE_ENV=production
EXPOSE 5000
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ yarn serve

A `sample.env` is included. Copy this to `.env` and update the configuration:

- `DID_NETWORK`: Verida network to use (`testnet` or `mainnet`)
- `VERIDA_NETWORK`: Verida network to use (`banksia`, `testnet`, `mainnet`)
- `DID_CACHE_DURATION`: How long to cache DIDs before reloading
- `DB_PROTOCOL`: Protocol to use when connecting to CouchDB (`http` or `https`).
- `DB_USER`: Username of CouchDB Admin (has access to create users and databases).
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@verida/storage-node",
"version": "2.2.1",
"version": "2.3.0",
"description": "Verida Storage Node middleware that bridges decentralised identities so they can control access to databases within a CouchDB storage engine",
"main": "dist/server.js",
"scripts": {
Expand Down Expand Up @@ -41,7 +41,7 @@
"url": "https://github.com/verida/storage-node/issues"
},
"engines": {
"node": "^14.0.0"
"node": "^18.0.0"
},
"homepage": "https://github.com/verida/storage-node/README.md",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion sample.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DID_NETWORK=testnet
VERIDA_NETWORK=banksia
DID_CACHE_DURATION=3600
# Admin username and password (for system operations)
# MUST be set to something random
Expand Down
2 changes: 1 addition & 1 deletion src/build.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const BUILD_DETAILS = {buildTimestamp: "2023-12-08T03:34:02+00:00"};
export const BUILD_DETAILS = {buildTimestamp: "2024-04-05T02:24:03+00:00"};
2 changes: 1 addition & 1 deletion src/components/authManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class AuthManager {
if (!didClient) {
console.info(`DID client didn't exist, creating`)
const didClientConfig = {
network: process.env.DID_NETWORK ? process.env.DID_NETWORK : 'testnet',
network: process.env.VERIDA_NETWORK ? process.env.VERIDA_NETWORK : 'banksia',
rpcUrl: process.env.DID_RPC_URL
}

Expand Down
2 changes: 1 addition & 1 deletion src/services/lookup/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DidLookup {
}

const didClient = new DIDClient({
network: process.env.DID_NETWORK
network: process.env.VERIDA_NETWORK
})

try {
Expand Down

0 comments on commit b70f134

Please sign in to comment.