[IMP]Caddy common snippets
This commit is contained in:
parent
c2d7794835
commit
1caf81cf57
@ -6,3 +6,5 @@ RUN xcaddy build \
|
||||
|
||||
FROM caddy:2
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
|
||||
COPY common /caddycommon
|
||||
|
19
caddy/common
Normal file
19
caddy/common
Normal file
@ -0,0 +1,19 @@
|
||||
# Common snippets
|
||||
|
||||
(global) {
|
||||
grace_period 5s
|
||||
log http.log.access {
|
||||
include http.log.access
|
||||
output stdout
|
||||
level INFO
|
||||
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 [90m{request>headers>User-Agent}[0m [34m{request>headers>Referer}[0m" {
|
||||
time_format "02/Jan/2006:15:04:05-0700"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
(odoo) {
|
||||
reverse_proxy {args.0}:8069
|
||||
reverse_proxy /longpolling/* {args.0}:8072
|
||||
encode zstd gzip
|
||||
}
|
Loading…
Reference in New Issue
Block a user