I see a number of X-Accel-Mapping header missing
lines in the log files, reading "X-Accel-Mapping header missing" spamming web logs · Issue #8306 · tootsuite/mastodon · GitHub and [1.4.0.2] header X-Accel-Mapping missing · Issue #3221 · tootsuite/mastodon · GitHub seems that I have missed an option in my config, but which?
I’m using Caddy as the web server with the following Caddyfile:
{{ caddy_host }}/ {
log / stdout {
{{ caddy_log_ipmask }}
}
timeouts {
idle 70s
}
root {{ caddy_host_docker_webroot }}
gzip
header / {
Strict-Transport-Security "max-age=31536000"
}
header /emoji /packs /system/accounts/avatars /system/media_attachments/files {
Cache-Control "public, max-age=31536000, immutable"
Strict-Transport-Security "max-age=31536000"
}
header /sw.js {
Cache-Control "public, max-age=0"
Strict-Transport-Security "max-age=31536000"
}
errors {
* 500.html
}
rewrite {
if {path} is /
to /proxy{path}
}
rewrite {
if {path} not_has /api/v1/streaming
to {path} /proxy{path}
}
proxy /proxy {{ web_container }}:3000 {
without /proxy
transparent
websocket
}
proxy /api/v1/streaming {{ streaming_container }}:4000 {
transparent
websocket
}
tls {{ le_email }} {
protocols tls1.2
}
}