Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
38 lines (35 loc) · 1.7 KB
/
Copy path.env.example
File metadata and controls
38 lines (35 loc) · 1.7 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
# Copy to backend/.env for `cargo run` (the backend loads it with dotenvy).
# The database: PostgreSQL (docker compose up -d db), SQLite, or MySQL/MariaDB.
DATABASE_URL=postgres://rollcall:rollcall@localhost:5432/rollcall
# DATABASE_URL=sqlite://rollcall.db
# DATABASE_URL=mysql://rollcall:rollcall@localhost:3306/rollcall
BIND_ADDR=0.0.0.0:8080
# Serve the built frontend from the backend (optional in development).
# STATIC_DIR=../frontend/build
# Allow the Vite dev server if you call the API cross-origin (the dev proxy makes this unnecessary).
# CORS_ORIGIN=http://localhost:5173
# Serve Rollcall under a sub-path behind a reverse proxy.
# BASE_PATH=/rollcall
# The address people open Rollcall at, for links in notifications.
# PUBLIC_URL=https://rollcall.example.com
# Any variable can be read from a file instead: NAME_FILE=/path/to/file.
# DATABASE_URL_FILE=/run/secrets/database_url
RUST_LOG=rollcall=debug,tower_http=info
# URL parser
# Where uploaded photos are saved (created if missing).
# UPLOAD_DIR=uploads
# Where backups are saved (created when the first one is).
# BACKUP_DIR=backups
# The community filament catalog: where to download it, comma-separated, or "off".
# CATALOG_URLS=https://api.openfilamentdatabase.org/json/all.json.gz
# CATALOG_CACHE=catalog.json.gz
# Its second source, SpoolmanDB: where to download it, or "off".
# SPOOLMANDB_URLS=https://donkie.github.io/SpoolmanDB/filaments.json
# SPOOLMANDB_CACHE=spoolmandb.json
# SCRAPER_TIMEOUT_SECS=12
# SCRAPER_USER_AGENT=...
# Set to true only if you need to parse pages on your own network.
# SCRAPER_ALLOW_PRIVATE_HOSTS=false
# Optional LLM-assisted extraction for pages the parser can't read fully.
# ANTHROPIC_API_KEY=
# LLM_MODEL=claude-opus-5-5