Expose max log retention in traefik.yml #51
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sixsmith/traefik:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
And set the sample maxAge to 1 day.
Looks goot to me
@sixsmith @marlon nice one, would you mind handling these comments also? thanks!
Also, does this change any default behaviour for others? This is one of the most central recipes used by all operators, so it's good to clear what is changing.
@ -10,6 +10,7 @@ LETS_ENCRYPT_EMAIL=certs@example.com
# DASHBOARD_ENABLED=true
# WARN, INFO etc.
LOG_LEVEL=WARN
LOG_MAX_AGE=1
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@ -1,6 +1,8 @@
---
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
Thanks for the review, I hadn't been thinking about the defaults! fixed those issues in a new commit 👍
Is maxAge introduced in traefik v3? I get the following error:
error: field not found, node: maxAge
. We might need to revert this change until we update traefik to v3Yes, I think you're right. I deleted the release flag for this change and unless @sixsmith has a fix we should probably just revert the change. Or actually just revert until a fix can be researched.
Ok, I will revert it then for now