@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 66 lines 900 Bytes
Raw
1 {
2 pki {
3 ca custom-ca {
4 name "Custom CA"
5 }
6 }
7 }
8
9 acme.example.com {
10 acme_server {
11 ca custom-ca
12 challenges dns-01 http-01
13 }
14 }
15 ----------
16 {
17 "apps": {
18 "http": {
19 "servers": {
20 "srv0": {
21 "listen": [
22 ":443"
23 ],
24 "routes": [
25 {
26 "match": [
27 {
28 "host": [
29 "acme.example.com"
30 ]
31 }
32 ],
33 "handle": [
34 {
35 "handler": "subroute",
36 "routes": [
37 {
38 "handle": [
39 {
40 "ca": "custom-ca",
41 "challenges": [
42 "dns-01",
43 "http-01"
44 ],
45 "handler": "acme_server"
46 }
47 ]
48 }
49 ]
50 }
51 ],
52 "terminal": true
53 }
54 ]
55 }
56 }
57 },
58 "pki": {
59 "certificate_authorities": {
60 "custom-ca": {
61 "name": "Custom CA"
62 }
63 }
64 }
65 }
66 }