mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 17:05:48 +00:00
Caddy v2 reverse_proxy does not support a top-level `timeout` subdirective. The response_header_timeout in the transport block already covers long-running operations.
28 lines
661 B
Caddyfile
28 lines
661 B
Caddyfile
{$DOMAIN} {
|
|
reverse_proxy supersync:1900 {
|
|
# Allow up to 85 seconds for long-running operations
|
|
# (snapshot generation, large imports)
|
|
# MUST be greater than Fastify timeout (80s) but less than client timeout (90s)
|
|
transport http {
|
|
dial_timeout 10s
|
|
response_header_timeout 85s
|
|
}
|
|
}
|
|
|
|
# Security headers
|
|
header {
|
|
X-Content-Type-Options nosniff
|
|
X-Frame-Options DENY
|
|
Referrer-Policy strict-origin-when-cross-origin
|
|
-Server
|
|
}
|
|
|
|
# Enable compression
|
|
encode gzip zstd
|
|
|
|
# Logging
|
|
log {
|
|
output stdout
|
|
format console
|
|
}
|
|
}
|