2024-09-10 09:50:11 +00:00
|
|
|
# API & Common
|
2025-01-03 06:59:10 +00:00
|
|
|
NODE_ENV=development
|
2024-09-13 07:22:05 +00:00
|
|
|
APP_DOMAIN=localhost
|
|
|
|
SSL_EMAIL=hello@hexabot.ai
|
2024-09-10 09:50:11 +00:00
|
|
|
API_PORT=4000
|
2024-12-16 12:09:58 +00:00
|
|
|
APP_FRONTEND_PORT=8080
|
2024-09-10 09:50:11 +00:00
|
|
|
APP_SCRIPT_COMPODOC_PORT=9003
|
2024-09-13 07:22:05 +00:00
|
|
|
API_ORIGIN=http://${APP_DOMAIN}:${API_PORT}
|
2025-01-05 07:52:36 +00:00
|
|
|
# Specifies if the current instance has primary write (used in DB Migrations)
|
2025-01-03 06:59:10 +00:00
|
|
|
API_IS_PRIMARY_NODE=true
|
2024-12-16 12:09:58 +00:00
|
|
|
FRONTEND_BASE_URL=http://${APP_DOMAIN}:${APP_FRONTEND_PORT}
|
2024-12-16 13:50:23 +00:00
|
|
|
FRONTEND_ORIGIN=${FRONTEND_BASE_URL},http://${APP_DOMAIN}:8081,http://${APP_DOMAIN}:5173,http://${APP_DOMAIN},https://${APP_DOMAIN}
|
2024-09-10 09:50:11 +00:00
|
|
|
JWT_SECRET=dev_only
|
|
|
|
JWT_EXPIRES_IN=60
|
|
|
|
SALT_LENGTH=12
|
|
|
|
HTTPS_ENABLED=false
|
|
|
|
SESSION_SECRET=f661ff500fff6b0c8f91310b6fff6b0c
|
|
|
|
SESSION_NAME=s.id
|
2025-01-05 07:52:36 +00:00
|
|
|
# Relative attachments upload directory path to the app folder
|
2024-09-10 09:50:11 +00:00
|
|
|
UPLOAD_DIR=/uploads
|
2025-01-05 07:52:36 +00:00
|
|
|
# Max attachments upload size in bytes
|
2024-12-27 16:22:35 +00:00
|
|
|
UPLOAD_MAX_SIZE_IN_BYTES=20971520
|
2024-09-10 09:50:11 +00:00
|
|
|
INVITATION_JWT_SECRET=dev_only
|
|
|
|
INVITATION_EXPIRES_IN=24h
|
|
|
|
PASSWORD_RESET_JWT_SECRET=dev_only
|
|
|
|
PASSWORD_RESET_EXPIRES_IN=1h
|
|
|
|
CONFIRM_ACCOUNT_SECRET=dev_only
|
|
|
|
CONFIRM_ACCOUNT_EXPIRES_IN=1h
|
2025-01-05 07:52:36 +00:00
|
|
|
# Public attachments download URLs JWT Sign secret
|
2024-12-30 09:34:48 +00:00
|
|
|
SIGNED_URL_SECRET=dev_only
|
2025-01-05 07:52:36 +00:00
|
|
|
# Public attachments download URLs download expiration
|
2024-12-30 09:34:48 +00:00
|
|
|
SIGNED_URL_EXPIRES_IN=1h
|
2024-09-13 07:22:05 +00:00
|
|
|
I18N_TRANSLATION_FILENAME=messages
|
|
|
|
|
|
|
|
# Mongo configs
|
|
|
|
APP_MONGO_EXPRESS_PORT=9000
|
|
|
|
MONGO_USER=dev_only
|
|
|
|
MONGO_PASSWORD=dev_only
|
2024-09-18 05:15:50 +00:00
|
|
|
MONGO_URI=mongodb://${MONGO_USER}:${MONGO_PASSWORD}@mongo:27017/
|
2024-09-13 07:22:05 +00:00
|
|
|
MONGO_DB=hexabot
|
2025-01-02 07:35:13 +00:00
|
|
|
MONGO_AUTO_MIGRATE=true
|
2024-09-13 07:22:05 +00:00
|
|
|
|
2024-10-02 16:01:55 +00:00
|
|
|
# SMTP Config (for local dev env, use smtp4dev by doing `npx hexabot start --enable=smtp4dev`)
|
2024-09-13 07:22:05 +00:00
|
|
|
APP_SMTP_4_DEV_PORT=9002
|
2024-09-18 16:33:12 +00:00
|
|
|
EMAIL_SMTP_ENABLED=false
|
2024-09-10 09:50:11 +00:00
|
|
|
EMAIL_SMTP_HOST=smtp4dev
|
|
|
|
EMAIL_SMTP_PORT=25
|
|
|
|
EMAIL_SMTP_SECURE=false
|
|
|
|
EMAIL_SMTP_USER=dev_only
|
|
|
|
EMAIL_SMTP_PASS=dev_only
|
2024-09-18 16:33:12 +00:00
|
|
|
EMAIL_SMTP_FROM=noreply@example.com
|
2024-09-10 09:50:11 +00:00
|
|
|
|
|
|
|
# Frontend (Next.js)
|
2024-09-17 10:00:43 +00:00
|
|
|
NEXT_PUBLIC_API_ORIGIN=http://${APP_DOMAIN}:${API_PORT}/
|
2024-09-10 09:50:11 +00:00
|
|
|
NEXT_PUBLIC_SSO_ENABLED=false
|
|
|
|
|
|
|
|
# Widget
|
|
|
|
APP_WIDGET_PORT=5173
|
2024-09-17 10:00:43 +00:00
|
|
|
REACT_APP_WIDGET_API_URL=http://${APP_DOMAIN}:${API_PORT}
|
2024-10-22 13:37:42 +00:00
|
|
|
REACT_APP_WIDGET_CHANNEL=web-channel
|
2024-11-15 16:39:12 +00:00
|
|
|
|
|
|
|
# Redis
|
|
|
|
APP_REDIS_PORT=9001
|
|
|
|
REDIS_ENABLED=false
|
|
|
|
REDIS_HOST=redis
|
|
|
|
REDIS_PORT=6379
|