mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-05 22:43:23 +00:00
feat(docker): add JWT configs to backend image & compose
This commit is contained in:
@@ -59,7 +59,10 @@ ENV NODE_ENV=production \
|
|||||||
ENABLE_LOGGING=true \
|
ENABLE_LOGGING=true \
|
||||||
LOG_LEVEL=info \
|
LOG_LEVEL=info \
|
||||||
PM_LOG_TO_CONSOLE=true \
|
PM_LOG_TO_CONSOLE=true \
|
||||||
PORT=3001
|
PORT=3001 \
|
||||||
|
JWT_EXPIRES_IN=1h \
|
||||||
|
JWT_REFRESH_EXPIRES_IN=7d \
|
||||||
|
SESSION_INACTIVITY_TIMEOUT_MINUTES=30
|
||||||
|
|
||||||
RUN apk add --no-cache openssl tini curl
|
RUN apk add --no-cache openssl tini curl
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ services:
|
|||||||
DATABASE_URL: postgresql://patchmon_user:INSECURE_REPLACE_ME_PLEASE_INSECURE@database:5432/patchmon_db
|
DATABASE_URL: postgresql://patchmon_user:INSECURE_REPLACE_ME_PLEASE_INSECURE@database:5432/patchmon_db
|
||||||
PM_DB_CONN_MAX_ATTEMPTS: 30
|
PM_DB_CONN_MAX_ATTEMPTS: 30
|
||||||
PM_DB_CONN_WAIT_INTERVAL: 2
|
PM_DB_CONN_WAIT_INTERVAL: 2
|
||||||
|
JWT_SECRET: INS3CURE_DEV_7WT_5ECR3T
|
||||||
|
JWT_EXPIRES_IN: 1h
|
||||||
|
JWT_REFRESH_EXPIRES_IN: 7d
|
||||||
|
SESSION_INACTIVITY_TIMEOUT_MINUTES: 30
|
||||||
SERVER_PROTOCOL: http
|
SERVER_PROTOCOL: http
|
||||||
SERVER_HOST: localhost
|
SERVER_HOST: localhost
|
||||||
SERVER_PORT: 3000
|
SERVER_PORT: 3000
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ services:
|
|||||||
DATABASE_URL: postgresql://patchmon_user:INSECURE_REPLACE_ME_PLEASE_INSECURE@database:5432/patchmon_db
|
DATABASE_URL: postgresql://patchmon_user:INSECURE_REPLACE_ME_PLEASE_INSECURE@database:5432/patchmon_db
|
||||||
PM_DB_CONN_MAX_ATTEMPTS: 30
|
PM_DB_CONN_MAX_ATTEMPTS: 30
|
||||||
PM_DB_CONN_WAIT_INTERVAL: 2
|
PM_DB_CONN_WAIT_INTERVAL: 2
|
||||||
|
JWT_SECRET: # CREATE A STRONG SECRET AND PUT IT HERE - Generate with 'openssl rand -hex 64'
|
||||||
|
JWT_EXPIRES_IN: 1h
|
||||||
|
JWT_REFRESH_EXPIRES_IN: 7d
|
||||||
|
SESSION_INACTIVITY_TIMEOUT_MINUTES: 30
|
||||||
SERVER_PROTOCOL: http
|
SERVER_PROTOCOL: http
|
||||||
SERVER_HOST: localhost
|
SERVER_HOST: localhost
|
||||||
SERVER_PORT: 3000
|
SERVER_PORT: 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user