change web service sms

This commit is contained in:
2026-05-30 11:13:52 +03:30
parent f213ad2453
commit 0673729a4d
3 changed files with 218 additions and 39 deletions
+11 -5
View File
@@ -25,16 +25,22 @@ UPLOAD_DIR=uploads
# Include both dev ports if calling API directly (without Vite /api proxy)
CORS_ORIGINS=https://montime.ir,https://adm.montime.ir,http://localhost:5173,http://localhost:5174
# 0098sms.com — used when AUTH_RETURN_OTP is not true
# From panel: account username, password (or web service password), approved sender line (pnlno)
# SMS — used when AUTH_RETURN_OTP is not true
# Provider: trez (default, smspanel.Trez.ir) | 0098 (legacy)
SMS_PROVIDER=trez
SMS_USERNAME=
SMS_PASSWORD=
# SMS_API_KEY= # alias for SMS_PASSWORD
# Trez/Raygan sender line (PhoneNumber), e.g. 90002847
SMS_SENDER=
# soap (default, recommended) | link (legacy GET API, often HTTP 500)
SMS_TRANSPORT=soap
# SMS_DOMAIN=0098 # only for link transport
# Trez panel base URL and send path (defaults shown)
# SMS_BASE_URL=http://smspanel.Trez.ir
# SMS_SEND_PATH=/SendMessageWithCode.ashx
# SMS_OTP_TEMPLATE=کد ورود منتایم: {code}
# SMS_TIMEOUT_MS=20000
# --- legacy 0098 only (SMS_PROVIDER=0098) ---
# SMS_TRANSPORT=soap
# SMS_DOMAIN=0098
# Minimum minutes before a booking can be scheduled (default 60)
BOOKING_MIN_LEAD_MINUTES=60