From 4fb2ec59692a0813a82cc58e634eebfd6a94b09c Mon Sep 17 00:00:00 2001 From: David Orlea Date: Mon, 11 Mar 2019 13:07:19 +0100 Subject: [PATCH] Migrate configuration of trusted networks to authentication providers --- configuration.yaml | 11 +++++++---- secrets_dummy.yaml | 5 ++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/configuration.yaml b/configuration.yaml index 23ec1d4..cb11d78 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -7,6 +7,12 @@ homeassistant: time_zone: !secret homeassistant_time_zone customize: !include customize.yaml customize_glob: !include customize_glob.yaml + auth_providers: + - type: homeassistant + - type: trusted_networks + trusted_networks: + - !secret homeassistant_auth_providers_trusted_networks_1 + - !secret homeassistant_auth_providers_trusted_networks_2 logger: default: warning @@ -24,10 +30,7 @@ http: server_port: !secret http_server_port use_x_forwarded_for: true trusted_proxies: - - 127.0.0.1 - trusted_networks: - - 127.0.0.1 - - 192.168.178.0/24 + - !secret http_trusted_proxies_1 ip_ban_enabled: true login_attempts_threshold: 5 diff --git a/secrets_dummy.yaml b/secrets_dummy.yaml index 7cffd8b..dde596a 100644 --- a/secrets_dummy.yaml +++ b/secrets_dummy.yaml @@ -3,13 +3,16 @@ homeassistant_latitude: 0.0 homeassistant_longitude: 0.0 homeassistant_elevation: 0 homeassistant_time_zone: Universal +homeassistant_auth_providers_trusted_networks_1: 1.2.3.4 +homeassistant_auth_providers_trusted_networks_2: 2.3.4.5 http_server_port: 65535 +http_trusted_proxies_1: 1.2.3.4 influxdb_host: dummy influxdb_username: dummy influxdb_password: dummy influxdb_database: dummy recorder_db_url: dummy -mqtt_broker: dummy +mqtt_broker: 1.2.3.4 mqtt_port: 65535 mqtt_client_id: dummy mqtt_username: dummy