Quantcast
Channel: Home Assistant Community Add-on: Nginx Proxy Manager
Viewing all articles
Browse latest Browse all 617

Community Hass.io Add-on: Nginx Proxy Manager

$
0
0

@edSverige wrote:

Hi,

I’ve got the add-on running fine but when I try logging in with Trusted Locations from clients that are on the allowed subnet it doesn’t work. I get the following error:

I’ve tried adding X-Forward-For config in the proxy config to no avail.

configuration.yaml

http:
  # server_port: 8123
  # base_url: !secret http_baseurl
  # ssl_certificate: /ssl/fullchain.pem
  # ssl_key: /ssl/privkey.pem
  cors_allowed_origins:
    - https://google.com
    - https://home-assistant.io
  ip_ban_enabled: true
  login_attempts_threshold: 3
  use_x_forwarded_for: true
  trusted_proxies:
    - 127.0.0.1
    - 10.10.1.11
homeassistant:
  name: Home
  latitude: !secret home_lat
  longitude: !secret home_long
  elevation: 43
  unit_system: metric
  time_zone: Europe/Stockholm
  customize: !include includes/customize.yaml
  auth_providers:
    - type: homeassistant
    - type: trusted_networks
      trusted_networks:
        #- 127.0.0.1
        #- ::1
        - 10.10.1.0/24
        - 172.16.1.0/24

Custom config on proxy host advanced setting to enable X-forward:

proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $remote_addr;
real_ip_header X-Real-IP;
real_ip_recursive on;

Host settings

To clarify, logging in with username / password works fine but i would like login via Trusted Networks to work when at home.

Any ideas on what I can do?

Thanks in advance!

Read full topic


Viewing all articles
Browse latest Browse all 617

Trending Articles