This commit is contained in:
phaichayon
2026-06-11 12:46:57 +07:00
parent 1993d88306
commit 7a390cf0df
720 changed files with 100919 additions and 0 deletions

53
env.example.txt Normal file
View File

@@ -0,0 +1,53 @@
# =================================================================
# Authentication (Auth.js)
# =================================================================
AUTH_SECRET=change-this-to-a-long-random-secret
# =================================================================
# Database (PostgreSQL)
# =================================================================
DATABASE_URL=postgres://postgres:postgres@localhost:5432/training_system
# =================================================================
# Initial Super Admin Seed
# =================================================================
SUPER_ADMIN_EMAIL=admin@example.com
SUPER_ADMIN_PASSWORD=change-this-password
SUPER_ADMIN_NAME=Super Admin
# Optional: set to "true" if you want the seed script to overwrite
# the existing super admin password on reruns.
SUPER_ADMIN_RESET_PASSWORD=false
# =================================================================
# Build Configuration
# =================================================================
BUILD_STANDALONE=
# =================================================================
# Error Tracking (Sentry)
# =================================================================
NEXT_PUBLIC_SENTRY_DSN=
NEXT_PUBLIC_SENTRY_ORG=
NEXT_PUBLIC_SENTRY_PROJECT=
SENTRY_AUTH_TOKEN=
NEXT_PUBLIC_SENTRY_DISABLED="false"
# =================================================================
# Notes
# =================================================================
# 1. Rename this file to `.env.local` for local development
# 2. Do not commit real secrets
# 3. AUTH_SECRET is required in production
# 4. DATABASE_URL must point to a reachable PostgreSQL instance
# 5. Run `npm run setup:db` on first setup to apply migrations and seed the super admin