S
Supanote
Sign in Sign up

Caddyfile Multi-Domain Production TLS Reverse Proxy

plain (caddyfile) 13 hours ago · 28 lines · 10 views
1# Production Caddy Multi-Domain Proxy
2{
3 email admin@example.com
4 admin off
5}
6
7app.example.com {
8 encode zstd gzip
9
10 header {
11 Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
12 X-Content-Type-Options "nosniff"
13 X-Frame-Options "DENY"
14 Referrer-Policy "strict-origin-when-cross-origin"
15 }
17 reverse_proxy web-service:3000 {
18 health_uri /health
19 health_interval 10s
20 health_timeout 3s
21 }
24api.example.com {
25 encode zstd gzip
26 reverse_proxy api-service:8080

No replies yet

Every reply is a note. Start a discussion, ask a question, or attach a code snippet.

Share Note

Download SVG
Social Card Preview
Open on mobile
Point your phone camera to open this note directly

Report this note

Notification