Docker Compose
Reverse Proxy
Caddy
Nginx
CDN Subdomain
Map a CDN or subdomain to serve files directly:/{id} are public — no auth headers needed, making this ideal for CDN caching.
Production Checklist
Security
Security
- Set
SESSION_SECRETto a strong random value - Set
ALLOWED_DOMAINSto restrict sign-in - Put Stashy behind TLS (reverse proxy or load balancer)
- Set
HOSTNAMEto your public URL
Storage
Storage
- Use
localorgcsbackend (notmemory) - Mount a persistent volume for local storage
- Back up your storage directory regularly
Database
Database
- Use PostgreSQL for multi-instance setups
- Back up SQLite file if using single-instance
- Always run migrations on upgrade:
stashy serve --migrate