dullage / flatnotes

A self-hosted, database-less note taking web app that utilises a flat folder of markdown files for storage.
MIT License
1.26k stars 78 forks source link

Log not showing real IP when behind proxy #242

Open dullage opened 1 week ago

dullage commented 1 week ago

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 https://github.com/dullage/flatnotes/issues/101#issuecomment-2334677619

dullage commented 1 week ago

@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.