Expose max log retention in traefik.yml #51
@ -10,6 +10,7 @@ LETS_ENCRYPT_EMAIL=certs@example.com
|
|||||||
# DASHBOARD_ENABLED=true
|
# DASHBOARD_ENABLED=true
|
||||||
# WARN, INFO etc.
|
# WARN, INFO etc.
|
||||||
LOG_LEVEL=WARN
|
LOG_LEVEL=WARN
|
||||||
|
LOG_MAX_AGE=1
|
||||||
|
|||||||
|
|
||||||
# This is here so later lines can extend it; you likely don't wanna edit
|
# This is here so later lines can extend it; you likely don't wanna edit
|
||||||
COMPOSE_FILE="compose.yml"
|
COMPOSE_FILE="compose.yml"
|
||||||
|
@ -27,6 +27,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- DASHBOARD_ENABLED
|
- DASHBOARD_ENABLED
|
||||||
- LOG_LEVEL
|
- LOG_LEVEL
|
||||||
|
- LOG_MAX_AGE
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "traefik", "healthcheck"]
|
test: ["CMD", "traefik", "healthcheck"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
decentral1se
commented
You also need to bump the version of the config or all upgrades will fail: https://git.coopcloud.tech/coop-cloud/traefik/src/branch/master/abra.sh#L1 You also need to bump the version of the config or all upgrades will fail:
https://git.coopcloud.tech/coop-cloud/traefik/src/branch/master/abra.sh#L1
|
|||||||
log:
|
log:
|
||||||
level: {{ env "LOG_LEVEL" }}
|
level: {{ env "LOG_LEVEL" }}
|
||||||
|
maxAge: {{ env "LOG_MAX_AGE" }}
|
||||||
|
|
||||||
|
|
||||||
providers:
|
providers:
|
||||||
docker:
|
docker:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user
This has no default set for new operators. So, if they miss adding this to their
.env
file, they are passing an empty value into the config which might have weird effects. A common approach is to thread a default in on thecompose.yml
env
stanza ala https://git.coopcloud.tech/coop-cloud/gitea/pulls/42/files#diff-31039bcded788fa49a167378a8b1ee509c366f91