mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-10 11:23:58 +02:00
Closes #21865: Display debug toolbar if INTERNAL_IPS is empty
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
|
||||
Default: `False`
|
||||
|
||||
This setting enables debugging. Debugging should be enabled only during development or troubleshooting. Note that only
|
||||
clients which access NetBox from a recognized [internal IP address](./system.md#internal_ips) will see debugging tools in the user
|
||||
interface.
|
||||
This setting enables debugging and displays a debugging toolbar in the user interface. Debugging should be enabled only during development or troubleshooting.
|
||||
|
||||
Note that the debugging toolbar will be displayed only for requests originating from an [internal IP address](./system.md#internal_ips), if defined. If no internal IPs are defined, the toolbar will be displayed for all requests.
|
||||
|
||||
!!! warning
|
||||
Never enable debugging on a production system, as it can expose sensitive data to unauthenticated users and impose a
|
||||
|
||||
@@ -105,6 +105,13 @@ A list of IP addresses recognized as internal to the system, used to control the
|
||||
example, the debugging toolbar will be viewable only when a client is accessing NetBox from one of the listed IP
|
||||
addresses (and [`DEBUG`](./development.md#debug) is `True`).
|
||||
|
||||
!!! info "New in NetBox v4.6"
|
||||
Setting this parameter to an empty list will enable the toolbar for all requests provided debugging is enabled:
|
||||
|
||||
```python
|
||||
INTERNAL_IPS = []
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## ISOLATED_DEPLOYMENT
|
||||
|
||||
Reference in New Issue
Block a user