@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 92 lines 1.45 KB
Raw
1 {
2 email nobody@example.com
3 tls_automate_names foo.example.com bar.example.com
4 }
5
6 foo.example.com {
7 tls {
8 ca https://acme.example.test/directory
9 }
10 respond "served with its own issuer"
11 }
12 ----------
13 {
14 "apps": {
15 "http": {
16 "servers": {
17 "srv0": {
18 "listen": [
19 ":443"
20 ],
21 "routes": [
22 {
23 "match": [
24 {
25 "host": [
26 "foo.example.com"
27 ]
28 }
29 ],
30 "handle": [
31 {
32 "handler": "subroute",
33 "routes": [
34 {
35 "handle": [
36 {
37 "body": "served with its own issuer",
38 "handler": "static_response"
39 }
40 ]
41 }
42 ]
43 }
44 ],
45 "terminal": true
46 }
47 ]
48 }
49 }
50 },
51 "tls": {
52 "certificates": {
53 "automate": [
54 "bar.example.com",
55 "foo.example.com"
56 ]
57 },
58 "automation": {
59 "policies": [
60 {
61 "subjects": [
62 "foo.example.com"
63 ],
64 "issuers": [
65 {
66 "ca": "https://acme.example.test/directory",
67 "email": "nobody@example.com",
68 "module": "acme"
69 }
70 ]
71 },
72 {
73 "subjects": [
74 "bar.example.com"
75 ],
76 "issuers": [
77 {
78 "email": "nobody@example.com",
79 "module": "acme"
80 },
81 {
82 "ca": "https://acme.zerossl.com/v2/DV90",
83 "email": "nobody@example.com",
84 "module": "acme"
85 }
86 ]
87 }
88 ]
89 }
90 }
91 }
92 }