Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Reverse proxy routes are a lie #15

Open
martindevans opened this issue Jun 6, 2015 · 0 comments
Open

Reverse proxy routes are a lie #15

martindevans opened this issue Jun 6, 2015 · 0 comments

Comments

@martindevans
Copy link
Member

When Bastet is behind a reverse proxy (e.g. nginx) the routes it returns look like:

{ "Devices": "http://localhost:239432/api/devices" }

This is clearly a lie! We need to either get the route from the reverse proxy (passed in headers) or just make all returned paths relative to the root.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant