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
|
2022-05-03 09:43:48 +02:00
|
|
|
|
format formatted "[35m[{ts}][0m [96m[1m{request>remote_addr}[0m [31m{request>headers>X-Forwarded-For}[0m [33m{request>method}[0m [92m{request>host}[32m{request>uri}[0m [97m{status}[0m [33m{request>headers>User-Agent}[0m [34m{request>headers>Referer}[0m" {
|
|
|
|
|
time_format "02/01/2006 15:04:05-0700"
|
|
|
|
|
}
|
2022-02-21 14:35:06 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-05 11:43:52 +01:00
|
|
|
|
(dev) {
|
|
|
|
|
auto_https off
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-21 14:35:06 +01:00
|
|
|
|
(odoo) {
|
2022-05-03 09:43:48 +02:00
|
|
|
|
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
|
2022-11-05 17:35:21 +01:00
|
|
|
|
reverse_proxy /websocket {args.0}:8072
|
2022-10-31 12:43:07 +01:00
|
|
|
|
encode zstd gzip
|
|
|
|
|
}
|