mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 05:34:20 +01:00
Fix ssl path for configurator (#183)
* Update map.py * Update config.json * Update Dockerfile
This commit is contained in:
@@ -8,7 +8,7 @@ ENV LANG C.UTF-8
|
||||
ARG BUILD_VERSION
|
||||
RUN apk add --no-cache python3 git curl \
|
||||
&& pip3 install GitPython \
|
||||
&& curl -s -o /configurator.py https://raw.githubusercontent.com/danielperna84/hass-configurator/$BUILD_VERSION/configurator.py \
|
||||
&& curl -s -o /configurator.py https://raw.githubusercontent.com/danielperna84/hass-configurator/"$(echo "$BUILD_VERSION" | cut -d '-' -f 1)"/configurator.py \
|
||||
&& sed -i "s/GIT = False/GIT = True/g" /configurator.py \
|
||||
&& apk del curl
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Configurator",
|
||||
"version": "0.2.0",
|
||||
"version": "0.2.0-p1",
|
||||
"slug": "configurator",
|
||||
"description": "Browser-based configuration file editor for Home Assistant.",
|
||||
"url": "https://home-assistant.io/addons/configurator",
|
||||
|
||||
@@ -13,9 +13,12 @@ configurator = {
|
||||
'BASEPATH': "/config",
|
||||
'HASS_API': options['homeassistant_api'],
|
||||
'HASS_API_PASSWORD': options['homeassistant_password'],
|
||||
'CREDENTIALS': "{}:{}".format(options['username'], options['password']),
|
||||
'SSL_CERTIFICATE': options['certfile'] if options['ssl'] else None,
|
||||
'SSL_KEY': options['keyfile'] if options['ssl'] else None,
|
||||
'CREDENTIALS':
|
||||
"{}:{}".format(options['username'], options['password']),
|
||||
'SSL_CERTIFICATE':
|
||||
"ssl/{}".format(options['certfile']) if options['ssl'] else None,
|
||||
'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'],
|
||||
|
||||
Reference in New Issue
Block a user