-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Running zwavejs behind reverse proxy (traefik) for web UI only generates error. #3506
Comments
I use nginx without any problem, maybe you could remove that header from your proxy? |
This header is important for a reverse proxy to pass to relay the real IP for incoming clients for authentication and rate-limiting. If you do not pass this, all requests look like they are coming solely from the proxy. It seems like there was a previous PR #2963 to add the 'trust proxy' setting but was rescinded. This is usually defined in an environment variable with the IP of your proxy. |
Done, use |
@robertsLando thanks for the quick commit. However, just setting trust proxy to |
OK let me do the fix to allow setting the trust proxy as value, I inspired by the closed PR and added the missing things |
@derekolson Done |
Thank-you - this is perfect. |
Thank you for this. I was meaning to open an issue, and then I saw the changelog when I updated. This is great. |
express-rate-limit throws an error when accessing the web ui behind a reverse proxy. It works, but the error is there. Is there a way to expose out express-rate-limit options outside of the container? eg for trusted proxy IPs or add the skip validation step to your config?
(Set
validate: {xForwardedForHeader: false}
in the options to disable the check.)The text was updated successfully, but these errors were encountered: