mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 02:14:48 +00:00
docs: set additional env configuration
This commit is contained in:
parent
846881f816
commit
7578d97c64
1 changed files with 28 additions and 0 deletions
28
README.md
28
README.md
|
|
@ -47,6 +47,7 @@ ___
|
|||
* [Live Config](#live-config)
|
||||
* [Notes](#notes)
|
||||
* [LNMS command](#lnms-command)
|
||||
* [Additional env configuration](#additional-env-configuration)
|
||||
* [Validate](#validate)
|
||||
* [Dispatcher service container](#dispatcher-service-container)
|
||||
* [Syslog-ng container](#syslog-ng-container)
|
||||
|
|
@ -319,6 +320,33 @@ manage users, database migration, and more, type:
|
|||
$ docker compose exec librenms lnms
|
||||
```
|
||||
|
||||
### Additional env configuration
|
||||
|
||||
After the first launch, `/data/.env` file is created and contains the following
|
||||
environment variables:
|
||||
|
||||
```
|
||||
APP_KEY=base64:...
|
||||
NODE_ID=...
|
||||
```
|
||||
|
||||
You can add additional environment variables in this file. For example, if you
|
||||
want to set VAPID keys for Web push notifications (required for browser
|
||||
authentication), you can do:
|
||||
|
||||
```console
|
||||
$ docker compose exec librenms sh -c "lnms webpush:vapid --show >> /data/.env"
|
||||
```
|
||||
|
||||
Content of `/data/.env` file will look like this:
|
||||
|
||||
```
|
||||
APP_KEY=base64:...
|
||||
NODE_ID=...
|
||||
VAPID_PUBLIC_KEY=...
|
||||
VAPID_PRIVATE_KEY=...
|
||||
```
|
||||
|
||||
### Validate
|
||||
|
||||
If you want to validate your installation from the CLI, type the following
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue