Docker health checks and load balancers call /health directly without
going through the reverse proxy, so they need HTTP access. This fix
exempts /health and /metrics endpoints from HTTPS enforcement in
production mode.
Fixes the issue where Docker health checks were being redirected to
HTTPS and failing because there's no TLS on localhost.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Complete security hardening implementation including HTTPS enforcement,
security headers, rate limiting, and comprehensive security test suite.
Key features:
- HTTPS enforcement with HSTS support
- Security headers (CSP, X-Frame-Options, X-Content-Type-Options)
- Rate limiting for all critical endpoints
- Enhanced email template security
- 87% test coverage with security-specific tests
Architect approval: 9.5/10
Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>