Files
dyolink/infrastructure/backend.staging.env.example

47 lines
1.7 KiB
Plaintext

# Copy to backend.staging.env — DATABASE_URL must match database.staging.env credentials.
NODE_ENV=production
PORT=3000
DATABASE_URL=postgresql://postgres:changeme_staging_strong_password@postgres:5432/dyolink_db
JWT_SECRET=replace_with_a_long_random_secret
JWT_EXPIRES_IN=15m
JWT_REFRESH_SECRET=another_long_random_secret_different_from_JWT_SECRET
JWT_REFRESH_EXPIRES_IN=30d
# CORS, cookies, and invite links — must match how users open the app
FRONTEND_URL=https://wixur.ir
# AdminJS at https://wixur.ir/admin (nginx proxies /admin to the API).
ADMINJS_EMAIL=admin@wixur.ir
ADMINJS_PASSWORD=CHANGE_ME_STRONG_ADMINJS_PASSWORD
# Optional override; Docker image sets /app/adminjs-tmp (do not use ".adminjs").
# ADMIN_JS_TMP_DIR=/app/adminjs-tmp
# TLS is terminated on Windows nginx :443 — cookies must be Secure
COOKIE_SECURE=true
# SMS (sms.ir)
SMS_IR_API_KEY=CHANGE_ME_SMS_IR_API_KEY
SMS_IR_TEMPLATE_ID=123456
# Voice dictation. Staging is in Iran, so OpenRouter is unreachable from this PC.
# Copy these four lines into C:\dyolink\secrets\backend.staging.env. Leave the key
# empty and the microphone does not render. Put the GapGPT key only in that
# secrets file — do not commit it.
OPENROUTER_API_KEY=
OPENROUTER_BASE_URL=https://api.gapgpt.app/v1
VOICE_ASR_MODEL=gapgpt/whisper-1
VOICE_LLM_MODEL=gemini-3.7-flash
# Account email codes (register, staff invite, organization invite, forgot-password).
# Required. SMTP_USER is the From address. The API refuses to send when these are missing.
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=CHANGE_ME_SMTP_USER
SMTP_PASSWORD=CHANGE_ME_SMTP_PASSWORD
# GlitchTip (Sentry SDK). Empty = disabled. Use the dyolink-backend project DSN.
# SENTRY_DSN=https://PUBLIC_KEY@errors.wixur.ir/1
# SENTRY_ENVIRONMENT=staging