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

Show Real Visitor IP in Logs #20

Open
Cronus89 opened this issue Jun 24, 2021 · 1 comment
Open

Show Real Visitor IP in Logs #20

Cronus89 opened this issue Jun 24, 2021 · 1 comment

Comments

@Cronus89
Copy link

My logs in osticket are showing the Docker IP ranges. I assume we need to set TRUSTED_PROXIES in the config.

Can you add that as a variable

Also I assume there will need to be an nginx config to use the forward ip?

I believe osticket uses X-Forwarded-For header

@dhm-msd
Copy link

dhm-msd commented Aug 2, 2023

This becomes a real issue when trying to use the REST api of osTicket.

From the docs:
The API key must match the remote IP of the connected HTTP client. The remote IP is checked as usual. If the osTicket server is sitting behind a reverse proxy, the original IP of the client will be retrieved from the X-Forwarded-For header, if provided by your proxy.

The need of setting a TRUSTED_PROXIES env variable is a must if anyone is planning to use this docker image.

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