added env examples for the services

This commit is contained in:
Giuseppe Raffa
2026-04-14 11:43:08 +02:00
parent 473eb9015f
commit 14c29b1434
3 changed files with 37 additions and 1 deletions

24
auth/.env.example Normal file
View 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
View 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=

View File

@@ -5,7 +5,7 @@ const tokenStore = require('./helper/tokenStore');
const redisHelper = require('./helper/redis'); const redisHelper = require('./helper/redis');
const influxWriter = require('./helper/influxWriter'); const influxWriter = require('./helper/influxWriter');
const ws = new WebSocket.Server({ const ws = new WebSocket.Server({
port: process.env.SOCKET_PORT, port: process.env.SOCKET_PORT,
perMessageDeflate: false, perMessageDeflate: false,
verifyClient: async (info, callback) => { verifyClient: async (info, callback) => {