Files
Sathira Sri Sathara f920ca8920
CI / test (push) Successful in 10m22s
CI / test (pull_request) Successful in 10m53s
feat: Implement Phase 10 support and recommendations features
- Added models for support messages, SLA policies, tickets, ticket events, and ticket links.
- Created routes for help, help admin, newsletter, recommendations, and support for both customer and admin.
- Developed services for help, marketing (newsletter), and recommendations.
- Introduced support service for ticket management, including creation, replies, transitions, and attachments.
- Added validation schemas for support recommendations and ticket management.
- Implemented a cron job for support reconciliation and recommendation cleanup.
- Created migration for new support and recommendation database tables.
- Added unit tests for validation and policy checks related to Phase 10 features.
2026-09-09 16:07:31 +05:30

81 lines
1.8 KiB
Bash

# Required for API and worker startup
APP_NAME=ZUMRI
NODE_ENV=development
PORT=3070
FRONTEND_URL=http://localhost:3000
TRUST_PROXY=0
DB_HOST=localhost
DB_PORT=3306
DB_NAME=zumri
DB_USER=zumri
DB_PASSWORD=replace_with_local_database_password
MYSQL_ROOT_PASSWORD=replace_with_local_root_password
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=replace_with_local_redis_password
# Use separate randomly generated values of at least 32 characters.
JWT_SECRET=replace_with_a_random_value_at_least_32_chars
JWT_EXPIRES_IN=15m
JWT_ISSUER=zumri-api
JWT_AUDIENCE=zumri-clients
ACCESS_TOKEN_TTL=15m
REFRESH_TOKEN_TTL_DAYS=7
REMEMBER_ME_REFRESH_TOKEN_TTL_DAYS=30
LOGIN_OTP_TTL_SECONDS=900
LOGIN_OTP_MAX_ATTEMPTS=5
# Runtime controls
RUN_CRON=false
CACHE=true
JSON_BODY_LIMIT=1mb
API_RATE_LIMIT_WINDOW_MS=900000
API_RATE_LIMIT_MAX=300
SENSITIVE_RATE_LIMIT_WINDOW_MS=900000
SENSITIVE_RATE_LIMIT_MAX=20
SHUTDOWN_TIMEOUT_MS=10000
# Optional email feature
ENABLE_MAIL=false
MAIL_HOST=
MAIL_PORT=587
MAIL_USER=
MAIL_PASS=
MAIL_SECURE=false
MAIL_FROM=
# Optional S3 feature
ENABLE_S3=false
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
AWS_S3_BUCKET_NAME=
S3_ENDPOINT=
S3_FORCE_PATH_STYLE=false
S3_SIGNED_URL_TTL_SECONDS=900
S3_MAX_UPLOAD_BYTES=5242880
# Cross-cutting worker and retention settings
EMAIL_QUEUE_CONCURRENCY=5
DOCUMENT_QUEUE_CONCURRENCY=2
NOTIFICATION_RETENTION_DAYS=90
LOG_RETENTION_DAYS=30
# Optional documentation login
DOCS_USER=
DOCS_PASS=
# Optional application configuration
MANAGER_EMAIL=
DEFAULT_PASSWORD=
PASSWORD_RESET_TTL_SECONDS=900
EMAIL_VERIFICATION_TTL_SECONDS=86400
PUPPETEER_EXECUTABLE_PATH=
GOOGLE_CLIENT_ID=
APPLE_CLIENT_ID=
# Phase 10 bounded reconciliation and privacy retention
SUPPORT_SLA_RECONCILIATION_BATCH_SIZE=100
RECOMMENDATION_EVENT_RETENTION_DAYS=90