mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
configurator: Fix and enforce secure base path (#906)
* configurator: Fix typo in ENFORCE_BASEPATH option * configurator: Enforce base path by default * configurator: Bump version to 4.1
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 4.1
|
||||||
|
|
||||||
|
- Fixes an issue with the enforce base path option
|
||||||
|
- Enforce secure base path by default
|
||||||
|
|
||||||
## 4.0
|
## 4.0
|
||||||
|
|
||||||
- Removed direct access from the add-on, making the add-on Ingress only
|
- Removed direct access from the add-on, making the add-on Ingress only
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Configurator",
|
"name": "Configurator",
|
||||||
"version": "4.0",
|
"version": "4.1",
|
||||||
"slug": "configurator",
|
"slug": "configurator",
|
||||||
"description": "Browser-based configuration file editor for Home Assistant",
|
"description": "Browser-based configuration file editor for Home Assistant",
|
||||||
"url": "https://github.com/home-assistant/hassio-addons/tree/master/configurator",
|
"url": "https://github.com/home-assistant/hassio-addons/tree/master/configurator",
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"map": ["backup:rw", "config:rw", "share:rw", "ssl:rw"],
|
"map": ["backup:rw", "config:rw", "share:rw", "ssl:rw"],
|
||||||
"options": {
|
"options": {
|
||||||
"dirsfirst": false,
|
"dirsfirst": false,
|
||||||
"enforce_basepath": false,
|
"enforce_basepath": true,
|
||||||
"ignore_pattern": ["__pycache__", ".cloud", ".storage", "deps"],
|
"ignore_pattern": ["__pycache__", ".cloud", ".storage", "deps"],
|
||||||
"ssh_keys": []
|
"ssh_keys": []
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ fi
|
|||||||
# Setup and run configurator
|
# Setup and run configurator
|
||||||
export HC_HASS_API_PASSWORD="${HASSIO_TOKEN}"
|
export HC_HASS_API_PASSWORD="${HASSIO_TOKEN}"
|
||||||
export HC_DIRFIRST="${DIRSFIRST}"
|
export HC_DIRFIRST="${DIRSFIRST}"
|
||||||
export HC_ENFORECE_BASEPATH="${ENFORCE_BASEPATH}"
|
export HC_ENFORCE_BASEPATH="${ENFORCE_BASEPATH}"
|
||||||
export HC_IGNORE_PATTERN="${IGNORE_PATTERN}"
|
export HC_IGNORE_PATTERN="${IGNORE_PATTERN}"
|
||||||
|
|
||||||
exec hass-configurator /etc/configurator.conf
|
exec hass-configurator /etc/configurator.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user