README: document that the "tricot" tag supports glob patterns

This commit is contained in:
Armael 2025-02-09 14:49:04 +00:00
parent 2a679f97b6
commit 8c7f974e06

View file

@ -36,7 +36,7 @@ Tricot uses the following environment variables for its configuration (they can
Backends are configured by adding tags of the following form to the services in Consul:
- `tricot myapp.example.com`: indicates that Tricot should get a TLS certificate for domain myapp.example.com and route traffic for this domain to this service
- `tricot myapp.example.com`: indicates that Tricot should get a TLS certificate for domain myapp.example.com and route traffic for this domain to this service. Also supports glob patterns (for instance, `tricot *` redirects requests for all domains).
- `tricot myapp.example.com 10`: same but with a priority of 10. This is lower than the default priority value of 100, so Tricot will only use this rule if no higher-priority services are available.
- `tricot myapp.example.com/path/to_subresource`: same but indicates that only requests whose paths start with `/path/to/subresource` should be routed to this service
- `tricot myapp.example.com/path/to_subresource 10`: combining the previous two examples