aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-29 16:17:42 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-29 16:17:42 +0100
commitb76b6dcbcc47ebc61848389a6b0d5d4e8d8cde48 (patch)
tree8b0eda30cba5b2c62810a2cd71b7a93095e20205
parent2b3f934247e0c35f53822d600ec34483b4092e5c (diff)
downloadtricot-b76b6dcbcc47ebc61848389a6b0d5d4e8d8cde48.tar.gz
tricot-b76b6dcbcc47ebc61848389a6b0d5d4e8d8cde48.zip
add tricot-add-redirect in readmeredirect
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index ae46d8e..63ef8dd 100644
--- a/README.md
+++ b/README.md
@@ -42,6 +42,7 @@ Backends are configured by adding tags of the following form to the services in
- `tricot myapp.example.com/path/to_subresource 10`: combining the previous two examples
- `tricot-https myapp.example.com`: same, but indicates that the backend service handling the request expects an HTTPS request and not an HTTP request. In this case, Tricot will do everything in its power to NOT verify the backend's TLS certificate (ignore self-signed certificate, ignore TLS hostname, etc).
- `tricot-add-header Access-Control-Allow-Origin *`: add the `Access-Control-Allow-Origin: *` header to all of the HTTP responses when they are proxied back to the client
+- `tricot-add-redirect old.example.com/maybe_subpath new.example.com/new/subpath 301`: redirects paths that match the first pattern to the second pattern with the given HTTP status code. More info in [PR#10](https://git.deuxfleurs.fr/Deuxfleurs/tricot/pulls/10).
- `tricot-global-lb`: load-balance incoming requests to all matching backends
- `tricot-site-lb`: load-balance incoming requests to all matching backends that are in the same site (geographical location); when site information about nodes is not available, this is equivalent to `tricot-global-lb`