Explorar o código

Disable update check by default

Sander Steffann %!s(int64=6) %!d(string=hai) anos
pai
achega
28473fa3e0

+ 3 - 1
docs/configuration/optional-settings.md

@@ -159,10 +159,12 @@ Enforcement of unique IP space can be toggled on a per-VRF basis. To enforce uni
 
 ## UPDATE_REPO_URL
 
-Default: 'https://api.github.com/repos/netbox-community/netbox'
+Default: None
 
 The releases of this repository are checked to detect new releases, which are shown on the home page of the web interface. You can change this to your own fork of the NetBox repository, or set it to `None` to disable the check. The URL provided **must** be compatible with the GitHub API.
 
+Use `'https://api.github.com/repos/netbox-community/netbox'` to check for release in the official NetBox repository.
+
 ---
 
 ## UPDATE_CACHE_TIMEOUT

+ 3 - 2
netbox/netbox/configuration.example.py

@@ -125,8 +125,9 @@ EXEMPT_VIEW_PERMISSIONS = [
 ]
 
 # This repository is used to check whether there is a new release of NetBox available. Set to None to disable the
-# version check.
-UPDATE_REPO_URL = 'https://api.github.com/repos/netbox-community/netbox'
+# version check or use the URL below to check for release in the official NetBox repository.
+UPDATE_REPO_URL = None
+# UPDATE_REPO_URL = 'https://api.github.com/repos/netbox-community/netbox'
 
 # This determines how often the GitHub API is called to check the latest release of NetBox. Must be at least 1 hour.
 UPDATE_CACHE_TIMEOUT = 24 * 3600

+ 1 - 2
netbox/netbox/settings.py

@@ -80,8 +80,7 @@ DEVELOPER = getattr(configuration, 'DEVELOPER', False)
 EMAIL = getattr(configuration, 'EMAIL', {})
 ENFORCE_GLOBAL_UNIQUE = getattr(configuration, 'ENFORCE_GLOBAL_UNIQUE', False)
 EXEMPT_VIEW_PERMISSIONS = getattr(configuration, 'EXEMPT_VIEW_PERMISSIONS', [])
-UPDATE_REPO_URL = getattr(configuration, 'UPDATE_REPO_URL',
-                          'https://api.github.com/repos/netbox-community/netbox')
+UPDATE_REPO_URL = getattr(configuration, 'UPDATE_REPO_URL', None)
 UPDATE_CACHE_TIMEOUT = getattr(configuration, 'UPDATE_CACHE_TIMEOUT', 24 * 3600)
 LOGGING = getattr(configuration, 'LOGGING', {})
 LOGIN_REQUIRED = getattr(configuration, 'LOGIN_REQUIRED', False)