🪲: Proxy IP blocked even though it is trusted #2163
Replies: 5 comments 7 replies
-
|
I managed to run stalwart-cli from inside the docker container and have it talk to 127.0.0.1 in there. Which made it possible to unban the host. However it is still broken, giving me 502 Bad Gateway. I see: Which is really odd: This used to work before the upgrade, using a normal HTTP proxy for this, rather than a stream proxy... UPDATE: Removing the trusted network for https that I added as a test fixed that. Apparently that is not compatible with plain HTTP proxying. However that doesn't explain how to make sure that the host doesn't get banned when using a non-proxy-protocol proxy (as is needed if you have multiple virtual hosts and use nginx) |
Beta Was this translation helpful? Give feedback.
-
|
"Obtain remote IP from Forwarded header" in the UI had somehow gotten reset. I know for a fact this was set before. A few other settings have gotten lost by themselves before (e.g. |
Beta Was this translation helpful? Give feedback.
-
|
From which version have you upgraded from? Have you checked the CHANGELOG and UPGRADING notes to see if any relevant settings changed? |
Beta Was this translation helpful? Give feedback.
-
|
I've stumbled into the same problem and found that the docs and the source refer to |
Beta Was this translation helpful? Give feedback.
-
|
I've exactly the same issue with traefik, cannot access the web UI, I see the The |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
Apparently stalwart i blocking the nginx reverse proxy on https even though:
Apparently https isn't there, adding it makes no difference. And I seem to remember I had configured that in the UI, so it is presumably in the db.
Yet in my logs I see:
And in my nginx log I then see:
I run with the following docker compose:
And for nginx I do stream proxying for all protocols except https as I need to do virtual host handling on nginx. For that I instead do:
Since stalwart now blocks my host I have no idea how to get in and fix the situation... Since everything is stored in a DB there isn't much I can do without getting into it. This only broke after the 0.13.x upgrade. This same config worked just fine on 0.12.x
How can we reproduce the problem?
I can reproduce the problem by doing the following steps:
Try to use stalwart behind a reverse proxy?
Version
v0.13.x
What database are you using?
RocksDB
What blob storage are you using?
RocksDB
Where is your directory located?
Internal
What operating system are you using?
None
Relevant log output
Yeah I can't get into the UI to change the log level...Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions