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 | lb_policy first |
| 5 | lb_retries 5 |
| 6 | lb_try_duration 10s |
| 7 | lb_try_interval 500ms |
| 8 | lb_retry_match { |
| 9 | path /foo* |
| 10 | method POST |
| 11 | } |
| 12 | lb_retry_match path /bar* |
| 13 | } |
| 14 | ---------- |
| 15 | { |
| 16 | "apps": { |
| 17 | "http": { |
| 18 | "servers": { |
| 19 | "srv0": { |
| 20 | "listen": [ |
| 21 | ":8884" |
| 22 | ], |
| 23 | "routes": [ |
| 24 | { |
| 25 | "handle": [ |
| 26 | { |
| 27 | "handler": "reverse_proxy", |
| 28 | "load_balancing": { |
| 29 | "retries": 5, |
| 30 | "retry_match": [ |
| 31 | { |
| 32 | "method": [ |
| 33 | "POST" |
| 34 | ], |
| 35 | "path": [ |
| 36 | "/foo*" |
| 37 | ] |
| 38 | }, |
| 39 | { |
| 40 | "path": [ |
| 41 | "/bar*" |
| 42 | ] |
| 43 | } |
| 44 | ], |
| 45 | "selection_policy": { |
| 46 | "policy": "first" |
| 47 | }, |
| 48 | "try_duration": 10000000000, |
| 49 | "try_interval": 500000000 |
| 50 | }, |
| 51 | "upstreams": [ |
| 52 | { |
| 53 | "dial": "127.0.0.1:65535" |
| 54 | } |
| 55 | ] |
| 56 | } |
| 57 | ] |
| 58 | } |
| 59 | ] |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | } |