Files
backend/.env.example
T
Alireza HassaniandCursor 016cc15bf0 Add website API docs, SSL api-hosts, and git-only deploy workflow.
Serve public storefront docs at /docs/website, expose api.{domain} hosts for API SSL sync, and require push-then-pull deploys instead of rsync.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-22 21:39:51 +03:30

56 lines
1.5 KiB
Bash

# PostgreSQL (DataGrip + API)
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=meshkee
POSTGRES_PASSWORD=meshkee_secret
POSTGRES_DB=meshkee_cms
DATABASE_URL=postgresql://meshkee:meshkee_secret@localhost:5432/meshkee_cms
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_URL=redis://localhost:6379
# API
PORT=3000
# JWT
JWT_ACCESS_SECRET=change-me-access-secret-min-32-chars-long
JWT_REFRESH_SECRET=change-me-refresh-secret-min-32-chars-long
JWT_ACCESS_EXPIRES_IN=15m
JWT_REFRESH_EXPIRES_IN=7d
# SMS (set to true when SMS provider API is ready)
SMS_ENABLED=false
# Object storage (Parmin / S3-compatible)
STORAGE_DISK=s3
S3_ENDPOINT=https://sas.amin.parminstorage.ir
S3_BUCKET=meshkee-storage
S3_PUBLIC_URL=https://meshkee-storage.sas.amin.parminstorage.ir
S3_REGION=us-east-1
S3_FORCE_PATH_STYLE=true
S3_ACCESS_KEY_ID=
S3_SECRET_ACCESS_KEY=
# AI product generation (use Groq free tier or OpenAI)
AI_PROVIDER=groq
GROQ_API_KEY=
GROQ_MODEL=llama-3.3-70b-versatile
OPENAI_API_KEY=
OPENAI_MODEL=gpt-4o-mini
MEDIA_MAX_FILE_SIZE_MB=10
# SSL sync (header X-SSL-Sync-Token)
# Dashboards VPS: GET /api/v1/internal/ssl/hosts → manage + business./customer.{apex}
# API VPS: GET /api/v1/internal/ssl/api-hosts → api.meshkee.com + api.{apex}
SSL_SYNC_TOKEN=
DASHBOARD_ADMIN_HOST=manage.meshkee.com
CENTRAL_API_HOST=api.meshkee.com
# Website storefront deploy agent (POST from Super Admin → websites VM)
WEBSITE_DEPLOY_AGENT_URL=http://89.44.241.119:9050/deploy
WEBSITE_DEPLOY_TOKEN=