Add Leaflet and react-leaflet dependencies for interactive map functionality Extend DDDepot type with optional latitude/longitude fields for map markers Update site metadata and admin settings page text Add client-side DepotMap component to render depot locations Update PocketBase admin token in environment configuration
49 lines
3.5 KiB
Bash
49 lines
3.5 KiB
Bash
# ─── Coolify env vars — Diesel Depot (FILLED IN) ───────────────────────────
|
|
# Paste each non-commented line into Coolify's "Environment Variables" panel.
|
|
# Coolify sets $PORT and the public domain automatically — do NOT add them.
|
|
# One variable per line. No spaces around `=`. No quotes.
|
|
|
|
# ╔══════════════════════════════════════════════════════════════════════╗
|
|
# ║ REQUIRED — paste these into Coolify ║
|
|
# ╚══════════════════════════════════════════════════════════════════════╝
|
|
|
|
# The URL the browser hits to reach PocketBase. This is your CURRENT
|
|
# external PB instance. If you later migrate PB to Coolify itself, replace
|
|
# this with the new https URL of that service.
|
|
NEXT_PUBLIC_POCKETBASE_URL=http://pocketbase-zinlbpsext2ro0lgb2558vfy.169.239.180.130.sslip.io
|
|
|
|
# Superuser auth token for managing dd_ collections. Only needed if you
|
|
# wire the migration scripts (npm run pb:create / pb:seed) into a Coolify
|
|
# "one-off command" to bootstrap collections on first deploy. The token
|
|
# is a long-lived superuser token — rotate it in the PB admin UI after
|
|
# initial setup if you want to remove it from Coolify's env store.
|
|
# Token scope: collectionId=pbc_3142635823 (the _superusers collection),
|
|
# type=auth, expires 2032-11-24.
|
|
PB_ADMIN_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJwYmNfMzE0MjYzNTgyMyIsImV4cCI6MTc4NDYyOTE1OCwiaWQiOiI4bjdrNmE1NmVrMng5ZzEiLCJyZWZyZXNoYWJsZSI6dHJ1ZSwidHlwZSI6ImF1dGgifQ.SjnBjkeKvi6cVspoqi_fgmQOROCz1VoLFh4BW7-DKS4
|
|
|
|
# ╔══════════════════════════════════════════════════════════════════════╗
|
|
# ║ OPTIONAL — uncomment if you need to override Coolify's defaults ║
|
|
# ╚══════════════════════════════════════════════════════════════════════╝
|
|
|
|
# Coolify injects PORT automatically. Only set if you need a different value.
|
|
# PORT=3000
|
|
|
|
# Bind address inside the container. Leave as 0.0.0.0 to accept Coolify's proxy.
|
|
# HOSTNAME=0.0.0.0
|
|
|
|
# NODE_ENV=production
|
|
|
|
# Skips the Next.js anonymous telemetry ping.
|
|
# NEXT_TELEMETRY_DISABLED=1
|
|
|
|
# ╔══════════════════════════════════════════════════════════════════════╗
|
|
# ║ POST-DEPLOY MIGRATION (one-off command in Coolify) ║
|
|
# ╚══════════════════════════════════════════════════════════════════════╝
|
|
# After the first deploy succeeds:
|
|
# 1. Open the Diesel Depot service in Coolify
|
|
# 2. Go to the "Terminal" or "Commands" tab
|
|
# 3. Run: npm run pb:create (creates the dd_ collections — idempotent)
|
|
# npm run pb:seed (seeds the 2 depots + owner user)
|
|
# The PB_ADMIN_TOKEN above is used for those.
|
|
# After seeding, you can rotate the superuser token in PB and remove
|
|
# PB_ADMIN_TOKEN from Coolify's env store.
|