-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
42 lines (33 loc) · 970 Bytes
/
Copy pathCaddyfile
File metadata and controls
42 lines (33 loc) · 970 Bytes
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
{
# https://caddyserver.com/docs/caddyfile/options#metrics
# metrics {
# per_host
# }
# https://caddyserver.com/docs/caddyfile/options#debug
# debug
# logging
log default {
output file /var/log/caddy/main.log
# the only log for which `console` format fits more precisely.
# if you prefer json, just comment it out.
format console
}
# https://caddyserver.com/docs/caddyfile/options#timeouts
servers {
timeouts {
read_body 10s
read_header 5s
write 30s
idle 10m
}
# Cloudflare support
# safe to keep it even if the site isn't behind Cloudflare proxy
import /etc/caddy/globals/cloudflare.caddy
}
}
# import common code snippets
import /etc/caddy/globals/snippets.caddy
# configure wildcard domains before using individual domains
# import /etc/caddy/globals/wildcard-example.com.caddy-sample
# sites
import /etc/caddy/sites/*.caddy