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