1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

28 lines
1.7 KiB
Markdown
Raw Normal View History

2018-07-17 17:23:10 -04:00
# NetBox Configuration
NetBox's local configuration is stored in `$INSTALL_ROOT/netbox/netbox/configuration.py` by default. An example configuration is provided as `configuration_example.py`. You may copy or rename the example configuration and make changes as appropriate. NetBox will not run without a configuration file. While NetBox has many configuration settings, only a few of them must be defined at the time of installation: these are defined under "required settings" below.
!!! info "Customizing the Configuration Module"
A custom configuration module may be specified by setting the `NETBOX_CONFIGURATION` environment variable. This must be a dotted path to the desired Python module. For example, a file named `my_config.py` in the same directory as `settings.py` would be referenced as `netbox.my_config`.
For the sake of brevity, the NetBox documentation refers to the configuration file simply as `configuration.py`.
2018-07-17 17:23:10 -04:00
2021-10-26 15:40:34 -04:00
Some configuration parameters may alternatively be defined either in `configuration.py` or within the administrative section of the user interface. Settings which are "hard-coded" in the configuration file take precedence over those defined via the UI.
2018-07-17 17:23:10 -04:00
2020-03-05 17:23:56 -05:00
## Configuration Parameters
2018-07-30 17:19:22 -04:00
* [Required settings](required-settings.md)
* [Optional settings](optional-settings.md)
2021-10-26 15:40:34 -04:00
* [Dynamic settings](dynamic-settings.md)
* [Remote authentication settings](remote-authentication.md)
2018-07-17 17:23:10 -04:00
## Changing the Configuration
2021-10-26 15:40:34 -04:00
The configuration file may be modified at any time. However, the WSGI service (e.g. Gunicorn) must be restarted before the changes will take effect:
2018-07-17 17:23:10 -04:00
```no-highlight
2020-07-27 20:35:00 -04:00
$ sudo systemctl restart netbox
2018-07-17 17:23:10 -04:00
```
2021-10-26 15:40:34 -04:00
Configuration parameters which are set via the admin UI (those listed under "dynamic settings") take effect immediately.