[IMP]Caddy : enhancements with 2.5.0

* With 2.5.0, format-encoder can be reused ;
* With 2.5.0, no more need for specific forwarded header.
This commit is contained in:
Fabien BOURGEOIS 2022-05-03 09:43:48 +02:00
parent f34f22bfe6
commit 3c08ba5ac7
2 changed files with 6 additions and 7 deletions

View File

@ -2,6 +2,7 @@ FROM caddy:2-builder AS builder
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
RUN xcaddy build \
--with github.com/caddyserver/transform-encoder \
--with github.com/caddy-dns/lego-deprecated
FROM caddy:2

View File

@ -6,16 +6,14 @@
include http.log.access
output stdout
level INFO
format console
format formatted "[{ts}] {request>remote_addr} {request>headers>X-Forwarded-For} {request>method} {request>host}{request>uri} {status} {request>headers>User-Agent} {request>headers>Referer}" {
time_format "02/01/2006 15:04:05-0700"
}
}
}
(odoo) {
reverse_proxy {args.0}:8069 {
header_up X-Forwarded-Host {host}
}
reverse_proxy /longpolling/* {args.0}:8072 {
header_up X-Forwarded-Host {host}
}
reverse_proxy {args.0}:8069
reverse_proxy /longpolling/* {args.0}:8072
encode zstd gzip
}