Stashy is configured entirely through environment variables. Create aDocumentation Index
Fetch the complete documentation index at: https://docs.stashy.sh/llms.txt
Use this file to discover all available pages before exploring further.
.env file or export them directly.
Environment Variables
| Variable | Description | Default |
|---|---|---|
PORT | Server listen port | 8080 |
HOSTNAME | Public base URL (used for OAuth redirect) | http://localhost:$PORT |
DB_DSN | Database connection string | file:stashy.db |
STORAGE_BACKEND | memory, local, or gcs | memory |
LOCAL_STORAGE_DIR | Directory for local file storage | ./storage |
GCS_BUCKET | GCS bucket name (required when backend is gcs) | — |
SESSION_SECRET | HMAC key for signing session cookies | required |
GOOGLE_CLIENT_ID | Google OAuth 2.0 client ID | required |
GOOGLE_CLIENT_SECRET | Google OAuth 2.0 client secret | required |
ALLOWED_DOMAINS | Comma-separated list of allowed email domains | all allowed |