# Neo Production — Caddy reverse proxy with automatic HTTPS
# Usage: NEO_DOMAIN=app.neo.ai caddy run --config Caddyfile

{$NEO_DOMAIN:localhost} {
    reverse_proxy /ws/* 127.0.0.1:8000
    reverse_proxy * 127.0.0.1:8000

    header {
        X-Frame-Options DENY
        X-Content-Type-Options nosniff
        Referrer-Policy strict-origin-when-cross-origin
        Strict-Transport-Security "max-age=63072000; includeSubDomains"
    }

    encode gzip zstd

    log {
        output file /var/log/neo/access.log
        format json
    }
}
