* integrate websocket redis adapter
* use APP_SECRET for jwt signing
* auto migrate database on startup in production
* add updatedAt to update db operations
* create enterprise ee package directory
* fix comment editor focus
* other fixes
This commit is contained in:
Philipinho
2024-06-07 17:29:34 +01:00
parent eef9081aaf
commit 38ef610e5e
36 changed files with 541 additions and 166 deletions

View File

@ -1,22 +1,15 @@
APP_URL=http://localhost
APP_SECRET=
APP_URL=http://localhost:3000
APP_SECRET=REPLACE_WITH_LONG_SECRET
PORT=3000
DEBUG_MODE=true
NODE_ENV=production
JWT_SECRET_KEY=ba8642edbed7f6c450e46875e8c835c7e417031abe1f7b03f3e56bb7481706d8
JWT_TOKEN_EXPIRES_IN=30d
DATABASE_URL="postgresql://postgres:password@localhost:5432/dc?schema=public"
REDIS_URL=redis://@127.0.0.1:6379
DATABASE_URL="postgresql://postgres:password@localhost:5432/docmost?schema=public"
REDIS_URL=redis://127.0.0.1:6379
# local | s3
STORAGE_DRIVER=local
# local config
LOCAL_STORAGE_PATH=/storage
# S3 Config
AWS_S3_ACCESS_KEY_ID=
AWS_S3_SECRET_ACCESS_KEY=
@ -24,7 +17,6 @@ AWS_S3_REGION=
AWS_S3_BUCKET=
AWS_S3_ENDPOINT=
AWS_S3_URL=
AWS_S3_USE_PATH_STYLE_ENDPOINT=false
# EMAIL drivers: smtp / postmark / log
MAIL_DRIVER=smtp
@ -33,7 +25,7 @@ MAIL_PORT=2525
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_FROM_ADDRESS=hello@example.com
MAIL_FROM_NAME=
MAIL_FROM_NAME=Docmost
# for postmark driver
POSTMARK_TOKEN=