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 | site1.example.com { |
| 9 | } |
| 10 | |
| 11 | site2.example.com { |
| 12 | tls { |
| 13 | resolvers 9.9.9.9 8.8.4.4 |
| 14 | } |
| 15 | } |
| 16 | ---------- |
| 17 | { |
| 18 | "apps": { |
| 19 | "http": { |
| 20 | "servers": { |
| 21 | "srv0": { |
| 22 | "listen": [ |
| 23 | ":443" |
| 24 | ], |
| 25 | "routes": [ |
| 26 | { |
| 27 | "match": [ |
| 28 | { |
| 29 | "host": [ |
| 30 | "site1.example.com" |
| 31 | ] |
| 32 | } |
| 33 | ], |
| 34 | "terminal": true |
| 35 | }, |
| 36 | { |
| 37 | "match": [ |
| 38 | { |
| 39 | "host": [ |
| 40 | "site2.example.com" |
| 41 | ] |
| 42 | } |
| 43 | ], |
| 44 | "terminal": true |
| 45 | } |
| 46 | ] |
| 47 | } |
| 48 | } |
| 49 | }, |
| 50 | "tls": { |
| 51 | "automation": { |
| 52 | "policies": [ |
| 53 | { |
| 54 | "subjects": [ |
| 55 | "site2.example.com" |
| 56 | ], |
| 57 | "issuers": [ |
| 58 | { |
| 59 | "challenges": { |
| 60 | "dns": { |
| 61 | "resolvers": [ |
| 62 | "9.9.9.9", |
| 63 | "8.8.4.4" |
| 64 | ] |
| 65 | } |
| 66 | }, |
| 67 | "email": "test@example.com", |
| 68 | "module": "acme" |
| 69 | } |
| 70 | ] |
| 71 | }, |
| 72 | { |
| 73 | "issuers": [ |
| 74 | { |
| 75 | "challenges": { |
| 76 | "dns": { |
| 77 | "resolvers": [ |
| 78 | "1.1.1.1", |
| 79 | "8.8.8.8" |
| 80 | ] |
| 81 | } |
| 82 | }, |
| 83 | "email": "test@example.com", |
| 84 | "module": "acme" |
| 85 | }, |
| 86 | { |
| 87 | "ca": "https://acme.zerossl.com/v2/DV90", |
| 88 | "challenges": { |
| 89 | "dns": { |
| 90 | "resolvers": [ |
| 91 | "1.1.1.1", |
| 92 | "8.8.8.8" |
| 93 | ] |
| 94 | } |
| 95 | }, |
| 96 | "email": "test@example.com", |
| 97 | "module": "acme" |
| 98 | } |
| 99 | ] |
| 100 | } |
| 101 | ] |
| 102 | }, |
| 103 | "dns": { |
| 104 | "name": "mock" |
| 105 | }, |
| 106 | "resolvers": [ |
| 107 | "1.1.1.1", |
| 108 | "8.8.8.8" |
| 109 | ] |
| 110 | } |
| 111 | } |
| 112 | } |