Gerador de Configurações Caddyfile, Reverse Proxy e HTTPS
Guia técnico e referência de configuração para geração de arquivos Caddyfile voltados a ambientes de produção.
# ========================================================
# Caddy 2 Production Server Configuration
# Site Address: app.example.com, www.app.example.com
# Workload Profile: Current Configuration
# Generated 100% Client-Side Private on ToolsAA
# ========================================================
{
email [email protected]
admin off
}
app.example.com, www.app.example.com {
reverse_proxy 127.0.0.1:3000 {
# Standard proxy header passthrough
header_up Host {upstream_hostport}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
transport http {
dial_timeout 5s
response_header_timeout 60s
}
}
# Ultra-fast high-compression (Zstandard & Gzip)
encode zstd gzip
# Security Hardening & Header Manipulation
header {
# HTTP Strict Transport Security (HSTS 2-Year Preload)
Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
# Prevent MIME-type sniffing attacks
X-Content-Type-Options "nosniff"
# Mitigate clickjacking framing attacks
X-Frame-Options "DENY"
# Cross-domain referrer policy
Referrer-Policy "strict-origin-when-cross-origin"
# Restrict hardware API access
Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=()"
# Suppress fingerprinting headers
-Server
-X-Powered-By
}
# Structured Access Logging
log {
output file /var/log/caddy/app.example.com.access.log {
roll_size 10mb
roll_keep 5
roll_keep_for 720h
}
format json
}
}Gerador 100% privado no navegador
Nenhum dado é enviado a servidores. Domínios, IPs internos e credenciais são processados localmente no seu computador.
Diretivas Caddy 2 e HTTPS automático
Geração de certificados TLS automáticos via Let's Encrypt / ZeroSSL, HTTP/3 QUIC, WebSockets e compressão Zstandard.
Pronto para produção em contêineres
Exporte arquivos Caddyfile limpos, definições Docker Compose, serviços Systemd e comandos de validação CLI.