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 | } |
| 6 | |
| 7 | example.com { |
| 8 | tls { |
| 9 | dns mock |
| 10 | } |
| 11 | } |
| 12 | ---------- |
| 13 | { |
| 14 | "apps": { |
| 15 | "http": { |
| 16 | "servers": { |
| 17 | "srv0": { |
| 18 | "listen": [ |
| 19 | ":443" |
| 20 | ], |
| 21 | "routes": [ |
| 22 | { |
| 23 | "match": [ |
| 24 | { |
| 25 | "host": [ |
| 26 | "example.com" |
| 27 | ] |
| 28 | } |
| 29 | ], |
| 30 | "terminal": true |
| 31 | } |
| 32 | ] |
| 33 | } |
| 34 | } |
| 35 | }, |
| 36 | "tls": { |
| 37 | "automation": { |
| 38 | "policies": [ |
| 39 | { |
| 40 | "subjects": [ |
| 41 | "example.com" |
| 42 | ], |
| 43 | "issuers": [ |
| 44 | { |
| 45 | "challenges": { |
| 46 | "dns": { |
| 47 | "provider": { |
| 48 | "name": "mock" |
| 49 | }, |
| 50 | "resolvers": [ |
| 51 | "1.1.1.1", |
| 52 | "8.8.8.8" |
| 53 | ] |
| 54 | } |
| 55 | }, |
| 56 | "email": "test@example.com", |
| 57 | "module": "acme" |
| 58 | } |
| 59 | ] |
| 60 | } |
| 61 | ] |
| 62 | }, |
| 63 | "dns": { |
| 64 | "name": "mock" |
| 65 | }, |
| 66 | "resolvers": [ |
| 67 | "1.1.1.1", |
| 68 | "8.8.8.8" |
| 69 | ] |
| 70 | } |
| 71 | } |
| 72 | } |