@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 79 lines 1.03 KB
Raw
1 {
2 acme_dns mock foo
3 }
4
5 localhost {
6 tls {
7 dns mock bar
8 resolvers 8.8.8.8 8.8.4.4
9 }
10 }
11 ----------
12 {
13 "apps": {
14 "http": {
15 "servers": {
16 "srv0": {
17 "listen": [
18 ":443"
19 ],
20 "routes": [
21 {
22 "match": [
23 {
24 "host": [
25 "localhost"
26 ]
27 }
28 ],
29 "terminal": true
30 }
31 ]
32 }
33 }
34 },
35 "tls": {
36 "automation": {
37 "policies": [
38 {
39 "subjects": [
40 "localhost"
41 ],
42 "issuers": [
43 {
44 "challenges": {
45 "dns": {
46 "provider": {
47 "argument": "bar",
48 "name": "mock"
49 },
50 "resolvers": [
51 "8.8.8.8",
52 "8.8.4.4"
53 ]
54 }
55 },
56 "module": "acme"
57 }
58 ]
59 },
60 {
61 "issuers": [
62 {
63 "challenges": {
64 "dns": {
65 "provider": {
66 "argument": "foo",
67 "name": "mock"
68 }
69 }
70 },
71 "module": "acme"
72 }
73 ]
74 }
75 ]
76 }
77 }
78 }
79 }