docker_images/caddy/common

26 lines
658 B
Plaintext
Raw Normal View History

2022-02-21 14:35:06 +01:00
# Common snippets
(global) {
grace_period 5s
log http.log.access {
include http.log.access
output stdout
level INFO
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"
}
2022-02-21 14:35:06 +01:00
}
}
(odoo) {
reverse_proxy {args.0}:8069
reverse_proxy /longpolling/* {args.0}:8072
2022-02-21 14:35:06 +01:00
encode zstd gzip
}
2022-10-31 12:43:07 +01:00
(odoo16) {
reverse_proxy {args.0}:8069
reverse_proxy /websocket/* {args.0}:8072
encode zstd gzip
}