@marcel91200 / caddy Mirror · read-only
Fork 0

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

master
caddyfiletest 71 lines 1.17 KB
Raw
1 :8884
2
3 reverse_proxy 127.0.0.1:65535 127.0.0.1:35535 {
4 lb_policy weighted_round_robin 10 1
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": "weighted_round_robin",
47 "weights": [
48 10,
49 1
50 ]
51 },
52 "try_duration": 10000000000,
53 "try_interval": 500000000
54 },
55 "upstreams": [
56 {
57 "dial": "127.0.0.1:65535"
58 },
59 {
60 "dial": "127.0.0.1:35535"
61 }
62 ]
63 }
64 ]
65 }
66 ]
67 }
68 }
69 }
70 }
71 }