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

add TRUSTED_PROXIES env var and sets them when user login/logout #670

Open
wants to merge 3 commits into
base: 5.0.x
Choose a base branch
from

Conversation

goemktg
Copy link

@goemktg goemktg commented Feb 19, 2024

This PR sets up a trusted proxy to prevent the ip of the LB or proxy (Cloudflare) from being recorded in the security log instead of the user's real IP.

Anyone who wants to can set the TRUSTED_PROXIES value in the .env file to make it work. Example) TRUSTED_PROXIES=103.21.244.0/22,103.22.200.0/22

solves : eveseat/seat#709

This is my first open source contribution, if there's a better way to do it or something to fix, I'll fix it.

@Crypta-Eve
Copy link
Member

Hey, thanks for the PR :) I want you to know that I am not ignoring it and instead I am trying to ensure that this works as I expected.

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

Successfully merging this pull request may close these issues.

3 participants