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