Ability to disable version check (set `DISABLE_VERSION_CHECK=true`) Re #2773 (#2775)

pull/2780/head
dgtlmoon 2 months ago committed by GitHub
parent 7fcba26bea
commit 0f0f5af7b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1625,7 +1625,7 @@ def changedetection_app(config=None, datastore_o=None):
threading.Thread(target=notification_runner).start() threading.Thread(target=notification_runner).start()
# Check for new release version, but not when running in test/build or pytest # Check for new release version, but not when running in test/build or pytest
if not os.getenv("GITHUB_REF", False) and not config.get('disable_checkver') == True: if not os.getenv("GITHUB_REF", False) and not strtobool(os.getenv('DISABLE_VERSION_CHECK', 'no')):
threading.Thread(target=check_for_new_version).start() threading.Thread(target=check_for_new_version).start()
return app return app

@ -61,6 +61,9 @@ services:
# #
# If you want to watch local files file:///path/to/file.txt (careful! security implications!) # If you want to watch local files file:///path/to/file.txt (careful! security implications!)
# - ALLOW_FILE_URI=False # - ALLOW_FILE_URI=False
#
# For complete privacy if you don't want to use the 'check version' / telemetry service
# - DISABLE_VERSION_CHECK=true
# Comment out ports: when using behind a reverse proxy , enable networks: etc. # Comment out ports: when using behind a reverse proxy , enable networks: etc.
ports: ports:

Loading…
Cancel
Save