Expose LOG_MAX_AGE #55
Reference in New Issue
Block a user
No description provided.
Delete Branch "sixsmith/traefik:v3-log-max-age"
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?
Expose LOG_MAX_AGE, Traefik's log retention setting for log retention (in days).
@sixsmith this looks incredible, thank you so much! 🤩
Only note is that
TRAEFIK_YML_VERSION
inabra.sh
needs to be incremented with every change to the file, otherwise upgrades of existing instances will probably fail.@ -4,6 +4,7 @@ core:
log:
level: {{ env "LOG_LEVEL" }}
maxAge: {{ env "LOG_MAX_AGE" }}
Oh sorry, this is not exactly compatible with new upgrades that won't make use of this env var? E.g. if they don't add a
LOG_MAX_AGE
to their.env
(there is a warning fromabra
buy yanno...) then they might have a broken config? I'm not sure. One way to avoid this is to use the${LOG_MAX_AGE:-1}
bash default value trick in thecompose.yml
inclusion of the env var (see other recipes for examples)? However, then you need to make sure this default is the standard default and doesn't have behaviour changing effects for other operators.Cool, didn't know about the Docker interpolation syntax! Done :)
Great stuff @sixsmith, merge away when you're fine with it. Thanks!