Expose LOG_MAX_AGE #55

Merged
sixsmith merged 3 commits from sixsmith/traefik:v3-log-max-age into master 2025-08-28 18:05:28 +00:00
Owner

Expose LOG_MAX_AGE, Traefik's log retention setting for log retention (in days).

Expose [LOG_MAX_AGE](https://doc.traefik.io/traefik/observability/logs/#maxage), Traefik's log retention setting for log retention (in days).
sixsmith added 1 commit 2025-08-06 22:23:02 +00:00
Update to Traefik v3
Some checks failed
continuous-integration/drone/pr Build is failing
01c5b2a3a4
Owner

@sixsmith this looks incredible, thank you so much! 🤩

Only note is that TRAEFIK_YML_VERSION in abra.sh needs to be incremented with every change to the file, otherwise upgrades of existing instances will probably fail.

@sixsmith this looks incredible, thank you so much! 🤩 Only note is that [`TRAEFIK_YML_VERSION` in `abra.sh`](https://git.coopcloud.tech/coop-cloud/traefik/src/branch/master/abra.sh#L1) needs to be incremented with every change to the file, otherwise upgrades of existing instances will probably fail.
sixsmith added 1 commit 2025-08-09 02:18:03 +00:00
traefik_yml_version
Some checks failed
continuous-integration/drone/pr Build is failing
8d7f9bd6a2
decentral1se reviewed 2025-08-09 10:45:09 +00:00
@ -4,6 +4,7 @@ core:
log:
level: {{ env "LOG_LEVEL" }}
maxAge: {{ env "LOG_MAX_AGE" }}
Owner

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 from abra 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 the compose.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.

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 from `abra` 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 the `compose.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.
decentral1se marked this conversation as resolved
sixsmith added 1 commit 2025-08-27 16:35:12 +00:00
Set default LOG_MAX_AGE
Some checks failed
continuous-integration/drone/pr Build is failing
304915a396
Author
Owner

Cool, didn't know about the Docker interpolation syntax! Done :)

Cool, didn't know about the Docker interpolation syntax! Done :)
decentral1se approved these changes 2025-08-28 09:16:58 +00:00
Owner

Great stuff @sixsmith, merge away when you're fine with it. Thanks!

Great stuff @sixsmith, merge away when you're fine with it. Thanks!
sixsmith merged commit 7e7422a593 into master 2025-08-28 18:05:27 +00:00
sixsmith referenced this issue from a commit 2025-08-28 18:05:28 +00:00
Sign in to join this conversation.
No description provided.