Skip to content
Discussion options

You must be logged in to vote

On current LibreNMS Docker setups, this can be passed as an environment variable to the main librenms container.

For example:

services:
  librenms:
    environment:
      APP_URL: "https://librenms.example.com"
      SESSION_SECURE_COOKIE: "true"

Then recreate the container so it receives the updated environment:

docker compose up -d --force-recreate librenms

and rebuild the LibreNMS config cache:

docker compose exec librenms lnms config:cache

SESSION_SECURE_COOKIE=true should normally be used together with an HTTPS APP_URL; otherwise the browser will not send a cookie marked Secure over plain HTTP.

You can verify the container received it with:

docker compose exec librenms printenv SESSI…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by murrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants