|
33 | 33 | # 'SENTINEL_SERVICE': 'netbox',
|
34 | 34 | 'PASSWORD': '{{REDIS_PASSWORD}}',
|
35 | 35 | 'DATABASE': {{REDIS_DB_TASK}},
|
36 |
| - 'DEFAULT_TIMEOUT': 300, |
37 | 36 | 'SSL': False,
|
| 37 | + # Set this to True to skip TLS certificate verification |
| 38 | + # This can expose the connection to attacks, be careful |
| 39 | + # 'INSECURE_SKIP_TLS_VERIFY': False, |
38 | 40 | },
|
39 | 41 | 'caching': {
|
40 | 42 | 'HOST': '{{REDIS_HOST}}',
|
|
44 | 46 | # 'SENTINEL_SERVICE': 'netbox',
|
45 | 47 | 'PASSWORD': '{{REDIS_PASSWORD}}',
|
46 | 48 | 'DATABASE': {{REDIS_DB_CACHE}},
|
47 |
| - 'DEFAULT_TIMEOUT': 300, |
48 | 49 | 'SSL': False,
|
| 50 | + # Set this to True to skip TLS certificate verification |
| 51 | + # This can expose the connection to attacks, be careful |
| 52 | + # 'INSECURE_SKIP_TLS_VERIFY': False, |
49 | 53 | }
|
50 | 54 | }
|
51 | 55 |
|
|
65 | 69 | # Specify one or more name and email address tuples representing NetBox administrators. These people will be notified of
|
66 | 70 | # application errors (assuming correct email settings are provided).
|
67 | 71 | ADMINS = [
|
68 |
| - # ['John Doe', '[email protected]'], |
| 72 | + # ('John Doe', '[email protected]'), |
69 | 73 | ]
|
70 | 74 |
|
71 | 75 | # URL schemes that are allowed within links in NetBox
|
|
81 | 85 | # Text to include on the login page above the login form. HTML is allowed.
|
82 | 86 | BANNER_LOGIN = ''
|
83 | 87 |
|
84 |
| -# Base URL path if accessing NetBox within a directory. For example, if installed at http://example.com/netbox/, set: |
| 88 | +# Base URL path if accessing NetBox within a directory. For example, if installed at https://example.com/netbox/, set: |
85 | 89 | # BASE_PATH = 'netbox/'
|
86 | 90 | BASE_PATH = '{{BASE_PATH}}'
|
87 | 91 |
|
88 |
| -# Cache timeout in seconds. Set to 0 to dissable caching. Defaults to 900 (15 minutes) |
89 |
| -CACHE_TIMEOUT = 900 |
90 |
| - |
91 | 92 | # Maximum number of days to retain logged changes. Set to 0 to retain changes indefinitely. (Default: 90)
|
92 | 93 | CHANGELOG_RETENTION = 90
|
93 | 94 |
|
|
102 | 103 | # r'^(https?://)?(\w+\.)?example\.com$',
|
103 | 104 | ]
|
104 | 105 |
|
| 106 | +# Specify any custom validators here, as a mapping of model to a list of validators classes. Validators should be |
| 107 | +# instances of or inherit from CustomValidator. |
| 108 | +# from extras.validators import CustomValidator |
| 109 | +CUSTOM_VALIDATORS = { |
| 110 | + # 'dcim.site': [ |
| 111 | + # CustomValidator({ |
| 112 | + # 'name': { |
| 113 | + # 'min_length': 10, |
| 114 | + # 'regex': r'\d{3}$', |
| 115 | + # } |
| 116 | + # }) |
| 117 | + # ], |
| 118 | +} |
| 119 | + |
105 | 120 | # Set to True to enable server debugging. WARNING: Debugging introduces a substantial performance penalty and may reveal
|
106 | 121 | # sensitive information about your installation. Only enable debugging while performing testing. Never enable debugging
|
107 | 122 | # on a production system.
|
|
131 | 146 | # 'ipam.prefix',
|
132 | 147 | ]
|
133 | 148 |
|
| 149 | +# Enable the GraphQL API |
| 150 | +GRAPHQL_ENABLED = True |
| 151 | + |
134 | 152 | # HTTP proxies NetBox should use when sending outbound HTTP requests (e.g. for webhooks).
|
135 | 153 | # HTTP_PROXIES = {
|
136 | 154 | # 'http': 'http://10.10.1.10:3128',
|
|
145 | 163 | # https://docs.djangoproject.com/en/stable/topics/logging/
|
146 | 164 | LOGGING = {}
|
147 | 165 |
|
| 166 | +# Automatically reset the lifetime of a valid session upon each authenticated request. Enables users to remain |
| 167 | +# authenticated to NetBox indefinitely. |
| 168 | +LOGIN_PERSISTENCE = False |
| 169 | + |
148 | 170 | # Setting this to True will permit only authenticated users to access any part of NetBox. By default, anonymous users
|
149 |
| -# are permitted to access most data in NetBox (excluding secrets) but not make any changes. |
| 171 | +# are permitted to access most data in NetBox but not make any changes. |
150 | 172 | LOGIN_REQUIRED = False
|
151 | 173 |
|
152 | 174 | # The length of time (in seconds) for which a user will remain logged into the web UI before being prompted to
|
|
156 | 178 | # Setting this to True will display a "maintenance mode" banner at the top of every page.
|
157 | 179 | MAINTENANCE_MODE = False
|
158 | 180 |
|
| 181 | +# The URL to use when mapping physical addresses or GPS coordinates |
| 182 | +MAPS_URL = 'https://maps.google.com/?q=' |
| 183 | + |
159 | 184 | # An API consumer can request an arbitrary number of objects =by appending the "limit" parameter to the URL (e.g.
|
160 | 185 | # "?limit=1000"). This setting defines the maximum limit. Setting it to 0 or None will allow an API consumer to request
|
161 | 186 | # all objects by specifying "?limit=0".
|
|
185 | 210 | # NAPALM timeout (in seconds). (Default: 30)
|
186 | 211 | NAPALM_TIMEOUT = 30
|
187 | 212 |
|
188 |
| -# NAPALM optional arguments (see http://napalm.readthedocs.io/en/latest/support/#optional-arguments). Arguments must |
| 213 | +# NAPALM optional arguments (see https://napalm.readthedocs.io/en/latest/support/#optional-arguments). Arguments must |
189 | 214 | # be provided as a dictionary.
|
190 | 215 | NAPALM_ARGS = {}
|
191 | 216 |
|
|
220 | 245 | REMOTE_AUTH_DEFAULT_GROUPS = {{REMOTE_AUTH_DEFAULT_GROUPS}}
|
221 | 246 | REMOTE_AUTH_DEFAULT_PERMISSIONS = {{REMOTE_AUTH_DEFAULT_PERMISSIONS}}
|
222 | 247 |
|
223 |
| -# This determines how often the GitHub API is called to check the latest release of NetBox. Must be at least 1 hour. |
224 |
| -RELEASE_CHECK_TIMEOUT = 24 * 3600 |
225 |
| - |
226 | 248 | # This repository is used to check whether there is a new release of NetBox available. Set to None to disable the
|
227 | 249 | # version check or use the URL below to check for release in the official NetBox repository.
|
228 | 250 | RELEASE_CHECK_URL = None
|
|
232 | 254 | # this setting is derived from the installed location.
|
233 | 255 | # REPORTS_ROOT = '/opt/netbox/netbox/reports'
|
234 | 256 |
|
| 257 | +# Maximum execution time for background tasks, in seconds. |
| 258 | +RQ_DEFAULT_TIMEOUT = 300 |
| 259 | + |
235 | 260 | # The file path where custom scripts will be stored. A trailing slash is not needed. Note that the default value of
|
236 | 261 | # this setting is derived from the installed location.
|
237 | 262 | SCRIPTS_ROOT = '/config/scripts'
|
238 | 263 |
|
| 264 | +# The name to use for the session cookie. |
| 265 | +SESSION_COOKIE_NAME = 'sessionid' |
| 266 | + |
239 | 267 | # By default, NetBox will store session data in the database. Alternatively, a file path can be specified here to use
|
240 | 268 | # local file storage instead. (This can be useful for enabling authentication on a standby instance with read-only
|
241 | 269 | # database access.) Note that the user as which NetBox runs must have read and write permissions to this path.
|
|
0 commit comments