@marcel91200 / caddy Mirror · read-only
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 11, 01:00 UTC

master
caddyfiletest 62 lines 774 Bytes
Raw
1 # example from https://caddy.community/t/21415
2 a.com {
3 tls {
4 get_certificate http http://foo.com/get
5 }
6 }
7
8 b.com {
9 }
10 ----------
11 {
12 "apps": {
13 "http": {
14 "servers": {
15 "srv0": {
16 "listen": [
17 ":443"
18 ],
19 "routes": [
20 {
21 "match": [
22 {
23 "host": [
24 "a.com"
25 ]
26 }
27 ],
28 "terminal": true
29 },
30 {
31 "match": [
32 {
33 "host": [
34 "b.com"
35 ]
36 }
37 ],
38 "terminal": true
39 }
40 ]
41 }
42 }
43 },
44 "tls": {
45 "automation": {
46 "policies": [
47 {
48 "subjects": [
49 "a.com"
50 ],
51 "get_certificate": [
52 {
53 "url": "http://foo.com/get",
54 "via": "http"
55 }
56 ]
57 }
58 ]
59 }
60 }
61 }
62 }