blah
This commit is contained in:
parent
54df37d574
commit
2461f0dfcb
@ -25,6 +25,8 @@ MONGO_MEMORY_DB=framework-proto
|
|||||||
|
|
||||||
# Encryption secret
|
# Encryption secret
|
||||||
CRYPTO_SECRET=verySecretSecret
|
CRYPTO_SECRET=verySecretSecret
|
||||||
|
# See Server.js for how it's used, not used for anything user related
|
||||||
|
CRYPTO_SALT=salty
|
||||||
|
|
||||||
# Session secret
|
# Session secret
|
||||||
SECRET=verySecretSecret
|
SECRET=verySecretSecret
|
||||||
|
@ -33,9 +33,10 @@ class Server extends EventEmitter {
|
|||||||
super();
|
super();
|
||||||
|
|
||||||
const { MARIA_HOST, MARIA_USER, MARIA_PORT, MARIA_PASS, MARIA_DB,
|
const { MARIA_HOST, MARIA_USER, MARIA_PORT, MARIA_PASS, MARIA_DB,
|
||||||
MONGO_HOST, MONGO_USER, MONGO_PORT, MONGO_PASS, MONGO_DB,
|
MONGO_URI, MONGO_HOST, MONGO_USER,
|
||||||
NODE_ENV, SECRET, CRYPTO_SECRET, CRYPTO_SALT, MONGO_AUTH_DB,
|
MONGO_PORT, MONGO_PASS, MONGO_DB, MONGO_AUTH_DB,
|
||||||
MONGO_MEMORY_HOST, MONGO_MEMORY_USER, MONGO_MEMORY_PORT,
|
NODE_ENV, SECRET, CRYPTO_SECRET, CRYPTO_SALT,
|
||||||
|
MONGO_MEMORY_URI, MONGO_MEMORY_HOST, MONGO_MEMORY_USER, MONGO_MEMORY_PORT,
|
||||||
MONGO_MEMORY_PASS, MONGO_MEMORY_DB, MONGO_MEMORY_AUTH_DB } = process.env;
|
MONGO_MEMORY_PASS, MONGO_MEMORY_DB, MONGO_MEMORY_AUTH_DB } = process.env;
|
||||||
const { http: httpOpts, databases, validUserTypes } = options;
|
const { http: httpOpts, databases, validUserTypes } = options;
|
||||||
|
|
||||||
@ -77,6 +78,7 @@ class Server extends EventEmitter {
|
|||||||
// Mongo is used for session and user storage
|
// Mongo is used for session and user storage
|
||||||
this.mongodb = new MongoDB(this, {
|
this.mongodb = new MongoDB(this, {
|
||||||
options: databases.mongodb,
|
options: databases.mongodb,
|
||||||
|
MONGO_URI,
|
||||||
MONGO_HOST,
|
MONGO_HOST,
|
||||||
MONGO_USER,
|
MONGO_USER,
|
||||||
MONGO_PORT,
|
MONGO_PORT,
|
||||||
@ -89,6 +91,7 @@ class Server extends EventEmitter {
|
|||||||
// Distributed memory storage, using mongo in this case, but this could be redis or whatever
|
// Distributed memory storage, using mongo in this case, but this could be redis or whatever
|
||||||
this.memoryStoreProvider = new MongoDB(this, {
|
this.memoryStoreProvider = new MongoDB(this, {
|
||||||
options: databases.mongodb,
|
options: databases.mongodb,
|
||||||
|
MONGO_URI: MONGO_MEMORY_URI,
|
||||||
MONGO_HOST: MONGO_MEMORY_HOST,
|
MONGO_HOST: MONGO_MEMORY_HOST,
|
||||||
MONGO_USER: MONGO_MEMORY_USER,
|
MONGO_USER: MONGO_MEMORY_USER,
|
||||||
MONGO_PORT: MONGO_MEMORY_PORT,
|
MONGO_PORT: MONGO_MEMORY_PORT,
|
||||||
|
Loading…
Reference in New Issue
Block a user