jasonish / evebox

Web Based Event Viewer (GUI) for Suricata EVE Events in Elastic Search
https://evebox.org/
MIT License
414 stars 67 forks source link

login: don't use absolute path, instead use relative #268

Closed fcorneli closed 1 year ago

fcorneli commented 1 year ago

I'm trying to run evebox behind a reverse proxy, so I can have an URL towards evebox like: https://something.com/evebox/ See also: https://github.com/jasonish/evebox/wiki/Apache-Reverse-Proxy-Configuration

However, within Login.tsx it seems like /api/1/login is being used instead of api/1/login, which breaks my "context path" thing. Would it be possible to always use "relative" paths, so evebox can properly hosted within its own context path?

jasonish commented 1 year ago

Yes, makes sense. Just an oversight/typo. The reverse proxy I usually test against (SELKS) handles authentication in the proxy, so doesn't use EveBox's login. Should be a simple fix.

fcorneli commented 1 year ago

Thanks.