-
Notifications
You must be signed in to change notification settings - Fork 0
/
Caddyfile
34 lines (29 loc) · 897 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
{
debug
}
# reusable snippets
(trusted_proxies) {
trusted_proxies 173.245.48.0/20 103.21.244.0/22 103.22.200.0/22 103.31.4.0/22 141.101.64.0/18 108.162.192.0/18 190.93.240.0/20 188.114.96.0/20 197.234.240.0/22 198.41.128.0/17 162.158.0.0/15 104.16.0.0/13 104.24.0.0/14 172.64.0.0/13 131.0.72.0/22
header_up X-Forwarded-For {http.request.header.CF-Connecting-IP}
}
(boilerplate) {
encode gzip zstd
}
ragingdharma.com {
log {
output file /var/log/ragingdharma.com-access.log {
roll_size 10mb
roll_keep 20
roll_keep_for 720h
}
}
import boilerplate
reverse_proxy http://127.0.0.1:8000 {
import trusted_proxies
}
tls tls@ragingdharma.com
}
www.ragingdharma.com {
import boilerplate
redir https://ragingdharma.com{uri}
}