about summary refs log tree commit diff
path: root/bundles/doyouhavewifi/files/Caddyfile
blob: b7a57fe5f98093ae50026d9e71c1164a82f043cf (plain) (blame)
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
{
	admin off
	auto_https off
	http_port {$CADDY_HTTP_PORT:1414}
}

(external_redirects) {
}

(internal_redirects) {
	redir /.well-known/security.txt /security.txt
	redir /.well-known/humans.txt /humans.txt
	redir /.well-known/robots.txt /robots.txt
}

http:// {
	root * ./public

	encode zstd gzip
	file_server

	import external_redirects
	import internal_redirects

	respond /healthz 200

	log {
		format filter {
			wrap console {
				time_format wall_milli
				level_format color
			}
			fields {
				common_log delete
				request>headers>Accept-Encoding delete
				request>headers>Accept-Language delete
				request>headers>Connection delete
				request>headers>Authorization delete
				request>remote_addr ip_mask {
					ipv4 24
					ipv6 32
				}
			}
		}
	}
}