forked from Yara724/api
fix(SMS): change the brand name of the sms
This commit is contained in:
@@ -6,6 +6,7 @@ The deployment selects `moalem` as its SMS provider. This is independent of the
|
||||
|
||||
```dotenv
|
||||
SMS_PROVIDER=moalem
|
||||
SMS_BRAND_NAME="سامانه خسارت اپکس"
|
||||
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=<provided privately by MIC>
|
||||
@@ -18,6 +19,7 @@ FAKE_OTP=false
|
||||
|
||||
- If the legacy `SMS` setting is nonempty, it overrides `SMS_PROVIDER`. Set it to `moalem` as well, or remove it. `moallem` is accepted as an alias; logs use `moalem`.
|
||||
- Keep the existing `AUTH_SMS_TEMPLATE` and `AUTH_SMS_MESSAGE` settings for OTP text. Existing URL and `USER_BASE_PATH` settings continue controlling message links.
|
||||
- `SMS_BRAND_NAME` controls the name in every SMS; unset or blank defaults to `یارا۷۲۴`. Custom OTP/database patterns can use `{brandName}`. See [SMS deployment branding](../sms-deployment-branding.md).
|
||||
- Supply credentials privately through the server environment or secret store. The repository example contains no credentials. Restart API instances after changing configuration.
|
||||
- Active Moalem deployments fail startup when required MIC credentials, HTTPS URLs or numeric settings are invalid. MIC settings do not block other SMS providers.
|
||||
- Allow outbound HTTPS to `auth.mic.co.ir` and `api.mic.co.ir`. Redirects are disabled. The existing HTTP proxy configuration is reused.
|
||||
|
||||
Reference in New Issue
Block a user