-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
[bug] Trusted proxies warning is visible even if proxy set in config #3680
Comments
Is Nginx itself running at |
Internet -> Router |
Ahhh interesting.... So I think what's happening is that nginx is seeing the traffic coming from your router and setting x-forwarded-for to 192.168.50.1, and then GoToSocial is trusting nginx to report that IP address correctly. You need to find a way to instruct your router to add the real client IP as an x-forwarded-for header, and then you need to instruct nginx to NOT add any x-forwarded-for headers. |
Tbh, understand nothing 🙇 Only thing is I'm noticed that if I comment line |
Mmm, I think in your case it might just be impossible to get the proper client ip. I'll make a pull request later so that turning off rate limiting disables the warning message :) This will probably be useful for other folks too. |
I haven't any problems with federation and rate-limiting with my instance that works since end of August 2024 even with almost 600 emoji that I've uploaded by hand by all this time. |
I'll close this now as you can suppress the warning message by just turning rate limiting off entirely: #3686 |
@SadmL I think maybe this issue describes the problem you were having, and I just misunderstood: #3690 In that case, I don't think you need to disable rate limiting after all, and you were right that it wasn't actually an issue. My apologies! I'll have a think tomorrow about the best way of handling the case of accessing your GtS instance from inside your own network (should we still show the warning or not, etc). |
Describe the bug with a clear and concise description of what the bug is.
Getting warning banner

even if needed proxy is set in config

What's your GoToSocial Version?
0.17.4-SNAPSHOT+git-4c052c8
GoToSocial Arch
amd64 binary
What happened?
No response
What you expected to happen?
No warning 🤷
How to reproduce it?
Upgrade instance to commit from b42cb7a to latest atm 4c052c8
Anything else we need to know?
Using default Nginx config
includes/errors_pages.conf
includes/error_paths.conf
The text was updated successfully, but these errors were encountered: