Files
xarmian af2755d5af docs: add deployment documentation, Docker Compose, and K8s manifests
Provide production-ready deployment configurations:
- docker-compose.yml: Pad + PostgreSQL + Redis single-command setup
- docker-compose.prod.yml: production overlay with resource limits
- deploy/k8s/: Kubernetes manifests (deployment, service, ingress, HPA)
- deploy/Caddyfile: Caddy reverse proxy with auto-TLS
- deploy/nginx.conf: nginx config with SSE-friendly proxy settings
- docs/deployment.md: environment variable reference, architecture
  diagram, quick start, production checklist
2026-04-06 01:58:04 +00:00

32 lines
612 B
Caddyfile

# Pad — Caddy reverse proxy
# Caddy automatically provisions and renews TLS certificates.
#
# Usage:
# 1. Replace "pad.example.com" with your domain
# 2. Run: caddy run --config Caddyfile
#
# With Docker Compose, add a Caddy service on the pad-net network.
pad.example.com {
reverse_proxy pad:7777 {
# SSE: disable buffering for real-time events
flush_interval -1
}
# Optional: rate limiting
# rate_limit {
# zone api {
# key {remote_host}
# events 100
# window 1m
# }
# }
encode gzip
log {
output file /var/log/caddy/pad-access.log
format json
}
}