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

reverse-proxy #163

Closed
fcorneli opened this issue Mar 31, 2021 · 5 comments
Closed

reverse-proxy #163

fcorneli opened this issue Mar 31, 2021 · 5 comments
Milestone

Comments

@fcorneli
Copy link

The evebox.yaml.example example configuration file contains reverse-proxy as configuration option.
But checking out the source code, I could not find that it is actually being used/implemented somewhere.

Could someone provide an example configuration on how to run Evebox behind and Apache reverse proxy?

@jasonish
Copy link
Owner

Looks like I missed this during a rewrite. EveBox should still work properly, this is purely to fixup the addresses when logging. But I'll address this soon.

@jasonish jasonish added this to the 0.13.1 milestone Mar 31, 2021
@jasonish
Copy link
Owner

I've fixed up the reverse proxy handling. It still might not be perfect yet, like a configurable header name for the real client ip.

@fcorneli
Copy link
Author

fcorneli commented Apr 1, 2021

Thanks. FYI... an Apache configuration that seems to work for me is:

<Location "/evebox">
	ProxyPass http://localhost:5636
</Location>

ProxyPassReverse /(.*) http://localhost:5636/(.*)

Maybe this could be added to the documentation.

@jasonish
Copy link
Owner

jasonish commented Apr 1, 2021

I added this to the Wiki as I'd rather keep the EveBox documentation just about EveBox. I already cover other tools in the Wiki so I just created this:
https://github.com/jasonish/evebox/wiki/Apache-Reverse-Proxy-Configuration

Do you happen to know what headers, if any this will send in the request? X-Forwarded-For? X-Real-IP? Been a while since I used Apache.

@fcorneli
Copy link
Author

fcorneli commented Apr 2, 2021

X-Forwarded-For is indeed available when serving behind an Apache reverse proxy.
See also:
https://httpd.apache.org/docs/current/mod/mod_proxy.html#x-headers

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