mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-09-10 15:05:40 +00:00
af2755d5af
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
32 lines
612 B
Caddyfile
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
|
|
}
|
|
}
|