feat: add ability to set a custom priority for traefik routing rules

This commit is contained in:
Jose Diaz-Gonzalez
2022-11-27 22:23:06 -05:00
parent 38cb05e7b1
commit e26b0ba1db
7 changed files with 61 additions and 5 deletions

View File

@@ -112,7 +112,17 @@ Traefik log output is set to `ERROR` by default. It may be changed by setting th
dokku traefik:set --global log-level DEBUG
```
After modifying, the Traefik container will need to be restarted.
After modifying, the Traefik container will need to be restarted.
### Setting rule priority
By default, app deployments will result in the newer traefik rules using a higher priority in order to have any newer rules respected by Traefik. Rule priorities will always increase according to the current unix timestamp. The priority may be fixed by setting the app-level `priority` property:
```shell
dokku traefik:set node-js-app priority 12345
```
After modifying, the app container will need to be recreated via a `ps:rebuild` or an app deployment.
### SSL Configuration