forked from webwurst/docker-caddy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCaddyfile
54 lines (46 loc) · 1.07 KB
/
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
48
49
50
51
52
53
54
# https://caddyserver.com/docs/caddyfile/concepts
# Global options
# https://caddyserver.com/docs/caddyfile/options
{
# General Options
order rate_limit before basicauth
# TLS Options
email {$ISSUER_ADDRESS}
acme_ca {$ACME_CA_ENDPOINT:https://acme-v02.api.letsencrypt.org/directory}
key_type rsa2048
# Server Options
servers {
metrics # Enable metrics
}
}
# Snippet section with reusable snippets
# https://caddyserver.com/docs/caddyfile/concepts#snippets
# https://github.com/mholt/caddy-ratelimit
(ratelimit) {
rate_limit {
zone dynamic {
key {remote_host}
events {args.0}
window {args.1}
}
}
}
(headerdown) {
header_down -Server
header_down -Access-Control-Allow-Headers
header_down -Access-Control-Allow-Methods
header_down -Access-Control-Allow-Origin
header_down -Access-Control-Expose-Headers
header_down -Access-Control-Max-Age
header_down -Request-Id
header_down -Response-Time
header_down -Content-Md5
}
# https://caddyserver.com/docs/caddyfile/directives/log
(stdout) {
log {
output stdout
}
}
# Import our own hosts
import vhosts/*.enabled