added env examples for the services
This commit is contained in:
24
auth/.env.example
Normal file
24
auth/.env.example
Normal file
@@ -0,0 +1,24 @@
|
||||
DB_USER=
|
||||
DB_HOST=
|
||||
DB_PASSWORD=
|
||||
DB_PORT=
|
||||
|
||||
DATA_DB=
|
||||
|
||||
# In locale: lasciare vuoto (il cookie su localhost funziona su tutte le porte)
|
||||
# In produzione: .mebboat.it (condiviso tra auth.mebboat.it, console.mebboat.it, api.mebboat.it)
|
||||
COOKIE_DOMAIN=
|
||||
COOKIE_NAME=
|
||||
|
||||
DB_NAME=
|
||||
|
||||
PORT=3006
|
||||
|
||||
JWT_SECRET=
|
||||
JWT_EXPIRES_IN=7d
|
||||
|
||||
CONSOLE_URL=
|
||||
|
||||
VERSION=1.4.0
|
||||
VERSION_BUILD=1.0
|
||||
VERSION_STATE=pre-release
|
||||
12
console/.env.example
Normal file
12
console/.env.example
Normal file
@@ -0,0 +1,12 @@
|
||||
PORT=3004
|
||||
|
||||
VERSION=1.3.0
|
||||
VERSION_BUILD=1.0
|
||||
VERSION_STATE=pre-release
|
||||
|
||||
REALTIME_URL=
|
||||
REALTIME_WS_URL=
|
||||
|
||||
JWT_SECRET=
|
||||
AUTH_LOGIN_URL=
|
||||
COOKIE_DOMAIN=
|
||||
@@ -5,7 +5,7 @@ const tokenStore = require('./helper/tokenStore');
|
||||
const redisHelper = require('./helper/redis');
|
||||
const influxWriter = require('./helper/influxWriter');
|
||||
|
||||
const ws = new WebSocket.Server({
|
||||
const ws = new WebSocket.Server({
|
||||
port: process.env.SOCKET_PORT,
|
||||
perMessageDeflate: false,
|
||||
verifyClient: async (info, callback) => {
|
||||
|
||||
Reference in New Issue
Block a user