@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 67 lines 829 Bytes
Raw
1 {
2 email foo@bar
3 }
4
5 localhost {
6 }
7
8 example.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 "example.com"
25 ]
26 }
27 ],
28 "terminal": true
29 },
30 {
31 "match": [
32 {
33 "host": [
34 "localhost"
35 ]
36 }
37 ],
38 "terminal": true
39 }
40 ]
41 }
42 }
43 },
44 "tls": {
45 "automation": {
46 "policies": [
47 {
48 "subjects": [
49 "example.com"
50 ],
51 "issuers": [
52 {
53 "email": "foo@bar",
54 "module": "acme"
55 },
56 {
57 "ca": "https://acme.zerossl.com/v2/DV90",
58 "email": "foo@bar",
59 "module": "acme"
60 }
61 ]
62 }
63 ]
64 }
65 }
66 }
67 }