Open
Conversation
schrieveslaach
commented
Feb 10, 2026
792d006 to
29019b7
Compare
schrieveslaach
commented
Feb 20, 2026
api/src/apps/clean_up.rs
Outdated
| apps.into_iter() | ||
| .filter(|(_, app)| { | ||
| app.created_at | ||
| .is_none_or(|created_at| created_at <= time_to_exists_before) |
Contributor
Author
There was a problem hiding this comment.
issue: @aixigo-dvoss reported that just after creation the tile has been immediately backed up. Note to myself: we need some unit testing here.
docs/configuration.md
Outdated
| # UTC based cron expression. When this option is set, PREvant will not perform | ||
| # any automated backups. | ||
| # (optional): not set by default | ||
| busyHours = { start = "0 8 * * * Mon-Fri", end = "0 16 * * * Mon-Fri" } |
Contributor
Author
There was a problem hiding this comment.
todo: Improve the example here because the busy hours would be every hour from 8 minutes after to 18 minutes after. Which is weird.
Suggested change
| busyHours = { start = "0 8 * * * Mon-Fri", end = "0 16 * * * Mon-Fri" } | |
| busyHours = { start = "0 0 8 * * Mon-Fri", end = "0 0 16 * * Mon-Fri" } |
29019b7 to
9acc468
Compare
drik98
reviewed
Feb 20, 2026
api/src/main.rs
Outdated
| let config_json = serde_json::json!({ | ||
| "defaultAppName": config.applications.default_app, | ||
| "isAuthRequired": matches!(config.api_access.mode, ApiAccessMode::RequireAuth { .. }), | ||
| "isAuthRequired": config.database.is_some() && matches!(config.runtime, Runtime::Kubernetes(..)), |
Contributor
There was a problem hiding this comment.
issue: Pretty sure this change was not intended.
Contributor
Author
There was a problem hiding this comment.
no, not intended. Thanks for letting me know.
This change bring automated backups for PREvant. When configured in Traefik and in PREvant, PREvant will use router based access metrics (collected from Traefik via Prometheus) to determine if an application is not accessed within the `time_to_use` duration. If not accessed anymore, PREvant will move unused applications into the backup (see docs/configuration.md for more information).
9acc468 to
e67da15
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #149