Update docs around APP_URL (#14282)

* Update docs around APP_URL
it is required in more cases than implied such as signed graphs

* Some require public urls

* Update Templates.md
This commit is contained in:
Tony Murray
2022-09-03 23:46:16 -05:00
committed by GitHub
parent 2e42326e34
commit 9f39acd615
2 changed files with 9 additions and 4 deletions

View File

@@ -287,8 +287,12 @@ emails
## Graphs
There are two helpers for graphs that will use a signed url to allow secure external
access. Anyone using the signed url will be able to view the graph. Your LibreNMS web
must be accessible from the location where the graph is viewed.
access. Anyone using the signed url will be able to view the graph.
- Your LibreNMS web must be accessible from the location where the graph is viewed.
Some alert transports require publicly accessible urls.
- APP_URL must be set in .env to use signed graphs.
- Changing APP_KEY will invalidate all previously issued singed urls.
You may specify the graph one of two ways, a php array of parameters, or
a direct url to a graph.

View File

@@ -30,9 +30,10 @@ APP_TRUSTED_PROXIES=192.168.1.0/24,192.167.8.20
## Base url
Set the base url for generated urls. Do not set this if it is not needed.
Set the base url for generated urls.
You may need to set this when using reverse proxies combined with a subdirectory.
This will be needed when using signed graph urls for alerting. It may
be needed when using reverse proxies combined with a subdirectory.
Generally, LibreNMS will make correct URLs (especially if you have set
up your proxy variables correctly)