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 | localhost |
| 2 | |
| 3 | tls { |
| 4 | issuer acme { |
| 5 | preferred_chains { |
| 6 | any_common_name "Generic CA 1" "Generic CA 2" |
| 7 | } |
| 8 | } |
| 9 | } |
| 10 | ---------- |
| 11 | { |
| 12 | "apps": { |
| 13 | "http": { |
| 14 | "servers": { |
| 15 | "srv0": { |
| 16 | "listen": [ |
| 17 | ":443" |
| 18 | ], |
| 19 | "routes": [ |
| 20 | { |
| 21 | "match": [ |
| 22 | { |
| 23 | "host": [ |
| 24 | "localhost" |
| 25 | ] |
| 26 | } |
| 27 | ], |
| 28 | "terminal": true |
| 29 | } |
| 30 | ] |
| 31 | } |
| 32 | } |
| 33 | }, |
| 34 | "tls": { |
| 35 | "automation": { |
| 36 | "policies": [ |
| 37 | { |
| 38 | "subjects": [ |
| 39 | "localhost" |
| 40 | ], |
| 41 | "issuers": [ |
| 42 | { |
| 43 | "module": "acme", |
| 44 | "preferred_chains": { |
| 45 | "any_common_name": [ |
| 46 | "Generic CA 1", |
| 47 | "Generic CA 2" |
| 48 | ] |
| 49 | } |
| 50 | } |
| 51 | ] |
| 52 | } |
| 53 | ] |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | } |