Initial commit of the Mado Motor NestJS API.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
# PostgreSQL (Docker Compose)
|
||||
POSTGRES_HOST=localhost
|
||||
POSTGRES_PORT=5435
|
||||
POSTGRES_USER=mado
|
||||
POSTGRES_PASSWORD=mado_secret
|
||||
POSTGRES_DB=mado_motor
|
||||
|
||||
DATABASE_URL=postgresql://mado:mado_secret@localhost:5435/mado_motor
|
||||
|
||||
# API
|
||||
PORT=3001
|
||||
PUBLIC_SITE_ORIGIN=https://madomotor.ir
|
||||
CORS_ORIGIN=http://manage.madomotor.com:5175,http://localhost:5175,http://127.0.0.1:5175,http://madomotor.com:5174,http://localhost:5174
|
||||
|
||||
# JWT
|
||||
JWT_ACCESS_SECRET=change-me-mado-access-secret-min-32-chars
|
||||
JWT_REFRESH_SECRET=change-me-mado-refresh-secret-min-32-chars
|
||||
JWT_ACCESS_EXPIRES_IN=15m
|
||||
JWT_REFRESH_EXPIRES_IN=7d
|
||||
|
||||
# Object storage (same Parspack bucket as Balout/Meshkee — prefix mado-motor/)
|
||||
STORAGE_DISK=s3
|
||||
S3_ENDPOINT=https://c804387.parspack.net
|
||||
S3_BUCKET=c804387
|
||||
S3_PUBLIC_URL=https://c804387.parspack.net/c804387
|
||||
S3_REGION=us-east-1
|
||||
S3_FORCE_PATH_STYLE=true
|
||||
S3_ACCESS_KEY_ID=
|
||||
S3_SECRET_ACCESS_KEY=
|
||||
|
||||
MEDIA_MAX_FILE_SIZE_MB=10
|
||||
|
||||
# Meshkee SMS (server-side only — never expose to frontend)
|
||||
# Add madomotor.ir to Meshkee SMS_PARTNERS with this API key
|
||||
MESHKEE_SMS_URL=https://api.meshkee.com/api/v1/public/sms/send
|
||||
MESHKEE_SMS_API_KEY=
|
||||
MESHKEE_SMS_DOMAIN=madomotor.ir
|
||||
# Comma-separated admin mobiles for call/representation alerts
|
||||
SMS_NOTIFY_MOBILES=09127004945
|
||||
Reference in New Issue
Block a user