+22
sample-caddy.conf
+22
sample-caddy.conf
···
1
+
# -*- mode: sh -*-
2
+
3
+
knot.example.com {
4
+
# Who will register the certificate?
5
+
tls CAA_IODEF@example.com
6
+
7
+
header {
8
+
Strict-Transport-Security "max-age=31556925"
9
+
X-Robots-Tag "noarchive,nofollow,noindex,noml,nosnippet,noai,noimageai"
10
+
}
11
+
12
+
# Caddy handles websockets transparently
13
+
reverse_proxy * http://127.0.0.1:5555 {
14
+
# Flush immediately, to prevent buffered response to the client
15
+
flush_interval -1
16
+
}
17
+
18
+
# You may want to configure logging here
19
+
# https://caddyserver.com/docs/caddyfile/directives/log
20
+
}
21
+
22
+
# eof