forked from Deuxfleurs/tricot
Configuration by example
This commit is contained in:
parent
cca85653b1
commit
e446d6763e
1 changed files with 7 additions and 0 deletions
|
@ -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_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
|
- `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
|
### Adding and priorizing backends
|
||||||
|
|
||||||
Backends are configured by adding tags of the following form to the services in Consul:
|
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.
|
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
|
### How Tricot matches backends
|
||||||
|
|
||||||
Tricot priorizes backend nodes in the following order:
|
Tricot priorizes backend nodes in the following order:
|
||||||
|
|
Loading…
Reference in a new issue