forked from Yara724/api
126 lines
4.2 KiB
Bash
126 lines
4.2 KiB
Bash
# ---------------------------------------------
|
|
# 🔧 Application Environment
|
|
# ---------------------------------------------
|
|
NODE_ENV =
|
|
PORT =
|
|
CLIENT_ID =
|
|
CLIENT_NAME =
|
|
FANAVARAN_CLIENT=parsian
|
|
INSURANCE_CORP_ID='شرکت بيمه پارسيان(بيمه گر)'
|
|
CLAIM_V2_TOTAL_PAYMENT_CAP_ENABLED=false
|
|
CLAIM_V2_TOTAL_PAYMENT_CAP_TOMAN=53000000
|
|
# ---------------------------------------------
|
|
# 🌐 Application URLs
|
|
# ---------------------------------------------
|
|
URL =
|
|
# Optional path where the user panel is mounted behind the public URL.
|
|
# Example: URL=https://chatr.parsianinsurance.com/car-damage and USER_BASE_PATH=user
|
|
# produces SMS links under https://chatr.parsianinsurance.com/car-damage/user/v1/...
|
|
USER_BASE_PATH =
|
|
BASE_URL_DEV =
|
|
|
|
# ---------------------------------------------
|
|
# 📄 Swagger / API Documentation
|
|
# ---------------------------------------------
|
|
SWAGGER_USER_DEV =
|
|
SWAGGER_PASSWORD_DEV =
|
|
|
|
# ---------------------------------------------
|
|
# 🗄️ Database (MongoDB)
|
|
# ---------------------------------------------
|
|
MONGO_HOST =
|
|
MONGO_PORT =
|
|
MONGO_USER =
|
|
MONGO_PASS =
|
|
MONGO_DB_NAME =
|
|
MONGO_OPTIONS =
|
|
MONGO_TLS =
|
|
MONGO_TLS_ALLOW_INVALID_CERTS =
|
|
MONGO_URI = 'mongodb://${MONGO_USER}:${MONGO_PASS}@${MONGO_HOST}:${MONGO_PORT}/${MONGO_DB_NAME}?${MONGO_OPTIONS}'
|
|
|
|
# ---------------------------------------------
|
|
# 🔐 Authentication / Security
|
|
# ---------------------------------------------
|
|
JWT_SECRET =
|
|
JWT_EXPIRY =
|
|
CAPTCHA_ENABLED = true
|
|
|
|
# ---------------------------------------------
|
|
# 🧩 ESG — third-party plate/VIN, personal identity and Sheba (all tenants)
|
|
# Include the gateway prefix in ESG_URL when one is required; no fallback URL.
|
|
# ---------------------------------------------
|
|
ESG_URL =
|
|
ESG_USERNAME =
|
|
ESG_PASSWORD =
|
|
|
|
# ---------------------------------------------
|
|
# Optional driving-licence and legal vehicle-ownership inquiries only
|
|
# ESG does not currently expose equivalent endpoints for these two checks.
|
|
# ---------------------------------------------
|
|
SANHUB_BASE_URL =
|
|
SANHUB_URL_LOGIN =
|
|
SANHUB_USERNAME =
|
|
SANHUB_PASSWORD =
|
|
|
|
# ---------------------------------------------
|
|
# 🤖 AI Services
|
|
# ---------------------------------------------
|
|
AI_DAMAGE_ENABLED=false
|
|
AI_DAMAGE_URL=http://79.132.207.77:30531
|
|
AI_DAMAGE_TIMEOUT_MS=600000
|
|
|
|
# Prices come from the assessment service; no OpenAI key is needed here.
|
|
# minor = all damaged parts, moderate = moderate/severe, severe = severe only.
|
|
# null is normalized to minor because the provider does not accept a null enum.
|
|
AI_DAMAGE_PRICE_MIN_SEVERITY=severe
|
|
|
|
# ---------------------------------------------
|
|
# 📩 SMS
|
|
# ---------------------------------------------
|
|
# kavenegar | parsian | moalem (legacy SMS takes precedence when nonempty)
|
|
SMS_PROVIDER =
|
|
SMS_API_KEY =
|
|
AUTH_SMS_TEMPLATE =
|
|
EXP_OTP_TIME =
|
|
# Development-only fixed OTP. Production rejects true at startup.
|
|
FAKE_OTP = false
|
|
|
|
# ---------------------------------------------
|
|
# 🌐 Proxy Configuration (Local Development Only)
|
|
# ---------------------------------------------
|
|
# NOTE: These proxy settings are for local development only.
|
|
# When deploying to the server, comment out or remove these lines
|
|
# as the server IP is already whitelisted by Fanavaran.
|
|
# SOCKS_PROXY_HOST = localhost
|
|
# SOCKS_PROXY_PORT = 6565
|
|
|
|
# ---------------------------------------------
|
|
# 🏢 Fanavaran Insurance Corp
|
|
# ---------------------------------------------
|
|
# Caption from Fanavaran insurance-corp lookup used to resolve InsuranceCorpId
|
|
# for damage-case payloads. Must match a Caption in the insurance-corp code-list.
|
|
# Example: "شرکت بيمه تجارت نو"
|
|
INSURANCE_CORP_ID =
|
|
|
|
# ---------------------------------------------
|
|
# ⚙️ Application Features / Flags
|
|
# ---------------------------------------------
|
|
AUTO_CLIENT_KEY_ENABLED =
|
|
|
|
# ---------------------------------------------
|
|
# 🔗 Other Internal Services
|
|
# ---------------------------------------------
|
|
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
|