-
Notifications
You must be signed in to change notification settings - Fork 1
/
Caddyfile
46 lines (38 loc) · 967 Bytes
/
Caddyfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
email caddy@duckhunt.me
servers {
trusted_proxies static private_ranges
}
}
v4.duckhunt.me {
encode zstd gzip
reverse_proxy /api/* duckhunt_bot:8080
log {
output stderr
format transform "{common_log}"
level DEBUG
}
log {
output file /logs/access.log {
roll_size 100m
roll_keep 3
roll_keep_for 30d
}
format json
level DEBUG
}
route {
header /static/* Cache-Control max-age=86400
}
route {
header /images/* Cache-Control max-age=172400
}
@notStatic {
not path /static/* /local/* /images/*
}
reverse_proxy @notStatic duckhunt_website:8080
file_server {
root /
index index.html index.txt index README.md
}
}