Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hosting librenms at a url path not working e.g. /librenms/ #40

Open
diepes opened this issue Feb 4, 2025 · 0 comments
Open

hosting librenms at a url path not working e.g. /librenms/ #40

diepes opened this issue Feb 4, 2025 · 0 comments

Comments

@diepes
Copy link

diepes commented Feb 4, 2025

I am trying to deploy the helm chart to sit at a path under a base url.

e.g. https://myserver/librenms/

I deployed traefik ingressroute and middleware to stirp the /librenms

Currently when i connect to the url i get a 302 redirect to https://myserver/login

I tried removing the ingress middleware that strips /librenms, still getting the invalid redirectes to https://myserver/login

What is the correct settins to use a subpath ?

  1. Should i have the ingress middle ware strip the path /librenms ?

In my values.yaml i have tried

librenms:
  extraEnvs:
    # https://docs.librenms.org/Support/Environment-Variables/#baseurl
    - name: APP_URL
      value: "https://myserver/librenms/"
    - name: LIBRENMS_BASE
      value: "/librenms"
    - name: TRUSTED_PROXIES
      value: "*"

I have also found examples such as

librenms:
  configuration: |
    $config['base_url']                 = 'https://myserver/librenms/';

Any suggestion on how to adjust the values.yaml ?

@diepes diepes changed the title hosting librenms at a path not working hosting librenms at a url path not working e.g. /librenms/ Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant