@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 77 lines 1.12 KB
Raw
1 {
2 email nobody@example.com
3 tls_automate_names *.example.com
4 }
5
6 foo.example.com {
7 respond "Hello world"
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 "foo.example.com"
24 ]
25 }
26 ],
27 "handle": [
28 {
29 "handler": "subroute",
30 "routes": [
31 {
32 "handle": [
33 {
34 "body": "Hello world",
35 "handler": "static_response"
36 }
37 ]
38 }
39 ]
40 }
41 ],
42 "terminal": true
43 }
44 ]
45 }
46 }
47 },
48 "tls": {
49 "certificates": {
50 "automate": [
51 "*.example.com"
52 ]
53 },
54 "automation": {
55 "policies": [
56 {
57 "subjects": [
58 "foo.example.com",
59 "*.example.com"
60 ],
61 "issuers": [
62 {
63 "email": "nobody@example.com",
64 "module": "acme"
65 },
66 {
67 "ca": "https://acme.zerossl.com/v2/DV90",
68 "email": "nobody@example.com",
69 "module": "acme"
70 }
71 ]
72 }
73 ]
74 }
75 }
76 }
77 }