Initial Mento CRM: portal OTP, reports, SMS, and deploy for crm.montzar.ir.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-29 21:06:30 +03:30
co-authored by Cursor
commit 29a040c21d
195 changed files with 39430 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# Production — copy to /var/www/crm/apps/api/.env on the server
# Do not commit real secrets.
NODE_ENV=production
PORT=3030
CORS_ORIGIN=https://crm.montzar.ir
JWT_SECRET=change-me-long-random-production-secret
JWT_EXPIRES_IN=7d
# Postgres روی همین سرور — دیتابیس جدا برای CRM (به DB مونتایم دست نزنید)
DATABASE_URL="postgresql://mento:CHANGE_ME@127.0.0.1:5432/mento_crm?schema=public"
UPLOAD_DIR=/var/www/crm/uploads
# در production کد OTP را در JSON برنگردانید
PORTAL_SHOW_OTP=false
AUTH_RETURN_OTP=false
# SMS — پنل ترِز / رایگان (همان الگوی montime)
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}
# SMS_TIMEOUT_MS=20000