Skip to content

DejaVu container not working behind reverse proxy #474

Description

@wledder

Describe the bug
I'm trying to get the DejaVu docker container to run behind a reverse proxy (nginx). I configured nginx to route requests beginning with the root context '/dejavu/' to the dejavu container.

Enter "/dejavu" into a web browser and the dejavu main page tries to load, but I get a blank page. Digging into logs and debug, the issue appears to be that the pages DejaVu generates assume that all accesses are at the root "/" context and so all includes / hrefs / etc, links in the generated pages are relative to "/" rather than under "/dejavu/". Evidence provided in a screen shot.

I can't figure out how to pass in a context other "/" so that the accesses are at the "/dejavu/" context

Dejavu Version
3.6.0 running as a Docker Image

To Reproduce
Not really applicable here

Expected behavior
Expect to see, instead of what's in the snapshot, "https:///dejavu/common.94c38b44.css" for instance; and for the main DejuaVu web page to render correctly

Screenshots
image

Desktop (please complete the following information):

  • OS: Browser on Windows, docker network running on linux RHEL7 VM
  • Chrome
  • Version 117.0.5938.63

Additional context
N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions