diff --git a/changedetectionio/flask_app.py b/changedetectionio/flask_app.py index 0722688b..945f268e 100644 --- a/changedetectionio/flask_app.py +++ b/changedetectionio/flask_app.py @@ -851,11 +851,13 @@ def changedetection_app(config=None, datastore_o=None): flash("An error occurred, please see below.", "error") output = render_template("settings.html", - form=form, - hide_remove_pass=os.getenv("SALTED_PASS", False), api_key=datastore.data['settings']['application'].get('api_access_token'), emailprefix=os.getenv('NOTIFICATION_MAIL_BUTTON_PREFIX', False), - settings_application=datastore.data['settings']['application']) + form=form, + hide_remove_pass=os.getenv("SALTED_PASS", False), + min_system_recheck_seconds=int(os.getenv('MINIMUM_SECONDS_RECHECK_TIME', 20)), + settings_application=datastore.data['settings']['application'] + ) return output diff --git a/changedetectionio/templates/settings.html b/changedetectionio/templates/settings.html index 4a1c8f0a..72f1f638 100644 --- a/changedetectionio/templates/settings.html +++ b/changedetectionio/templates/settings.html @@ -31,7 +31,7 @@
{{ render_field(form.requests.form.time_between_check, class="time-check-widget") }} - Default recheck time for all watches + Default recheck time for all watches, system minimum is {{min_system_recheck_seconds}} seconds.
{{ render_field(form.requests.form.jitter_seconds, class="jitter_seconds") }} diff --git a/docker-compose.yml b/docker-compose.yml index 1b5bd9af..a69ab3e9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -54,7 +54,9 @@ services: # # Default number of parallel/concurrent fetchers # - FETCH_WORKERS=10 - + # + # Absolute minimum seconds to recheck, overrides any watch minimum, change to 0 to disable + # - MINIMUM_SECONDS_RECHECK_TIME=20 # Comment out ports: when using behind a reverse proxy , enable networks: etc. ports: - 5000:5000