731 B
731 B
# 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"
}
}
}
(dev) {
auto_https off
}
(odoo) {
reverse_proxy {args.0}:8069
reverse_proxy /longpolling/* {args.0}:8072
encode zstd gzip
}
(odoo16) {
reverse_proxy {args.0}:8069
handle_path /websocket {
reverse_proxy {args.0}:8072
}
encode zstd gzip
}
(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"
}
}
}
(dev) {
auto_https off
}
(odoo) {
reverse_proxy {args.0}:8069
reverse_proxy /longpolling/* {args.0}:8072
encode zstd gzip
}
(odoo16) {
reverse_proxy {args.0}:8069
handle_path /websocket {
reverse_proxy {args.0}:8072
}
encode zstd gzip
}