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 | :8884 |
| 2 | |
| 3 | reverse_proxy 127.0.0.1:65535 { |
| 4 | health_headers { |
| 5 | Host example.com |
| 6 | X-Header-Key 95ca39e3cbe7 |
| 7 | X-Header-Keys VbG4NZwWnipo 335Q9/MhqcNU3s2TO |
| 8 | X-Empty-Value |
| 9 | Same-Key 1 |
| 10 | Same-Key 2 |
| 11 | X-System-Hostname {system.hostname} |
| 12 | } |
| 13 | health_uri /health |
| 14 | } |
| 15 | ---------- |
| 16 | { |
| 17 | "apps": { |
| 18 | "http": { |
| 19 | "servers": { |
| 20 | "srv0": { |
| 21 | "listen": [ |
| 22 | ":8884" |
| 23 | ], |
| 24 | "routes": [ |
| 25 | { |
| 26 | "handle": [ |
| 27 | { |
| 28 | "handler": "reverse_proxy", |
| 29 | "health_checks": { |
| 30 | "active": { |
| 31 | "headers": { |
| 32 | "Host": [ |
| 33 | "example.com" |
| 34 | ], |
| 35 | "Same-Key": [ |
| 36 | "1", |
| 37 | "2" |
| 38 | ], |
| 39 | "X-Empty-Value": [ |
| 40 | "" |
| 41 | ], |
| 42 | "X-Header-Key": [ |
| 43 | "95ca39e3cbe7" |
| 44 | ], |
| 45 | "X-Header-Keys": [ |
| 46 | "VbG4NZwWnipo", |
| 47 | "335Q9/MhqcNU3s2TO" |
| 48 | ], |
| 49 | "X-System-Hostname": [ |
| 50 | "{system.hostname}" |
| 51 | ] |
| 52 | }, |
| 53 | "uri": "/health" |
| 54 | } |
| 55 | }, |
| 56 | "upstreams": [ |
| 57 | { |
| 58 | "dial": "127.0.0.1:65535" |
| 59 | } |
| 60 | ] |
| 61 | } |
| 62 | ] |
| 63 | } |
| 64 | ] |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | } |