хозяйственная работа: временно позволите доступ, загружаются чайница
This commit is contained in:
parent
da1b6c270a
commit
ca39330df5
2 changed files with 47 additions and 36 deletions
|
|
@ -1,8 +1,16 @@
|
|||
{
|
||||
cache
|
||||
|
||||
log {
|
||||
format console
|
||||
level WARN
|
||||
level INFO
|
||||
format transform `{request>client_ip} - {user_id} [{ts}] "{request>method} {request>uri} {request>proto}" {status} {size} "{request>headers>Referer>[0]}" "{request>headers>User-Agent>[0]}"` {
|
||||
time_format "02/Jan/2006: 15:04:05 -0700"
|
||||
}
|
||||
}
|
||||
|
||||
servers :80 {
|
||||
trusted_proxies static private_ranges
|
||||
client_ip_headers X-Forwarded-For X-Real-IP
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -10,6 +18,8 @@ http://ядро.орг, http://*.ядро.орг {
|
|||
tls internal
|
||||
encode gzip zstd
|
||||
|
||||
log
|
||||
|
||||
cache {
|
||||
# we don't want to flood the upstream from the same IP
|
||||
mode bypass
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
FROM caddy:builder AS builder
|
||||
RUN --mount=type=cache,target=/go/pkg/mod xcaddy build \
|
||||
--with github.com/caddyserver/cache-handler
|
||||
--with github.com/caddyserver/cache-handler \
|
||||
--with github.com/caddyserver/transform-encoder
|
||||
|
||||
FROM caddy:latest
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue