File size: 516 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
	admin off
	auto_https disable_redirects
}

localhost

respond / "Caddy is up and running"

# HTTP/2 Server Push
respond /serverpush "main response"
respond /serverpush/pushed "pushed response"
push /serverpush /serverpush/pushed

route /show_upload_size {
	templates
	respond `Content-length: ={{.Req.Header.Get "Content-length"}}=`
}

basic_auth /http-basic-auth {
	# bcrypt password hash for "password", calculated with 'caddy hash-password'
	user $2a$14$yUKl9SGqVTAAqPTzLup.DefsbXXx3kfreNnzpJOUHcIrKnr5lgef2
}