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