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 | email test@example.com |
| 3 | dns mock |
| 4 | tls_resolvers 1.1.1.1 8.8.8.8 |
| 5 | acme_dns |
| 6 | } |
| 7 | |
| 8 | example.com { |
| 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 | "example.com" |
| 25 | ] |
| 26 | } |
| 27 | ], |
| 28 | "terminal": true |
| 29 | } |
| 30 | ] |
| 31 | } |
| 32 | } |
| 33 | }, |
| 34 | "tls": { |
| 35 | "automation": { |
| 36 | "policies": [ |
| 37 | { |
| 38 | "issuers": [ |
| 39 | { |
| 40 | "challenges": { |
| 41 | "dns": { |
| 42 | "resolvers": [ |
| 43 | "1.1.1.1", |
| 44 | "8.8.8.8" |
| 45 | ] |
| 46 | } |
| 47 | }, |
| 48 | "email": "test@example.com", |
| 49 | "module": "acme" |
| 50 | }, |
| 51 | { |
| 52 | "ca": "https://acme.zerossl.com/v2/DV90", |
| 53 | "challenges": { |
| 54 | "dns": { |
| 55 | "resolvers": [ |
| 56 | "1.1.1.1", |
| 57 | "8.8.8.8" |
| 58 | ] |
| 59 | } |
| 60 | }, |
| 61 | "email": "test@example.com", |
| 62 | "module": "acme" |
| 63 | } |
| 64 | ] |
| 65 | } |
| 66 | ] |
| 67 | }, |
| 68 | "dns": { |
| 69 | "name": "mock" |
| 70 | }, |
| 71 | "resolvers": [ |
| 72 | "1.1.1.1", |
| 73 | "8.8.8.8" |
| 74 | ] |
| 75 | } |
| 76 | } |
| 77 | } |