Configure environment for Epicnextcms with Redis and Arcturus
This commit is contained in:
1 parent
01a297884a
commit
2e2aba11af
1 file changed
+23
-54
+23
-54
@@ -1,95 +1,64 @@
|
|||||||
# Connection to the LIVE/COPY emulator MySQL/MariaDB database.
|
# ==============================================================================
|
||||||
# The schema is owned by the Arcturus emulator — this app reads/writes data,
|
# Epicnextcms — Environment Configuration
|
||||||
# it does NOT own or migrate the emulator tables. Format:
|
# Focus: Epicnextcms & Autonomy / Rest Optimization
|
||||||
DATABASE_URL=mysql://user:[email protected]:3306/atomcms
|
# ==============================================================================
|
||||||
|
|
||||||
# Optional pool tuning (defaults shown)
|
# --- DATABASE CONNECTION (Arcturus Emulator LIVE/COPY Database) ---
|
||||||
|
DATABASE_URL=mysql://user:[email protected]:3306/atomcms
|
||||||
DATABASE_POOL_SIZE=10
|
DATABASE_POOL_SIZE=10
|
||||||
DATABASE_IDLE_TIMEOUT_MS=300000
|
DATABASE_IDLE_TIMEOUT_MS=300000
|
||||||
DATABASE_CONNECT_TIMEOUT_MS=10000
|
DATABASE_CONNECT_TIMEOUT_MS=10000
|
||||||
|
|
||||||
# Redis for rate limits, site-settings cache, and JWT invalidation
|
# --- REDIS CACHE & RATE LIMITING (Required for production stability) ---
|
||||||
# REDIS_URL=redis://localhost:6379
|
REDIS_URL=redis://127.0.0.1:6379
|
||||||
|
|
||||||
# Used by SSO ticket generation ({HOTEL_NAME}-{uuid})
|
# --- APPLICATION URLS & HOTEL SETTINGS ---
|
||||||
HOTEL_NAME=Atom
|
HOTEL_NAME=EPIC WEB CONTROL
|
||||||
APP_URL=http://localhost:3000
|
APP_URL=http://localhost:3000
|
||||||
# NEXT_PUBLIC_APP_URL=https://yourdomain.com
|
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
||||||
AUTH_URL=http://localhost:3000
|
AUTH_URL=http://localhost:3000
|
||||||
|
|
||||||
# NextAuth — required in production (>=32 chars). Optional in development.
|
# --- SECURITY & AUTHENTICATION ---
|
||||||
# Laravel APP_KEY (base64:...) for existing 2FA secrets.
|
# Ensure AUTH_SECRET is at least 32 characters long in production
|
||||||
AUTH_SECRET=
|
AUTH_SECRET=your-super-secret-auth-key-change-this-min-32-chars
|
||||||
APP_KEY=
|
APP_KEY=
|
||||||
CONVERT_PASSWORDS=false
|
CONVERT_PASSWORDS=false
|
||||||
|
|
||||||
# Password hashing for NEW/upgraded passwords: "bcrypt" (default; 60-char $2y$,
|
|
||||||
# fits a varchar(64) users.password) or "argon2id" (~97 chars, needs a wider
|
|
||||||
# column). Existing accounts in either format still verify on login.
|
|
||||||
PASSWORD_HASH=bcrypt
|
PASSWORD_HASH=bcrypt
|
||||||
|
|
||||||
# Filesystem directory the badge uploader (/admin/badges) writes <code>.gif into
|
# --- ASSETS & EMULATOR INTEGRATION ---
|
||||||
# — the emulator's badge image folder (e.g. .../assets/c_images/album1584).
|
|
||||||
# Leave unset to disable badge uploads.
|
|
||||||
BADGE_UPLOAD_DIR=
|
BADGE_UPLOAD_DIR=
|
||||||
|
|
||||||
# Emulator JAR backup job (jobs-worker, runs host-side). When both are set, the
|
|
||||||
# worker copies the JAR daily into the backup dir, keeping the newest N.
|
|
||||||
EMULATOR_JAR_PATH=
|
EMULATOR_JAR_PATH=
|
||||||
EMULATOR_BACKUP_DIR=
|
EMULATOR_BACKUP_DIR=
|
||||||
EMULATOR_BACKUP_KEEP=7
|
EMULATOR_BACKUP_KEEP=7
|
||||||
|
|
||||||
# RCON link to the Arcturus emulator
|
# --- RCON CONNECTION ---
|
||||||
RCON_HOST=127.0.0.1
|
RCON_HOST=127.0.0.1
|
||||||
RCON_PORT=3001
|
RCON_PORT=3001
|
||||||
|
NEXT_PUBLIC_IMAGER_URL=http://localhost:3000/imaging
|
||||||
|
|
||||||
# Public imager URL — overrides the default /imaging relative path.
|
# --- EMAIL & NOTIFICATIONS ---
|
||||||
# Falls back to NEXT_PUBLIC_APP_URL/imaging when only the app URL is set.
|
|
||||||
# NEXT_PUBLIC_IMAGER_URL=https://epicnabbo.nl/imaging
|
|
||||||
|
|
||||||
# Preferred email provider (HTTP API). Used before SMTP when set.
|
|
||||||
RESEND_API_KEY=
|
RESEND_API_KEY=
|
||||||
|
|
||||||
# Optional SMTP fallback (password reset / alert emails)
|
|
||||||
SMTP_HOST=
|
SMTP_HOST=
|
||||||
SMTP_PORT=587
|
SMTP_PORT=587
|
||||||
SMTP_USER=
|
SMTP_USER=SMTP_PASSWORD=
|
||||||
SMTP_PASSWORD=
|
|
||||||
SMTP_FROM=
|
SMTP_FROM=
|
||||||
|
|
||||||
# Optional alerting (jobs worker / alert service)
|
# --- ALERTING & MONITORING ---
|
||||||
DISCORD_WEBHOOK_URL=
|
DISCORD_WEBHOOK_URL=
|
||||||
ALERT_EMAIL=
|
ALERT_EMAIL=
|
||||||
|
|
||||||
# Optional AI content moderation (user comments / guestbook).
|
# --- MODERATION & PAYMENTS ---
|
||||||
# When set, posts are checked against the OpenAI Moderations endpoint in
|
|
||||||
# addition to the website_wordfilter blocklist. Fail-open if unset/erroring.
|
|
||||||
OPENAI_API_KEY=
|
OPENAI_API_KEY=
|
||||||
|
|
||||||
# Optional PayPal top-up (sandbox by default)
|
|
||||||
PAYPAL_CLIENT_ID=
|
PAYPAL_CLIENT_ID=
|
||||||
PAYPAL_SECRET=
|
PAYPAL_SECRET=
|
||||||
PAYPAL_API=https://api-m.sandbox.paypal.com
|
PAYPAL_API=https://api-m.sandbox.paypal.com
|
||||||
|
|
||||||
# Redis — REQUIRED for production (shared rate limits, site-settings cache,
|
# --- LOGGING & ERROR TRACKING (Sentry) ---
|
||||||
# JWT session invalidation cache). Without REDIS_URL the app falls back to
|
|
||||||
# in-process memory: limits reset on restart and do not work across instances.
|
|
||||||
# Deploy logs a loud warning when this is unset in production.
|
|
||||||
REDIS_URL=redis://127.0.0.1:6379
|
|
||||||
|
|
||||||
# Logging level (debug | info | warn | error). Defaults to 'info' in production,
|
|
||||||
# 'debug' in development. Production logs use structured JSON via pino.
|
|
||||||
LOG_LEVEL=info
|
LOG_LEVEL=info
|
||||||
|
|
||||||
# Optional Sentry error monitoring (no-op when unset).
|
|
||||||
# Server/edge use SENTRY_DSN; browser uses NEXT_PUBLIC_SENTRY_DSN.
|
|
||||||
SENTRY_DSN=
|
SENTRY_DSN=
|
||||||
NEXT_PUBLIC_SENTRY_DSN=
|
NEXT_PUBLIC_SENTRY_DSN=
|
||||||
# Optional source-map upload during CI builds (requires SENTRY_AUTH_TOKEN).
|
|
||||||
SENTRY_ORG=
|
SENTRY_ORG=
|
||||||
SENTRY_PROJECT=
|
SENTRY_PROJECT=
|
||||||
SENTRY_AUTH_TOKEN=
|
SENTRY_AUTH_TOKEN=
|
||||||
# Optional release tag shown in Sentry (e.g. git sha).
|
|
||||||
# Deploy sets APP_VERSION + NEXT_PUBLIC_APP_VERSION from git sha.
|
|
||||||
APP_VERSION=
|
APP_VERSION=
|
||||||
NEXT_PUBLIC_APP_VERSION=
|
NEXT_PUBLIC_APP_VERSION=
|
||||||
Reference in new issue
Block a user