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

HACS Authenticate doesn't report correct address #81

Closed
BeardedTinker opened this issue Feb 20, 2022 · 0 comments
Closed

HACS Authenticate doesn't report correct address #81

BeardedTinker opened this issue Feb 20, 2022 · 0 comments
Assignees
Labels
Enhancement New feature or request Synology Things related to Synology

Comments

@BeardedTinker
Copy link
Owner

Since I'm using ngnix/Synology's Reverse Proxy for HA, I sometimes receive authentication information with local IP address.
In order to try and see that's behind it, added following custom rules to Synology:

Upgrade $http_upgrade
Connection $connection_upgrade
X-Real-IP $remote_addr
X-Forwarded-For $proxy_add_x_forwarded_for
X-Forwarded-Proto $proxy_x_forwarded_proto

First two were there before, last 3 were added.
Also, in http.yaml (integration http) I've previously added:

  use_x_forwarded_for: true
  trusted_proxies: !secret proxy_list

First line should help with identifying/receiving info from reverse proxy, while second one is mandatory if you are using reverse proxy.

@BeardedTinker BeardedTinker added Enhancement New feature or request Synology Things related to Synology labels Feb 20, 2022
@BeardedTinker BeardedTinker self-assigned this Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Synology Things related to Synology
Projects
None yet
Development

No branches or pull requests

1 participant