Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update DID_NETWORK to VERIDA_NETWORK, update to node 18. Closes #78 #79

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe link here instead, as networks will change:

https://developers.verida.network/docs/infrastructure/networks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

- `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
Loading