@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 98 lines 1.37 KB
Raw
1 {
2 email test@example.com
3 dns mock
4 tls_resolvers 1.1.1.1 8.8.8.8
5 acme_dns
6 }
7
8 example.com {
9 tls {
10 resolvers 9.9.9.9
11 }
12 }
13 ----------
14 {
15 "apps": {
16 "http": {
17 "servers": {
18 "srv0": {
19 "listen": [
20 ":443"
21 ],
22 "routes": [
23 {
24 "match": [
25 {
26 "host": [
27 "example.com"
28 ]
29 }
30 ],
31 "terminal": true
32 }
33 ]
34 }
35 }
36 },
37 "tls": {
38 "automation": {
39 "policies": [
40 {
41 "subjects": [
42 "example.com"
43 ],
44 "issuers": [
45 {
46 "challenges": {
47 "dns": {
48 "resolvers": [
49 "9.9.9.9"
50 ]
51 }
52 },
53 "email": "test@example.com",
54 "module": "acme"
55 }
56 ]
57 },
58 {
59 "issuers": [
60 {
61 "challenges": {
62 "dns": {
63 "resolvers": [
64 "1.1.1.1",
65 "8.8.8.8"
66 ]
67 }
68 },
69 "email": "test@example.com",
70 "module": "acme"
71 },
72 {
73 "ca": "https://acme.zerossl.com/v2/DV90",
74 "challenges": {
75 "dns": {
76 "resolvers": [
77 "1.1.1.1",
78 "8.8.8.8"
79 ]
80 }
81 },
82 "email": "test@example.com",
83 "module": "acme"
84 }
85 ]
86 }
87 ]
88 },
89 "dns": {
90 "name": "mock"
91 },
92 "resolvers": [
93 "1.1.1.1",
94 "8.8.8.8"
95 ]
96 }
97 }
98 }