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