Added banlimit and dirsfirst options (#200)

This commit is contained in:
Daniel Perna
2017-11-14 11:24:16 +01:00
committed by Pascal Vizeli
parent cd9c8e4e0a
commit fcb9a37c78
2 changed files with 12 additions and 6 deletions

View File

@@ -13,15 +13,17 @@ configurator = {
'BASEPATH': "/config",
'HASS_API': "http://hassio/homeassistant/api/",
'HASS_API_PASSWORD': None,
'CREDENTIALS':
'CREDENTIALS':
"{}:{}".format(options['username'], options['password']),
'SSL_CERTIFICATE':
'SSL_CERTIFICATE':
"ssl/{}".format(options['certfile']) if options['ssl'] else None,
'SSL_KEY':
'SSL_KEY':
"ssl/{}".format(options['keyfile']) if options['ssl'] else None,
'ALLOWED_NETWORKS': options['allowed_networks'],
'BANNED_IPS': options['banned_ips'],
'IGNORE_PATTERN': options['ignore_pattern'],
'BANLIMIT': options['banlimit'],
'DIRSFIRST': options['dirsfirst'],
}
with Path(sys.argv[1]).open('w') as json_file: