mirror of
https://github.com/caddyserver/caddy.git
synced 2026-04-26 10:49:51 -04:00
Some checks failed
Tests / test (./cmd/caddy/caddy, ~1.26.0, ubuntu-latest, 0, 1.26, linux) (push) Failing after 15m2s
Tests / test (s390x on IBM Z) (push) Has been skipped
Tests / goreleaser-check (push) Has been skipped
Cross-Build / build (~1.26.0, 1.26, aix) (push) Failing after 11m36s
Cross-Build / build (~1.26.0, 1.26, darwin) (push) Successful in 1m32s
Cross-Build / build (~1.26.0, 1.26, dragonfly) (push) Failing after 2m3s
Cross-Build / build (~1.26.0, 1.26, freebsd) (push) Failing after 2m2s
Cross-Build / build (~1.26.0, 1.26, illumos) (push) Failing after 11m12s
Cross-Build / build (~1.26.0, 1.26, linux) (push) Successful in 6m45s
Cross-Build / build (~1.26.0, 1.26, netbsd) (push) Failing after 2m3s
Cross-Build / build (~1.26.0, 1.26, openbsd) (push) Successful in 1m57s
Cross-Build / build (~1.26.0, 1.26, solaris) (push) Failing after 56s
Cross-Build / build (~1.26.0, 1.26, windows) (push) Failing after 51s
Lint / lint (ubuntu-latest, linux) (push) Failing after 1m24s
Lint / govulncheck (push) Failing after 1m51s
Lint / dependency-review (push) Failing after 3m55s
OpenSSF Scorecard supply-chain security / Scorecard analysis (push) Failing after 20s
Tests / test (./cmd/caddy/caddy, ~1.26.0, macos-14, 0, 1.26, mac) (push) Has been cancelled
Tests / test (./cmd/caddy/caddy.exe, ~1.26.0, windows-latest, True, 1.26, windows) (push) Has been cancelled
Lint / lint (macos-14, mac) (push) Has been cancelled
Lint / lint (windows-latest, windows) (push) Has been cancelled
59 lines
1.4 KiB
Plaintext
59 lines
1.4 KiB
Plaintext
:8884
|
|
|
|
reverse_proxy 127.0.0.1:65535 {
|
|
lb_retries 3
|
|
lb_retry_match expression `{rp.status_code} in [502, 503]`
|
|
lb_retry_match expression `{rp.is_transport_error} || {rp.status_code} == 502`
|
|
lb_retry_match expression `method('POST') && {rp.status_code} == 503`
|
|
lb_retry_match `{rp.status_code} == 504`
|
|
lb_retry_match `{rp.is_transport_error} && method('PUT')`
|
|
}
|
|
----------
|
|
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"listen": [
|
|
":8884"
|
|
],
|
|
"routes": [
|
|
{
|
|
"handle": [
|
|
{
|
|
"handler": "reverse_proxy",
|
|
"load_balancing": {
|
|
"retries": 3,
|
|
"retry_match": [
|
|
{
|
|
"expression": "{http.reverse_proxy.status_code} in [502, 503]"
|
|
},
|
|
{
|
|
"expression": "{http.reverse_proxy.is_transport_error} || {http.reverse_proxy.status_code} == 502"
|
|
},
|
|
{
|
|
"expression": "method('POST') \u0026\u0026 {http.reverse_proxy.status_code} == 503"
|
|
},
|
|
{
|
|
"expression": "{http.reverse_proxy.status_code} == 504"
|
|
},
|
|
{
|
|
"expression": "{http.reverse_proxy.is_transport_error} \u0026\u0026 method('PUT')"
|
|
}
|
|
]
|
|
},
|
|
"upstreams": [
|
|
{
|
|
"dial": "127.0.0.1:65535"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|