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

URL resolve problems when running behind reverse proxy #2

Open
justb4 opened this issue Jan 2, 2018 · 1 comment
Open

URL resolve problems when running behind reverse proxy #2

justb4 opened this issue Jan 2, 2018 · 1 comment

Comments

@justb4
Copy link

justb4 commented Jan 2, 2018

Running Dashboard using Docker Image latest (on 2.jan.2017), behind an Apache2 reverse proxy. With some local adaptations was able to run and browse Entities:

  • client_config.json: set "endpoint": "/gost/v1.0" to map to local gost on current domain (e.g. test or production server), via Docker Volume mapping.

Problems emerged when loading the Dashboard in the browser: URL load errors. This was locally resolved as follows:

  • index.html L5 : changed <base href="/"> to <base href="/adm/gostdashboard/"> (removing <base href="/"> entirely gave other loading errors from seed-app)
  • seed-app.html L127: removed / to make ref to widget-view.html relative to base.

Ideally we would not need <base href="/"> and load all relative to the main Dashboard URL or at least as a config option in client_config.json.
I made the changes on the generated files within the running container with vi. Not yet familiar with Web Components/Polymer but can try to setup a devenv...

@bertt
Copy link
Contributor

bertt commented Jan 8, 2018

ok thanks, dashboard-v2 is in development, we hope to have a beta version soon.

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

2 participants