-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
30 lines (23 loc) · 1.94 KB
/
Copy path.env.example
File metadata and controls
30 lines (23 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# ─────────────────────────────────────────────────────────────────────────────
# Peak Tracker — Environment variables
# ─────────────────────────────────────────────────────────────────────────────
# Copy this file to .env and fill in your values.
# NEVER commit .env to Git (it is listed in .gitignore).
# ── Server ────────────────────────────────────────────────────────────────────
PORT=3000
# ── Database ──────────────────────────────────────────────────────────────────
# Local SQLite (development)
DATABASE_URL=peaks.db
# PostgreSQL (production on Railway / Fly.io)
# DATABASE_URL=postgresql://user:password@host:5432/peak_tracker
# ── Authentication ────────────────────────────────────────────────────────────
ADMIN_USER=admin
ADMIN_PASS=change_me_in_production
# Secret key used to sign JWT tokens.
# Generate one with: openssl rand -hex 32
JWT_SECRET=run_openssl_rand_hex_32_and_paste_here
# Token lifetime in hours (default: 24)
JWT_EXPIRY_HOURS=24
# ── Logging ───────────────────────────────────────────────────────────────────
# Levels: error, warn, info, debug, trace
RUST_LOG=peak_tracker=info,tower_http=info