forked from Yara724/api
feat: add Moalem MIC SMS provider with shared token cache
This commit is contained in:
@@ -68,6 +68,7 @@ AI_DAMAGE_PRICE_MIN_SEVERITY=severe
|
||||
# ---------------------------------------------
|
||||
# 📩 SMS
|
||||
# ---------------------------------------------
|
||||
# kavenegar | parsian | moalem (legacy SMS takes precedence when nonempty)
|
||||
SMS_PROVIDER =
|
||||
SMS_API_KEY =
|
||||
AUTH_SMS_TEMPLATE =
|
||||
@@ -106,3 +107,13 @@ TEJARAT_INQUIRY_PASSWORD =
|
||||
PARSIAN_API_KEY =
|
||||
PARSIAN_BASIC_TOKEN =
|
||||
PARSIAN_SMS_URL =
|
||||
|
||||
# MIC / Moalem SMS (used only when SMS_PROVIDER=moalem or SMS=moalem)
|
||||
MIC_SMS_TOKEN_URL=https://auth.mic.co.ir/connect/token
|
||||
MIC_SMS_SEND_URL=https://api.mic.co.ir/sms/send
|
||||
MIC_SMS_CLIENT_ID=
|
||||
MIC_SMS_CLIENT_SECRET=
|
||||
MIC_SMS_TOKEN_TTL=86399
|
||||
# Total normal send attempts; a single 401 refresh/resend is additional.
|
||||
MIC_SMS_ATTEMPTS=2
|
||||
MIC_SMS_TIMEOUT_MS=15000
|
||||
|
||||
Reference in New Issue
Block a user