Skip to content

Commit 02f51bc

Browse files
authored
Fixes #19255: Improved documentation consistency for configuration default values (#19258)
1 parent 88dd7a1 commit 02f51bc

File tree

8 files changed

+44
-44
lines changed

8 files changed

+44
-44
lines changed

docs/configuration/default-values.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ For a complete list of available preferences, log into NetBox and navigate to `/
6969

7070
!!! tip "Dynamic Configuration Parameter"
7171

72-
Default: 50
72+
Default: `50`
7373

7474
The default maximum number of objects to display per page within each list of objects.
7575

@@ -79,7 +79,7 @@ The default maximum number of objects to display per page within each list of ob
7979

8080
!!! tip "Dynamic Configuration Parameter"
8181

82-
Default: 15
82+
Default: `15`
8383

8484
The default value for the `amperage` field when creating new power feeds.
8585

@@ -89,7 +89,7 @@ The default value for the `amperage` field when creating new power feeds.
8989

9090
!!! tip "Dynamic Configuration Parameter"
9191

92-
Default: 80
92+
Default: `80`
9393

9494
The default value (percentage) for the `max_utilization` field when creating new power feeds.
9595

@@ -99,7 +99,7 @@ The default value (percentage) for the `max_utilization` field when creating new
9999

100100
!!! tip "Dynamic Configuration Parameter"
101101

102-
Default: 120
102+
Default: `120`
103103

104104
The default value for the `voltage` field when creating new power feeds.
105105

@@ -109,7 +109,7 @@ The default value for the `voltage` field when creating new power feeds.
109109

110110
!!! tip "Dynamic Configuration Parameter"
111111

112-
Default: 22
112+
Default: `22`
113113

114114
Default height (in pixels) of a unit within a rack elevation. For best results, this should be approximately one tenth of `RACK_ELEVATION_DEFAULT_UNIT_WIDTH`.
115115

@@ -119,6 +119,6 @@ Default height (in pixels) of a unit within a rack elevation. For best results,
119119

120120
!!! tip "Dynamic Configuration Parameter"
121121

122-
Default: 220
122+
Default: `220`
123123

124124
Default width (in pixels) of a unit within a rack elevation.

docs/configuration/development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## DEBUG
44

5-
Default: False
5+
Default: `False`
66

77
This setting enables debugging. Debugging should be enabled only during development or troubleshooting. Note that only
88
clients which access NetBox from a recognized [internal IP address](./system.md#internal_ips) will see debugging tools in the user
@@ -16,6 +16,6 @@ interface.
1616

1717
## DEVELOPER
1818

19-
Default: False
19+
Default: `False`
2020

2121
This parameter serves as a safeguard to prevent some potentially dangerous behavior, such as generating new database schema migrations. Additionally, enabling this setting disables the debug warning banner in the UI. Set this to `True` **only** if you are actively developing the NetBox code base.

docs/configuration/error-reporting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## SENTRY_DSN
44

5-
Default: None
5+
Default: `None`
66

77
Defines a Sentry data source name (DSN) for automated error reporting. `SENTRY_ENABLED` must be True for this parameter to take effect. For example:
88

@@ -14,7 +14,7 @@ SENTRY_DSN = "https://[email protected]/0"
1414

1515
## SENTRY_ENABLED
1616

17-
Default: False
17+
Default: `False`
1818

1919
Set to True to enable automatic error reporting via [Sentry](https://sentry.io/).
2020

@@ -25,15 +25,15 @@ Set to True to enable automatic error reporting via [Sentry](https://sentry.io/)
2525

2626
## SENTRY_SAMPLE_RATE
2727

28-
Default: 1.0 (all)
28+
Default: `1.0` (all)
2929

3030
The sampling rate for errors. Must be a value between 0 (disabled) and 1.0 (report on all errors).
3131

3232
---
3333

3434
## SENTRY_SEND_DEFAULT_PII
3535

36-
Default: False
36+
Default: `False`
3737

3838
Maps to the Sentry SDK's [`send_default_pii`](https://docs.sentry.io/platforms/python/configuration/options/#send-default-pii) parameter. If enabled, certain personally identifiable information (PII) is added.
3939

@@ -60,7 +60,7 @@ SENTRY_TAGS = {
6060

6161
## SENTRY_TRACES_SAMPLE_RATE
6262

63-
Default: 0 (disabled)
63+
Default: `0` (disabled)
6464

6565
The sampling rate for transactions. Must be a value between 0 (disabled) and 1.0 (report on all transactions).
6666

docs/configuration/graphql-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
!!! tip "Dynamic Configuration Parameter"
66

7-
Default: True
7+
Default: `True`
88

99
Setting this to False will disable the GraphQL API.
1010

1111
---
1212

1313
## GRAPHQL_MAX_ALIASES
1414

15-
Default: 10
15+
Default: `10`
1616

1717
The maximum number of queries that a GraphQL API request may contain.

docs/configuration/miscellaneous.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Sets content for the top banner in the user interface.
5555

5656
## CENSUS_REPORTING_ENABLED
5757

58-
Default: True
58+
Default: `True`
5959

6060
Enables anonymous census reporting. To opt out of census reporting, set this to False.
6161

@@ -67,7 +67,7 @@ This data enables the project maintainers to estimate how many NetBox deployment
6767

6868
!!! tip "Dynamic Configuration Parameter"
6969

70-
Default: 90
70+
Default: `90`
7171

7272
The number of days to retain logged changes (object creations, updates, and deletions). Set this to `0` to retain
7373
changes in the database indefinitely.
@@ -79,7 +79,7 @@ changes in the database indefinitely.
7979

8080
## CHANGELOG_SKIP_EMPTY_CHANGES
8181

82-
Default: True
82+
Default: `True`
8383

8484
If enabled, a change log record will not be created when an object is updated without any changes to its existing field values.
8585

@@ -100,7 +100,7 @@ The maximum size (in bytes) of an incoming HTTP request (i.e. `GET` or `POST` da
100100

101101
!!! tip "Dynamic Configuration Parameter"
102102

103-
Default: True
103+
Default: `True`
104104

105105
By default, NetBox will prevent the creation of duplicate prefixes and IP addresses in the global table (that is, those which are not assigned to any VRF). This validation can be disabled by setting `ENFORCE_GLOBAL_UNIQUE` to False.
106106

@@ -128,7 +128,7 @@ The maximum amount (in bytes) of uploaded data that will be held in memory befor
128128

129129
!!! tip "Dynamic Configuration Parameter"
130130

131-
Default: 90
131+
Default: `90`
132132

133133
The number of days to retain job results (scripts and reports). Set this to `0` to retain job results in the database indefinitely.
134134

@@ -141,7 +141,7 @@ The number of days to retain job results (scripts and reports). Set this to `0`
141141

142142
!!! tip "Dynamic Configuration Parameter"
143143

144-
Default: False
144+
Default: `False`
145145

146146
Setting this to True will display a "maintenance mode" banner at the top of every page. Additionally, NetBox will no longer update a user's "last active" time upon login. This is to allow new logins when the database is in a read-only state. Recording of login times will resume when maintenance mode is disabled.
147147

@@ -161,15 +161,15 @@ This specifies the URL to use when presenting a map of a physical location by st
161161

162162
!!! tip "Dynamic Configuration Parameter"
163163

164-
Default: 1000
164+
Default: `1000`
165165

166166
A web user or API consumer can request an arbitrary number of objects by appending the "limit" parameter to the URL (e.g. `?limit=1000`). This parameter defines the maximum acceptable limit. Setting this to `0` or `None` will allow a client to retrieve _all_ matching objects at once with no limit by specifying `?limit=0`.
167167

168168
---
169169

170170
## METRICS_ENABLED
171171

172-
Default: False
172+
Default: `False`
173173

174174
Toggle the availability Prometheus-compatible metrics at `/metrics`. See the [Prometheus Metrics](../integrations/prometheus-metrics.md) documentation for more details.
175175

@@ -179,7 +179,7 @@ Toggle the availability Prometheus-compatible metrics at `/metrics`. See the [Pr
179179

180180
!!! tip "Dynamic Configuration Parameter"
181181

182-
Default: False
182+
Default: `False`
183183

184184
When determining the primary IP address for a device, IPv6 is preferred over IPv4 by default. Set this to True to prefer IPv4 instead.
185185

@@ -203,7 +203,7 @@ If no queue is defined the queue named `default` will be used.
203203

204204
## RELEASE_CHECK_URL
205205

206-
Default: None (disabled)
206+
Default: `None` (disabled)
207207

208208
This parameter defines the URL of the repository that will be checked for new NetBox releases. When a new release is detected, a message will be displayed to administrative users on the home page. This can be set to the official repository (`'https://api.github.com/repos/netbox-community/netbox/releases'`) or a custom fork. Set this to `None` to disable automatic update checks.
209209

docs/configuration/plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## PLUGINS
44

5-
Default: Empty
5+
Default: `[]`
66

77
A list of installed [NetBox plugins](../plugins/index.md) to enable. Plugins will not take effect unless they are listed here.
88

@@ -13,7 +13,7 @@ A list of installed [NetBox plugins](../plugins/index.md) to enable. Plugins wil
1313

1414
## PLUGINS_CONFIG
1515

16-
Default: Empty
16+
Default: `[]`
1717

1818
This parameter holds configuration settings for individual NetBox plugins. It is defined as a dictionary, with each key using the name of an installed plugin. The specific parameters supported are unique to each plugin: Reference the plugin's documentation to determine the supported parameters. An example configuration is shown below:
1919

docs/configuration/security.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## ALLOW_TOKEN_RETRIEVAL
44

5-
Default: True
5+
Default: `True`
66

77
If disabled, the values of API tokens will not be displayed after each token's initial creation. A user **must** record the value of a token prior to its creation, or it will be lost. Note that this affects _all_ users, regardless of assigned permissions.
88

@@ -47,7 +47,7 @@ Although it is not recommended, the default validation rules can be disabled by
4747

4848
## CORS_ORIGIN_ALLOW_ALL
4949

50-
Default: False
50+
Default: `False`
5151

5252
If True, cross-origin resource sharing (CORS) requests will be accepted from all origins. If False, a whitelist will be used (see below).
5353

@@ -79,7 +79,7 @@ The name of the cookie to use for the cross-site request forgery (CSRF) authenti
7979

8080
## CSRF_COOKIE_SECURE
8181

82-
Default: False
82+
Default: `False`
8383

8484
If true, the cookie employed for cross-site request forgery (CSRF) protection will be marked as secure, meaning that it can only be sent across an HTTPS connection.
8585

@@ -159,7 +159,7 @@ EXEMPT_VIEW_PERMISSIONS = ['*']
159159

160160
## LOGIN_PERSISTENCE
161161

162-
Default: False
162+
Default: `False`
163163

164164
If true, the lifetime of a user's authentication session will be automatically reset upon each valid request. For example, if [`LOGIN_TIMEOUT`](#login_timeout) is configured to 14 days (the default), and a user whose session is due to expire in five days makes a NetBox request (with a valid session cookie), the session's lifetime will be reset to 14 days.
165165

@@ -169,7 +169,7 @@ Note that enabling this setting causes NetBox to update a user's session in the
169169

170170
## LOGIN_REQUIRED
171171

172-
Default: True
172+
Default: `True`
173173

174174
When enabled, only authenticated users are permitted to access any part of NetBox. Disabling this will allow unauthenticated users to access most areas of NetBox (but not make any changes).
175175

@@ -180,7 +180,7 @@ When enabled, only authenticated users are permitted to access any part of NetBo
180180

181181
## LOGIN_TIMEOUT
182182

183-
Default: 1209600 seconds (14 days)
183+
Default: `1209600` seconds (14 days)
184184

185185
The lifetime (in seconds) of the authentication cookie issued to a NetBox user upon login.
186186

@@ -196,31 +196,31 @@ The view name or URL to which a user is redirected after logging out.
196196

197197
## SECURE_HSTS_INCLUDE_SUBDOMAINS
198198

199-
Default: False
199+
Default: `False`
200200

201201
If true, the `includeSubDomains` directive will be included in the HTTP Strict Transport Security (HSTS) header. This directive instructs the browser to apply the HSTS policy to all subdomains of the current domain.
202202

203203
---
204204

205205
## SECURE_HSTS_PRELOAD
206206

207-
Default: False
207+
Default: `False`
208208

209209
If true, the `preload` directive will be included in the HTTP Strict Transport Security (HSTS) header. This directive instructs the browser to preload the site in HTTPS. Browsers that use the HSTS preload list will force the site to be accessed via HTTPS even if the user types HTTP in the address bar.
210210

211211
---
212212

213213
## SECURE_HSTS_SECONDS
214214

215-
Default: 0
215+
Default: `0`
216216

217217
If set to a non-zero integer value, the SecurityMiddleware sets the HTTP Strict Transport Security (HSTS) header on all responses that do not already have it. This will instruct the browser that the website must be accessed via HTTPS, blocking any HTTP request.
218218

219219
---
220220

221221
## SECURE_SSL_REDIRECT
222222

223-
Default: False
223+
Default: `False`
224224

225225
If true, all non-HTTPS requests will be automatically redirected to use HTTPS.
226226

@@ -239,14 +239,14 @@ The name used for the session cookie. See the [Django documentation](https://doc
239239

240240
## SESSION_COOKIE_SECURE
241241

242-
Default: False
242+
Default: `False`
243243

244244
If true, the cookie employed for session authentication will be marked as secure, meaning that it can only be sent across an HTTPS connection.
245245

246246
---
247247

248248
## SESSION_FILE_PATH
249249

250-
Default: None
250+
Default: `None`
251251

252252
HTTP session data is used to track authenticated users when they access NetBox. By default, NetBox stores session data in its PostgreSQL database. However, this inhibits authentication to a standby instance of NetBox without write access to the database. Alternatively, a local file path may be specified here and NetBox will store session data as files instead of using the database. Note that the NetBox system user must have read and write permissions to this path.

docs/configuration/system.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## BASE_PATH
44

5-
Default: None
5+
Default: `None`
66

77
The base URL path to use when accessing NetBox. Do not include the scheme or domain name. For example, if installed at https://example.com/netbox/, set:
88

@@ -64,7 +64,7 @@ Email is sent from NetBox only for critical events or if configured for [logging
6464

6565
## HTTP_PROXIES
6666

67-
Default: None
67+
Default: `None`
6868

6969
A dictionary of HTTP proxies to use for outbound requests originating from NetBox (e.g. when sending webhook requests). Proxies should be specified by schema (HTTP and HTTPS) as per the [Python requests library documentation](https://requests.readthedocs.io/en/latest/user/advanced/#proxies). For example:
7070

@@ -89,7 +89,7 @@ addresses (and [`DEBUG`](./development.md#debug) is true).
8989

9090
## ISOLATED_DEPLOYMENT
9191

92-
Default: False
92+
Default: `False`
9393

9494
Set this configuration parameter to True for NetBox deployments which do not have Internet access. This will disable miscellaneous functionality which depends on access to the Internet.
9595

@@ -206,14 +206,14 @@ If `STORAGE_BACKEND` is not defined, this setting will be ignored.
206206

207207
## TIME_ZONE
208208

209-
Default: UTC
209+
Default: `"UTC"`
210210

211211
The time zone NetBox will use when dealing with dates and times. It is recommended to use UTC time unless you have a specific need to use a local time zone. Please see the [list of available time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
212212

213213
---
214214

215215
## TRANSLATION_ENABLED
216216

217-
Default: True
217+
Default: `True`
218218

219219
Enables language translation for the user interface. (This parameter maps to Django's [USE_I18N](https://docs.djangoproject.com/en/stable/ref/settings/#std-setting-USE_I18N) setting.)

0 commit comments

Comments
 (0)