aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-01-13 12:15:07 +0100
committerAlex Auvolat <alex@adnab.me>2022-01-13 12:15:07 +0100
commite446d6763e2747bf4dc88ffc845e8b39a0b33451 (patch)
treee1f5e52cb9727151d18f1d22931ea370025fdb66
parentcca85653b169730eab7dec2c4ab0fb2f1f455a7c (diff)
downloadtricot-e446d6763e2747bf4dc88ffc845e8b39a0b33451.tar.gz
tricot-e446d6763e2747bf4dc88ffc845e8b39a0b33451.zip
Configuration by example
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index c3bf198..b18d57f 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,8 @@ Tricot uses the following environment variables for its configuration (they can
- `TRICOT_ENABLE_COMPRESSION` (default: `false`): whether to enable transparent compression of data coming back from backends
- `TRICOT_COMPRESS_MIME_TYPES` (default: `text/html,text/plain,text/css,text/javascript,text/xml,application/javascript,application/json,application/xml,image/svg+xml,font/ttf`): comma-separated list of MIME types for which Tricot will do compression
+[Here is an example of how to run Tricot as a Nomad service](https://git.deuxfleurs.fr/Deuxfleurs/nixcfg/src/branch/main/app/frontend/deploy/frontend-tricot.hcl) (in this example it also integrates with [Diplonat](https://git.deuxfleurs.fr/Deuxfleurs/diplonat)).
+
### Adding and priorizing backends
Backends are configured by adding tags of the following form to the services in Consul:
@@ -39,6 +41,11 @@ Backends are configured by adding tags of the following form to the services in
Any number of such rules can be combined freely.
+[Here](https://git.deuxfleurs.fr/Deuxfleurs/nixcfg/src/branch/main/app/dummy/deploy/dummy-nginx.hcl)
+[are](https://git.deuxfleurs.fr/Deuxfleurs/nixcfg/src/branch/main/app/garage-staging/deploy/garage.hcl)
+[some](https://git.deuxfleurs.fr/Deuxfleurs/nixcfg/src/branch/main/app/im/deploy/im.hcl)
+[examples](https://git.deuxfleurs.fr/Deuxfleurs/infrastructure/src/branch/main/app/jitsi/deploy/jitsi.hcl).
+
### How Tricot matches backends
Tricot priorizes backend nodes in the following order: