S
Supanote
Sign in Sign up

Caddyfile Multi-Domain Production TLS Reverse Proxy

plain (caddyfile) 1 month ago · 28 lines · 251 views
Verified Blueprint Caddy

Zero-configuration automatic Let's Encrypt TLS, Brotli/Zstandard compression, and security headers with Caddy.

Quick Fetch
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.

Related Caddy & DevOps & Infrastructure Blueprints

Production-ready configurations and diagnostics from the verified Supanote library.

All DevOps & Infrastructure →
Interactive Developer Workbench: Nginx Access & Error Log Analyzer

Parse Nginx combined access logs and upstream error traces instantly with HTTP status colorizing and secret scanning.

Open Nginx Log Analyzer →

Share Note

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

Report this note

Notification