I am quite new to LibreNMS but I have managed to pull together a dashboard for my company.
I have tried to put a certificate on the website via nginx and applied our company certificate.
Since adding the proxy and certificate, the layout of the web portal has changed and the links do not respond.
The scheme is set to http otherwise the page will shows 502 bad gateway
My php output is:
| Component |
Version |
| LibreNMS |
26.7.0-dev.112+0d9eb5499 (2026-07-08T19:41:51+00:00) |
| DB Schema |
2026_06_17_230632_migrate_status_reason_format_in_rules_and_templates (393) |
| PHP |
8.3.6 |
| Python |
3.12.3 |
| Database |
MariaDB 10.11.14-MariaDB-0ubuntu0.24.04.1 |
| RRDTool |
1.7.2 |
| SNMP |
5.9.4.pre2 |
I have changed the base_url to the new proxy set via nginx.
I have set the /opt/librenms/.env APP_URL to the base_url
Not sure if there are any other settings i need to change?
APP_TRUSTED_PROXIES needs to be set if you use a reverse proxy.
Hi @murrant ,
Thank you for the quick response!
Where can I find this?
The same place as APP_URL (varies depending on your setup)
Hi @murrant ,
That command line wasn’t already in the /opt/librenms/.env so I have added it as such:
APP_TRUSTED_PROXIES=http://redacted.co.uk
#APP_URL=http://redacted.co.uk
APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US
APP_MAINTENANCE_DRIVER=file
APP_MAINTENANCE_STORE=database
PHP_CLI_SERVER_WORKERS=4
Is that correct?
I have changed the APP_TURSTED_PROXIES=http://redacted.co.uk to APP_TRUSTED_PROXIES=* and that has allowed it to use nginx certificate
Just as an FYI * is an inherently insecure setting. It should be set to the IP(s) of your reverse proxy(ies).
system
Closed
8
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.