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 | acme_dns mock |
| 3 | } |
| 4 | |
| 5 | localhost { |
| 6 | tls { |
| 7 | resolvers 8.8.8.8 8.8.4.4 |
| 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 | "challenges": { |
| 44 | "dns": { |
| 45 | "provider": { |
| 46 | "name": "mock" |
| 47 | }, |
| 48 | "resolvers": [ |
| 49 | "8.8.8.8", |
| 50 | "8.8.4.4" |
| 51 | ] |
| 52 | } |
| 53 | }, |
| 54 | "module": "acme" |
| 55 | } |
| 56 | ] |
| 57 | }, |
| 58 | { |
| 59 | "issuers": [ |
| 60 | { |
| 61 | "challenges": { |
| 62 | "dns": { |
| 63 | "provider": { |
| 64 | "name": "mock" |
| 65 | } |
| 66 | } |
| 67 | }, |
| 68 | "module": "acme" |
| 69 | } |
| 70 | ] |
| 71 | } |
| 72 | ] |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | } |