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

Log not showing real IP when behind proxy #242

Open
dullage opened this issue Sep 10, 2024 · 1 comment
Open

Log not showing real IP when behind proxy #242

dullage opened this issue Sep 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dullage
Copy link
Owner

dullage commented Sep 10, 2024

Thanks @dullage for Flatnotes. I'm still having this problem: in the logs only the internal docker ips are logged. Using nginx with X-Forward headers and the latest flatnotes version with the commit you mentioned - verified entrypoint.sh does use the uvicorn commands. But it's still reporting the docker IP. Besides x-forward and uvicorn header commands, am I missing something? If it helps, I could try the AGSI middleware approach.
Primarily want to put fail2ban in front.

Originally posted by @holzerseb in #101 (comment)

@dullage dullage added the bug Something isn't working label Sep 10, 2024
@dullage
Copy link
Owner Author

dullage commented Sep 10, 2024

@holzerseb, odd, I have the same behaviour in my setup. This is going to be a bit of a pain to troubleshoot but I'll try and get some time to take a look.

@dullage dullage self-assigned this Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant