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 | ech example.com |
| 3 | } |
| 4 | |
| 5 | example.com { |
| 6 | tls internal |
| 7 | } |
| 8 | |
| 9 | :8443 { |
| 10 | tls internal |
| 11 | respond "catch-all" |
| 12 | } |
| 13 | ---------- |
| 14 | { |
| 15 | "apps": { |
| 16 | "http": { |
| 17 | "servers": { |
| 18 | "srv0": { |
| 19 | "listen": [ |
| 20 | ":443" |
| 21 | ], |
| 22 | "routes": [ |
| 23 | { |
| 24 | "match": [ |
| 25 | { |
| 26 | "host": [ |
| 27 | "example.com" |
| 28 | ] |
| 29 | } |
| 30 | ], |
| 31 | "terminal": true |
| 32 | } |
| 33 | ] |
| 34 | }, |
| 35 | "srv1": { |
| 36 | "listen": [ |
| 37 | ":8443" |
| 38 | ], |
| 39 | "routes": [ |
| 40 | { |
| 41 | "handle": [ |
| 42 | { |
| 43 | "body": "catch-all", |
| 44 | "handler": "static_response" |
| 45 | } |
| 46 | ] |
| 47 | } |
| 48 | ], |
| 49 | "tls_connection_policies": [ |
| 50 | {} |
| 51 | ] |
| 52 | } |
| 53 | } |
| 54 | }, |
| 55 | "tls": { |
| 56 | "automation": { |
| 57 | "policies": [ |
| 58 | { |
| 59 | "issuers": [ |
| 60 | { |
| 61 | "module": "internal" |
| 62 | } |
| 63 | ] |
| 64 | } |
| 65 | ] |
| 66 | }, |
| 67 | "encrypted_client_hello": { |
| 68 | "configs": [ |
| 69 | { |
| 70 | "public_name": "example.com" |
| 71 | } |
| 72 | ] |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | } |