@@ -48,6 +48,8 @@ def _read_secret(secret_name, default = None):
48
48
# Database connection SSLMODE
49
49
'CONN_MAX_AGE' : int (environ .get ('DB_CONN_MAX_AGE' , '300' )),
50
50
# Max database connection age
51
+ 'DISABLE_SERVER_SIDE_CURSORS' : environ .get ('DB_DISABLE_SERVER_SIDE_CURSORS' , 'False' ).lower () == 'true' ,
52
+ # Disable the use of server-side cursors transaction pooling
51
53
}
52
54
53
55
# Redis database settings. Redis is used for caching and for queuing background tasks such as webhook events. A separate
@@ -106,9 +108,6 @@ def _read_secret(secret_name, default = None):
106
108
# BASE_PATH = 'netbox/'
107
109
BASE_PATH = environ .get ('BASE_PATH' , '' )
108
110
109
- # Cache timeout in seconds. Set to 0 to dissable caching. Defaults to 900 (15 minutes)
110
- CACHE_TIMEOUT = int (environ .get ('CACHE_TIMEOUT' , 900 ))
111
-
112
111
# Maximum number of days to retain logged changes. Set to 0 to retain changes indefinitely. (Default: 90)
113
112
CHANGELOG_RETENTION = int (environ .get ('CHANGELOG_RETENTION' , 90 ))
114
113
@@ -210,9 +209,6 @@ def _read_secret(secret_name, default = None):
210
209
REMOTE_AUTH_AUTO_CREATE_USER = environ .get ('REMOTE_AUTH_AUTO_CREATE_USER' , 'True' ).lower () == 'true'
211
210
REMOTE_AUTH_DEFAULT_GROUPS = list (filter (None , environ .get ('REMOTE_AUTH_DEFAULT_GROUPS' , '' ).split (' ' )))
212
211
213
- # This determines how often the GitHub API is called to check the latest release of NetBox. Must be at least 1 hour.
214
- RELEASE_CHECK_TIMEOUT = int (environ .get ('RELEASE_CHECK_TIMEOUT' , 24 * 3600 ))
215
-
216
212
# This repository is used to check whether there is a new release of NetBox available. Set to None to disable the
217
213
# version check or use the URL below to check for release in the official NetBox repository.
218
214
# https://api.github.com/repos/netbox-community/netbox/releases
0 commit comments