Skip to content

Commit

Permalink
Merge pull request #108 from verida/feature/107-allow-cors-fine-tunin…
Browse files Browse the repository at this point in the history
…g-in-backend

Feature/107 allow cors fine tuning in backend
  • Loading branch information
nick-verida authored Sep 14, 2022
2 parents 7648ad9 + dadbdda commit cdcf10d
Show file tree
Hide file tree
Showing 8 changed files with 7,458 additions and 39,280 deletions.
21 changes: 0 additions & 21 deletions backend/.env

This file was deleted.

35 changes: 28 additions & 7 deletions backend/.env.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
CORS_HOST=http://localhost:8080/
PORT=3001
DB_URL=mongodb://localhost:27017/verida-health
# Node environment. Optional, default to development
NODE_ENV=development

SALT=$2b$10$rqgBs0g/vBdjr2/88r2dDO
# Port the server will listen to. Optional, default to 3000
PORT=3000

CLIENT_ID=641294683925-es41o3uja4ur8mfk1vs5ma2gmobm644g.apps.googleusercontent.com
CLIENT_SECRET=zDtGxoAumQ3trBukA3zFrbBN
CALLBACK_URL=http://localhost:3001/auth/google/callback
# Boolean to enable CORS. Optional, default to true
ENABLE_CORS=true

# List of CORS allowed hosts separated by a ;. Optional, defaul to empty list
# If CORS is enabled with an empty list, all hosts are allowed
CORS_HOSTS=http://localhost:8080/;http://localhost:8081/

# URL of the mongo DB. Required
DB_URL=mongodb://localhost:27017/verida-health?authSource=admin

# Verida environment. Can be 'mainnet' or 'testnet'. Optional, default to 'testnet'
VERIDA_ENVIRONMENT=testnet

# Verida context name of the app. Required
VERIDA_APP_NAME=Verida: Credential Manager

# Default Verida server. Optional, default to 'https://db.testnet.verida.io:5002/'
VERIDA_TESTNET_DEFAULT_SERVER=https://db.testnet.verida.io:5002/

# Salt for password hashing. Required
SALT=

# Secret for JWT generation. Required
JWT_SECRET=
5 changes: 5 additions & 0 deletions backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ lerna-debug.log*
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# Environment Variables

.env*
!.env.example
Loading

0 comments on commit cdcf10d

Please sign in to comment.