2018-10-27 23:04:34 +01:00
|
|
|
path: blob/master/doc/
|
2018-09-13 07:26:42 -05:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
# Environment Variables
|
|
|
|
|
|
|
|
LibreNMS allows certain settings to be set via the environment or
|
|
|
|
through the .env file.
|
2018-09-13 07:26:42 -05:00
|
|
|
|
|
|
|
## Database
|
|
|
|
|
|
|
|
Set the variables to connect to the database. The default values are shown below.
|
|
|
|
|
|
|
|
```dotenv
|
|
|
|
DB_HOST=localhost
|
|
|
|
DB_PORT=3306
|
|
|
|
DB_DATABASE=librenms
|
|
|
|
DB_USERNAME=librenms
|
|
|
|
DB_PASSWORD=
|
|
|
|
DB_SOCKET=
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
## Trusted Reverse Proxies
|
|
|
|
|
|
|
|
A comma separated list of trusted reverse proxy IPs or CIDR.
|
2018-10-02 07:56:13 -05:00
|
|
|
|
2018-09-13 07:26:42 -05:00
|
|
|
For legacy reasons the default is `'*'`, which means any proxy is allowed.
|
|
|
|
`'**'` means trust any proxy up the chain.
|
|
|
|
|
|
|
|
```dotenv
|
|
|
|
APP_TRUSTED_PROXIES=192.168.1.0/24,192.167.8.20
|
|
|
|
```
|
|
|
|
|
2018-10-02 07:56:13 -05:00
|
|
|
## Base url
|
|
|
|
|
|
|
|
Set the base url for generated urls. Do not set this if it is not needed.
|
|
|
|
|
|
|
|
You may need to set this when using reverse proxies combined with a subdirectory.
|
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
Generally, LibreNMS will make correct URLs (especially if you have set
|
|
|
|
up your proxy variables correctly)
|
2018-10-02 07:56:13 -05:00
|
|
|
|
|
|
|
```dotenv
|
|
|
|
APP_URL=http://librenms/
|
|
|
|
```
|
|
|
|
|
2018-09-13 07:26:42 -05:00
|
|
|
## User / Group
|
|
|
|
|
|
|
|
The user and group that LibreNMS should operate as.
|
|
|
|
Group will default to the same as the user if unset.
|
|
|
|
|
|
|
|
```dotenv
|
|
|
|
LIBRENMS_USER=librenms
|
|
|
|
LIBRENMS_GROUP=librenms
|
|
|
|
```
|
|
|
|
|
|
|
|
## Debug
|
|
|
|
|
|
|
|
Increases the amount of information shown when an error occurs.
|
2019-07-18 21:25:53 -05:00
|
|
|
|
2018-09-13 07:26:42 -05:00
|
|
|
> WARNING: This may leak information, do not leave enabled.
|
|
|
|
|
|
|
|
```dotenv
|
|
|
|
APP_DEBUG=true
|
|
|
|
```
|