-
Notifications
You must be signed in to change notification settings - Fork 0
/
Caddyfile
47 lines (41 loc) · 921 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
47
{
servers {
trusted_proxies cloudflare
trusted_proxies_strict
client_ip_headers X-Forwarded-For X-Real-IP
}
}
forsen.wiki {
@wsrv {
client_ip 46.4.13.221
client_ip 51.15.191.75
client_ip 2a01:4f8:221:3d28::2
client_ip 2001:bc8:6005:122:ae1f:6bff:fe21:58f2
}
handle_path /usercontent* {
handle @wsrv {
root * /srv
file_server
}
handle {
respond "Only the cache provider can access this endpoint." 403
}
}
handle {
reverse_proxy sveltekit:3000
}
log {
output file /var/log/access-forsen-wiki.log {
roll_keep_for 1d
roll_size 10MiB
}
format transform `{request>client_ip} - {request>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 +0200"
}
}
}
stats.forsen.wiki {
handle {
reverse_proxy host.docker.internal:8081
}
}