@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 69 lines 935 Bytes
Raw
1 {
2 acme_dns mock foo
3 }
4
5 example.com {
6 respond "Hello World"
7 }
8 ----------
9 {
10 "apps": {
11 "http": {
12 "servers": {
13 "srv0": {
14 "listen": [
15 ":443"
16 ],
17 "routes": [
18 {
19 "match": [
20 {
21 "host": [
22 "example.com"
23 ]
24 }
25 ],
26 "handle": [
27 {
28 "handler": "subroute",
29 "routes": [
30 {
31 "handle": [
32 {
33 "body": "Hello World",
34 "handler": "static_response"
35 }
36 ]
37 }
38 ]
39 }
40 ],
41 "terminal": true
42 }
43 ]
44 }
45 }
46 },
47 "tls": {
48 "automation": {
49 "policies": [
50 {
51 "issuers": [
52 {
53 "challenges": {
54 "dns": {
55 "provider": {
56 "argument": "foo",
57 "name": "mock"
58 }
59 }
60 },
61 "module": "acme"
62 }
63 ]
64 }
65 ]
66 }
67 }
68 }
69 }