appbaseio / appbaseio/dejavu

DejaVu container not working behind reverse proxy

Open
#474 0 comments 0 reactions 1 assignee Claimed by @lakhansamani View on GitHub
bug
Dominant language
JavaScript
Stars
8.5k
Forks
512
PR merge metrics
No merged PRs in 30d

Description

**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](https://github.com/appbaseio/dejavu/assets/64568760/664175f9-330d-4a3b-a97f-779a636ebc5e)

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.