# Preview — copy to /var/www/crm2/apps/api/.env # Start from production crm .env, then change only the keys below. NODE_ENV=production PORT=3032 CORS_ORIGIN=https://crm2.montzar.ir JWT_SECRET=change-me-long-random-production-secret JWT_EXPIRES_IN=7d # Separate database — do not point this at mento_crm DATABASE_URL="postgresql://mento:CHANGE_ME@127.0.0.1:15432/mento_crm2?schema=public" UPLOAD_DIR=/var/www/crm2/uploads PORTAL_SHOW_OTP=false AUTH_RETURN_OTP=false AUTH_EMAIL_OTP_ENABLED=false # Copy SMS / AI / STT / encryption keys from /var/www/crm/apps/api/.env SMS_PROVIDER=trez SMS_USERNAME= SMS_PASSWORD= SMS_SENDER= SMS_BASE_URL=http://smspanel.Trez.ir SMS_SEND_PATH=/SendMessageWithCode.ashx SMS_OTP_TEMPLATE=کد ورود منتکت: {code} AI_ENABLED=true AI_PROVIDER=openai AI_BASE_URL=https://api.gapgpt.app/v1 AI_API_KEY=change-me AI_MODEL=gpt-4o-mini AI_TIMEOUT_MS=45000 # Share the existing STT sidecar (do not start a second one) STT_ENABLED=true STT_URL=http://127.0.0.1:3040 STT_INTERNAL_TOKEN=change-me-stt-internal-token STT_TIMEOUT_MS=60000 INTEGRATIONS_ENCRYPTION_KEY=change-me-64-hex-chars-use-openssl-rand-hex-32 # سوپرادمین پلتفرم — ورود با موبایل + رمز PLATFORM_ADMIN_MOBILE=09121234567 PLATFORM_ADMIN_PASSWORD=change-me-strong-platform-password PLATFORM_ADMIN_NAME=سوپرادمین # PLATFORM_ADMIN_EMAIL=