-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
59 lines (50 loc) · 3.12 KB
/
Copy path.env.example
File metadata and controls
59 lines (50 loc) · 3.12 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# ─────────────────────────────────────────────────────────────────────────────
# Padel System — Environment Variables
# Copy to .env and fill in real values before running.
# ─────────────────────────────────────────────────────────────────────────────
# ── Server ───────────────────────────────────────────────────────────────────
SERVER_HOST=0.0.0.0
SERVER_PORT=8000
# Public URL used in media download links sent to displays.
# Recommended: a stable mDNS hostname so you never have to retype an IP.
# 1. Set the server's hostname to "padel" (`sudo hostnamectl set-hostname padel`)
# 2. Make sure avahi-daemon is running (`sudo systemctl enable --now avahi-daemon`)
# 3. Then this URL works from every device on the same LAN.
# Fallback: use the server's LAN IP, e.g. http://192.168.0.50:8000
SERVER_PUBLIC_URL=http://padel.local:8000
# Database URL (SQLite for MVP; swap for postgresql+asyncpg://... for prod)
DATABASE_URL=sqlite:///./padel.db
# Directory where uploaded media files are stored
MEDIA_DIR=./uploads
# Shared device authentication token (all devices must present this)
DEVICE_TOKEN=padel-secret-token-change-me
# Admin session secret (for future cookie-based auth)
SECRET_KEY=change-me-in-production
ACCESS_TOKEN_MINUTES=720
# First-run web users. Change these before showing the system to clients.
DEFAULT_ADMIN_EMAIL=admin@padel.local
DEFAULT_ADMIN_PASSWORD=ChangeMeAdmin123!
DEFAULT_ADMIN_DISPLAY_NAME=System Admin
DEFAULT_CLIENT_EMAIL=client@padel.local
DEFAULT_CLIENT_PASSWORD=ChangeMeClient123!
# Friendly name shown to the customer (e.g. "Court 1 Member", the actual member name, etc.).
# Editable later from the Admin → Client access panel.
DEFAULT_CLIENT_DISPLAY_NAME=Club Member
# JSON list of court IDs this default client may see. [] means no courts until assigned.
DEFAULT_CLIENT_COURTS=["court_01"]
# Log level: DEBUG | INFO | WARNING | ERROR
LOG_LEVEL=INFO
# ── Pi Display ───────────────────────────────────────────────────────────────
# Set these in the Pi's environment or a local .env in pi_display/
DISPLAY_ID=display_01
DISPLAY_COURT_ID=court_01
# Use the same hostname as SERVER_PUBLIC_URL above. Fall back to a LAN IP
# only if mDNS is not available on the network.
SERVER_WS_URL=ws://padel.local:8000
SERVER_HTTP_URL=http://padel.local:8000
MEDIA_CACHE_DIR=/opt/padel_display/media
# ── Smartwatch firmware (edit config.h, not this file) ───────────────────────
# WATCH_ID watch_01
# COURT_ID court_01
# SERVER_HOST padel.local # or fall back to LAN IP if mDNS unavailable
# SERVER_PORT 8000