Skip to content

Commit

Permalink
Migrate configuration of trusted networks to authentication providers
Browse files Browse the repository at this point in the history
  • Loading branch information
davidorlea committed Mar 11, 2019
1 parent 980bb4a commit 4fb2ec5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 7 additions & 4 deletions configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
5 changes: 4 additions & 1 deletion secrets_dummy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fb2ec5

Please sign in to comment.