aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorQuentin <quentin@dufour.io>2023-11-29 16:09:56 +0000
committerQuentin <quentin@dufour.io>2023-11-29 16:09:56 +0000
commitb04c2bfb0a5776ddcf8c0bab23dd1f800e3a0df3 (patch)
tree8b0eda30cba5b2c62810a2cd71b7a93095e20205 /README.md
parent14325395f6b059a317df738657edec47599c291f (diff)
parentb76b6dcbcc47ebc61848389a6b0d5d4e8d8cde48 (diff)
downloadtricot-b04c2bfb0a5776ddcf8c0bab23dd1f800e3a0df3.tar.gz
tricot-b04c2bfb0a5776ddcf8c0bab23dd1f800e3a0df3.zip
Merge pull request 'New directive `tricot-add-redirect <match-prefix> <redirect-prefix> [301|302|303|307]`' (#10) from redirect into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/tricot/pulls/10
Diffstat (limited to 'README.md')
-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`