Files
citpl_cms_react_express_pos…/.env.example
T
sandhiya-hepl abb35c0e03 path correction
2026-07-15 18:22:52 +05:30

22 lines
736 B
Bash

PORT=3001
JWT_SECRET=change-this-to-a-random-64-char-string
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin123
CORS_ORIGIN=http://localhost:5173
UPLOAD_DIR=./server/uploads
DATA_DIR=./server/data
# Production (demo.cavinkare.in/citpl_website):
# 1. Copy dist/ + server/ + package.json + .env to the host
# 2. npm install --omit=dev && npm run server (or pm2 start server/index.js)
# 3. Ensure Apache serves dist/ at /citpl_website/ with public/.htaccess
# (PHP api/index.php proxies /api → 127.0.0.1:3001)
# CORS_ORIGIN=https://demo.cavinkare.in
# Leave unset to auto-use Vite base:
# local: /api/...
# prod: /citpl_website/api/...
# Only set if the API is on a different host than the site.
# VITE_API_BASE=
# SERVE_STATIC=1