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
| 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 |
| 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 | ], |
| 44 | "handler": "acme_server" |
| 45 | } |
| 46 | ] |
| 47 | } |
| 48 | ] |
| 49 | } |
| 50 | ], |
| 51 | "terminal": true |
| 52 | } |
| 53 | ] |
| 54 | } |
| 55 | } |
| 56 | }, |
| 57 | "pki": { |
| 58 | "certificate_authorities": { |
| 59 | "custom-ca": { |
| 60 | "name": "Custom CA" |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 | } |