Lexicon-driven ATProto AppView in Gleam — port of HappyView
1# SQLite path (default: gleamview.db in CWD)
2DATABASE_URL=sqlite:gleamview.db
3
4# Public URL used for OAuth metadata / did:web (use 127.0.0.1, not localhost)
5PUBLIC_URL=http://127.0.0.1:3000
6
7HOST=0.0.0.0
8PORT=3000
9
10# Session cookie signing (at least 64 chars in production)
11SESSION_SECRET=dev-secret-change-me-please-use-at-least-64-characters-long!!
12
13# Bootstrap admin API key shown once on first start if no users exist
14# GLEAMVIEW_ADMIN_KEY=gv_admin_...
15
16JETSTREAM_URL=wss://jetstream1.us-east.bsky.network
17# Set to 0 to disable Jetstream
18JETSTREAM_ENABLED=1
19
20PLC_URL=https://plc.directory
21RELAY_URL=https://bsky.network
22
23# Dev-only: allow unauthenticated local procedure writes into the index
24# (HappyView always proxies to the user's PDS; GleamView MVP can index locally)
25ALLOW_LOCAL_WRITES=1
26
27# OAuth session storage (default: $XDG_STATE_HOME/gleamview or ~/.local/state/gleamview)
28# GLEAMVIEW_STATE_DIR=/var/lib/gleamview
29
30# Dev-only: allow unauthenticated local procedure writes into the index
31# Set to 0 to require OAuth sessions and proxy writes to the user's PDS
32# ALLOW_LOCAL_WRITES=1