50 lines
No EOL
1.9 KiB
Text
50 lines
No EOL
1.9 KiB
Text
# --- Database (PostgreSQL) ---
|
|
# Coolify: leave this BLANK in the application's env here — Coolify injects
|
|
# DATABASE_URI automatically from the per-environment PostgreSQL service
|
|
# (Project → New Resource → PostgreSQL). Use the format Coolify emits.
|
|
# Local docker compose: override via POSTGRES_USER/_PASSWORD/_DB in your
|
|
# local `.env` (the compose file rewrites DATABASE_URI from those).
|
|
DATABASE_URI=postgres://ptfapp:polaristaskforcedb@127.0.0.1:5432/ptf-app-dev
|
|
|
|
# Random 32+ char secret used to sign Payload sessions / JWTs.
|
|
# Generate with: `openssl rand -hex 16`
|
|
PAYLOAD_SECRET=YOUR_SECRET_HERE
|
|
|
|
# --- Public URL of the running app ---
|
|
# Used by the game-tick script (POST /api/game-tick/notify) and by Payload
|
|
# for absolute admin URLs. In Coolify set this to your environment's
|
|
# public domain (e.g. https://dev.ptf.example.com).
|
|
APP_URL=http://localhost:3000
|
|
|
|
# --- Game tick notify secret ---
|
|
# Shared secret that guards the /api/game-tick/notify endpoint. Generate
|
|
# the same value here and pass it to the scheduled `docker exec` job on
|
|
# Coolify (or to your cron). See DEPLOYMENT.md.
|
|
GAME_TICK_NOTIFY_SECRET=YOUR_GAME_TICK_NOTIFY_SECRET
|
|
|
|
# --- Payload email (nodemailer / SMTP relay) ---
|
|
# Optional. Leave blank to disable outbound email (password resets, etc).
|
|
EMAIL_FROM_ADDRESS=
|
|
EMAIL_FROM_NAME=
|
|
EMAIL_HOST=
|
|
EMAIL_PORT=587
|
|
EMAIL_USERNAME=
|
|
EMAIL_PASSWORD=
|
|
|
|
# --- Docker compose tunables (local dev only — not used by Coolify) ---
|
|
POSTGRES_USER=ptfapp
|
|
POSTGRES_PASSWORD=polaristaskforcedb
|
|
POSTGRES_DB=ptf-app-dev
|
|
POSTGRES_PORT=5432
|
|
APP_PORT=3000
|
|
|
|
# --- Discord bot (disabled / not deployed yet) ---
|
|
# Kept here for documentation. The bot is excluded from the deployment image
|
|
# per DEPLOYMENT.md — these only apply when running the bot standalone.
|
|
# DISCORD_TOKEN=
|
|
# DISCORD_GUILD_ID=
|
|
# DISCORD_OPS_CHANNEL_ID=
|
|
# DISCORD_ANNOUNCE_CHANNEL_ID=
|
|
# DISCORD_STAFF_ROLE_IDS=
|
|
# DISCORD_ATTENDANCE_POLL_MS=
|
|
# DISCORD_NOTIFICATION_POLL_MS= |