hatch-surf/Caddyfile
SoftwareEngineer eed408bb19 feat: foundation Go module, HTTP server, Docker packaging
- Go module (github.com/elfoundation/hatch) with go 1.25
- cmd/hatch: HTTP server with GET /healthz returning 200 OK
- Multi-stage Dockerfile producing static binary from scratch
- docker-compose with hatch + optional Caddy reverse proxy
- CI placeholder with Go test/lint stubs
- .gitignore, .dockerignore, .env.example

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-22 15:07:44 +02:00

20 lines
391 B
Caddyfile

{$HATCH_HOSTNAME:localhost} {
reverse_proxy hatch:8080
# Log requests for debugging
log {
output stdout
format json
}
# Security headers
header {
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
Referrer-Policy "no-referrer"
}
# TLS: auto via Let's Encrypt when HATCH_HOSTNAME is a real domain.
# Falls back to self-signed for localhost / internal-only names.
}