Merge branch 'master' of github.com:hassio-addons/addon-home-panel

This commit is contained in:
root 2020-03-14 16:08:45 +00:00
commit 276b288562
17 changed files with 63 additions and 74 deletions

6
.github/config.yml vendored
View file

@ -34,14 +34,14 @@ requestInfoUserstoExclude: []
newIssueWelcomeComment: > newIssueWelcomeComment: >
:wave: Thanks for opening your first issue here! :wave: Thanks for opening your first issue here!
If you're reporting a :bug: bug, please make sure you include steps to reproduce it. If you're reporting a :bug: bug, please make sure you include steps to reproduce it.
Also, logs, error messages and information about your hardware might be usefull. Also, logs, error messages and information about your hardware might be useful.
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome # Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
# Comment to be posted to on PRs from first time contributors in your repository # Comment to be posted to on PRs from first time contributors in your repository
newPRWelcomeComment: > newPRWelcomeComment: >
:sparkling_heart: Thanks for opening this pull request! :sparkling_heart: :sparkling_heart: Thanks for opening this pull request! :sparkling_heart:
If your PR gets accepted and merged in, we will invite you to the project :tada: If your PR gets accepted and merged in, we will invite you to the project :tada:
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge # Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge

12
.github/settings.yml vendored
View file

@ -1,7 +1,7 @@
--- ---
repository: repository:
description: "Home Panel - Community Hass.io Add-on for Home Assistant" description: "Home Panel - Home Assistant Community Add-ons"
topics: home-panel, home-automation, home-assistant, hassio, hassio-addons, hass, javascript, reactjs topics: home-panel, home-automation, home-assistant, addon, addons, javascript, reactjs
homepage: https://addons.community homepage: https://addons.community
private: false private: false
has_issues: true has_issues: true
@ -42,10 +42,10 @@ labels:
description: "New features or options." description: "New features or options."
- name: "Type: Support" - name: "Type: Support"
color: 5319e7 color: 5319e7
description: "Marks an issue as an support ticket." description: "Marks an issue as a support ticket."
- name: "Type: Discussion" - name: "Type: Discussion"
color: d4c5f9 color: d4c5f9
description: "Marks an issue as an generic discussion ticket." description: "Marks an issue as a generic discussion ticket."
- name: "Type: Maintenance" - name: "Type: Maintenance"
color: 2af79e color: 2af79e
description: "Generic maintenance tasks, e.g., package updates." description: "Generic maintenance tasks, e.g., package updates."
@ -53,13 +53,13 @@ labels:
# Additional markers # Additional markers
- name: "Security" - name: "Security"
color: ee0701 color: ee0701
description: "Marks an security issues that needs to be resolved asap." description: "Marks a security issue that needs to be resolved asap."
- name: "Idea" - name: "Idea"
color: fef2c0 color: fef2c0
description: "Marks an idea, which might be excepted and implemented." description: "Marks an idea, which might be excepted and implemented."
- name: "Incomplete" - name: "Incomplete"
color: fef2c0 color: fef2c0
description: "Marks an PR or issue that is missing information." description: "Marks a PR or issue that is missing information."
- name: "Pull request" - name: "Pull request"
color: fbca04 color: fbca04
description: "There is an PR opened for this issue." description: "There is an PR opened for this issue."

View file

@ -8,8 +8,8 @@ variables:
ADDON_LEGACY_TAGS: "true" ADDON_LEGACY_TAGS: "true"
ADDON_AARCH64_BASE: "hassioaddons/base-aarch64:6.0.1" ADDON_AARCH64_BASE: "hassioaddons/base-aarch64:7.0.2"
ADDON_AMD64_BASE: "hassioaddons/base-amd64:6.0.1" ADDON_AMD64_BASE: "hassioaddons/base-amd64:7.0.2"
ADDON_ARMHF_BASE: "hassioaddons/base-armhf:6.0.1" ADDON_ARMHF_BASE: "hassioaddons/base-armhf:7.0.2"
ADDON_ARMV7_BASE: "hassioaddons/base-armv7:6.0.1" ADDON_ARMV7_BASE: "hassioaddons/base-armv7:7.0.2"
ADDON_I386_BASE: "hassioaddons/base-i386:6.0.1" ADDON_I386_BASE: "hassioaddons/base-i386:7.0.2"

View file

@ -1,4 +1,4 @@
# Community Hass.io Add-ons: Home Panel # Home Assistant Community Add-on: Home Panel
[![GitHub Release][releases-shield]][releases] [![GitHub Release][releases-shield]][releases]
![Project Stage][project-stage-shield] ![Project Stage][project-stage-shield]
@ -40,7 +40,7 @@ A web frontend for controlling the home. Integrates with
## Installation ## Installation
The installation of this add-on is pretty straightforward and not different in The installation of this add-on is pretty straightforward and not different in
comparison to installing any other Hass.io add-on. comparison to installing any other Home Assistant add-on.
1. [Add our Hass.io add-ons repository][repository] to your Hass.io instance. 1. [Add our Hass.io add-ons repository][repository] to your Hass.io instance.
1. Install the "Home Panel" add-on. 1. Install the "Home Panel" add-on.
@ -61,13 +61,11 @@ comparison to installing any other Hass.io add-on.
Example add-on configuration: Example add-on configuration:
```json ```yaml
{ log_level: info
"log_level": "info", ssl: true
"ssl": true, certfile: fullchain.pem
"certfile": "fullchain.pem", keyfile: privkey.pem
"keyfile": "privkey.pem"
}
``` ```
### Option: `log_level` ### Option: `log_level`
@ -97,13 +95,13 @@ Enables/Disables SSL (HTTPS) on the app. Set it `true` to enable it,
The certificate file to use for SSL. The certificate file to use for SSL.
**Note**: _The file MUST be stored in `/ssl/`, which is default for Hass.io_ **Note**: _The file MUST be stored in `/ssl/`, which is the default_
### Option: `keyfile` ### Option: `keyfile`
The private key file to use for SSL. The private key file to use for SSL.
**Note**: _The file MUST be stored in `/ssl/`, which is default for Hass.io_ **Note**: _The file MUST be stored in `/ssl/`, which is the default_
## Changelog & Releases ## Changelog & Releases
@ -125,7 +123,7 @@ Got questions?
You have several options to get them answered: You have several options to get them answered:
- The [Community Hass.io Add-ons Discord chat server][discord] for add-on - The [Home Assistant Community Add-ons Discord chat server][discord] for add-on
support and feature requests. support and feature requests.
- The [Home Assistant Discord chat server][discord-ha] for general Home - The [Home Assistant Discord chat server][discord-ha] for general Home
Assistant discussions and questions. Assistant discussions and questions.
@ -151,11 +149,11 @@ The original setup of this repository is by [Timmo][timmo].
For a full list of all authors and contributors, For a full list of all authors and contributors,
check [the contributor's page][contributors]. check [the contributor's page][contributors].
## We have got some Hass.io add-ons for you ## We have got some Home Assistant add-ons for you
Want some more functionality to your Hass.io Home Assistant instance? Want some more functionality to your Home Assistant instance?
We have created multiple add-ons for Hass.io. For a full list, check out We have created multiple add-ons for Home Assistant. For a full list, check out
our [GitHub Repository][repository]. our [GitHub Repository][repository].
## License ## License

View file

@ -1,4 +1,4 @@
# Community Hass.io Add-ons: Home Panel # Home Assistant Community Add-on: Home Panel
[![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield] [![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield]
@ -25,8 +25,8 @@ A web frontend for controlling the home. Integrates with
{% if channel == "edge" %} {% if channel == "edge" %}
## WARNING! THIS IS AN EDGE VERSION! ## WARNING! THIS IS AN EDGE VERSION!
This Hass.io Add-ons repository contains edge builds of add-ons. Edge builds This Home Assistant Add-ons repository contains edge builds of add-ons.
add-ons are based upon the latest development version. Edge builds add-ons are based upon the latest development version.
- They may not work at all. - They may not work at all.
- They might stop working at any time. - They might stop working at any time.
@ -46,7 +46,7 @@ If you are more interested in stable releases of our add-ons:
{% if channel == "beta" %} {% if channel == "beta" %}
## WARNING! THIS IS A BETA VERSION! ## WARNING! THIS IS A BETA VERSION!
This Hass.io Add-ons repository contains beta releases of add-ons. This Home Assistant Add-ons repository contains beta releases of add-ons.
- They might stop working at any time. - They might stop working at any time.
- They could have a negative impact on your system. - They could have a negative impact on your system.

View file

@ -1,4 +1,4 @@
ARG BUILD_FROM=hassioaddons/base:6.0.1 ARG BUILD_FROM=hassioaddons/base:7.0.2
# hadolint ignore=DL3006 # hadolint ignore=DL3006
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
@ -57,4 +57,4 @@ LABEL \
org.label-schema.usage="https://github.com/hassio-addons/addon-home-panel/tree/master/README.md" \ org.label-schema.usage="https://github.com/hassio-addons/addon-home-panel/tree/master/README.md" \
org.label-schema.vcs-ref=${BUILD_REF} \ org.label-schema.vcs-ref=${BUILD_REF} \
org.label-schema.vcs-url="https://github.com/hassio-addons/addon-home-panel" \ org.label-schema.vcs-url="https://github.com/hassio-addons/addon-home-panel" \
org.label-schema.vendor="Community Hass.io Add-ons" org.label-schema.vendor="Home Assistant Community Add-ons"

View file

@ -1,11 +1,11 @@
{ {
"args": {}, "args": {},
"build_from": { "build_from": {
"aarch64": "hassioaddons/base-aarch64:6.0.1", "aarch64": "hassioaddons/base-aarch64:7.0.2",
"amd64": "hassioaddons/base-amd64:6.0.1", "amd64": "hassioaddons/base-amd64:7.0.2",
"armhf": "hassioaddons/base-armhf:6.0.1", "armhf": "hassioaddons/base-armhf:7.0.2",
"armv7": "hassioaddons/base-armv7:6.0.1", "armv7": "hassioaddons/base-armv7:7.0.2",
"i386": "hassioaddons/base-i386:6.0.1" "i386": "hassioaddons/base-i386:7.0.2"
}, },
"squash": false "squash": false
} }

View file

@ -6,13 +6,7 @@
"url": "https://github.com/hassio-addons/addon-home-panel", "url": "https://github.com/hassio-addons/addon-home-panel",
"webui": "[PROTO:ssl]://[HOST]:[PORT:80]", "webui": "[PROTO:ssl]://[HOST]:[PORT:80]",
"startup": "application", "startup": "application",
"arch": [ "arch": ["aarch64", "amd64", "armhf", "armv7", "i386"],
"aarch64",
"amd64",
"armhf",
"armv7",
"i386"
],
"boot": "auto", "boot": "auto",
"hassio_api": true, "hassio_api": true,
"hassio_role": "default", "hassio_role": "default",
@ -25,19 +19,16 @@
"80/tcp": null "80/tcp": null
}, },
"ports_description": { "ports_description": {
"80/tcp": "Web UI (Not required for Hass.io Ingress)" "80/tcp": "Web UI (Not required for Ingress)"
}, },
"map": [ "map": ["config:rw", "ssl"],
"config:rw",
"ssl"
],
"options": { "options": {
"ssl": true, "ssl": true,
"certfile": "fullchain.pem", "certfile": "fullchain.pem",
"keyfile": "privkey.pem" "keyfile": "privkey.pem"
}, },
"schema": { "schema": {
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)?", "log_level": "list(trace|debug|info|notice|warning|error|fatal)?",
"ssl": "bool", "ssl": "bool",
"certfile": "str", "certfile": "str",
"keyfile": "str", "keyfile": "str",

View file

@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# ============================================================================== # ==============================================================================
# Community Hass.io Add-ons: Home Panel # Home Assistant Community Add-on: Home Panel
# Sends discovery information to Home Assistant. # Sends discovery information to Home Assistant.
# ============================================================================== # ==============================================================================
declare config declare config

View file

@ -1,11 +1,11 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# ============================================================================== # ==============================================================================
# Community Hass.io Add-ons: Home Panel # Home Assistant Community Add-on: Home Panel
# Configures NGINX for use with Home Panel # Configures NGINX for use with Home Panel
# ============================================================================== # ==============================================================================
declare port declare port
declare certfile declare certfile
declare hassio_dns declare dns_host
declare ingress_interface declare ingress_interface
declare ingress_port declare ingress_port
declare keyfile declare keyfile
@ -32,5 +32,5 @@ ingress_interface=$(bashio::addon.ip_address)
sed -i "s/%%port%%/${ingress_port}/g" /etc/nginx/servers/ingress.conf sed -i "s/%%port%%/${ingress_port}/g" /etc/nginx/servers/ingress.conf
sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf
hassio_dns=$(bashio::dns.host) dns_host=$(bashio::dns.host)
sed -i "s/%%hassio_dns%%/${hassio_dns}/g" /etc/nginx/includes/resolver.conf sed -i "s/%%dns_host%%/${dns_host}/g" /etc/nginx/includes/resolver.conf

View file

@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# ============================================================================== # ==============================================================================
# Community Hass.io Add-ons: Home Panel # Home Assistant Community Add-on: Home Panel
# This updates the internal auth secret for the API # This updates the internal auth secret for the API
# ============================================================================== # ==============================================================================
declare key declare key

View file

@ -1 +1 @@
resolver %%hassio_dns%%; resolver %%dns_host%%;

View file

@ -13,11 +13,11 @@ worker_processes 1;
# Enables the use of JIT for regular expressions to speed-up their processing. # Enables the use of JIT for regular expressions to speed-up their processing.
pcre_jit on; pcre_jit on;
# Write error log to Hass.io add-on log. # Write error log to the add-on log.
error_log /proc/1/fd/1 error; error_log /proc/1/fd/1 error;
# Load allowed environment vars # Load allowed environment vars
env HASSIO_TOKEN; env SUPERVISOR_TOKEN;
# Load dynamic modules. # Load dynamic modules.
include /etc/nginx/modules/*.conf; include /etc/nginx/modules/*.conf;
@ -30,11 +30,11 @@ events {
http { http {
include /etc/nginx/includes/mime.types; include /etc/nginx/includes/mime.types;
log_format hassio '[$time_local] $status ' log_format homeassistant '[$time_local] $status '
'$http_x_forwarded_for($remote_addr) ' '$http_x_forwarded_for($remote_addr) '
'$request ($http_user_agent)'; '$request ($http_user_agent)';
access_log /proc/1/fd/1 hassio; access_log /proc/1/fd/1 homeassistant;
client_max_body_size 4G; client_max_body_size 4G;
default_type application/octet-stream; default_type application/octet-stream;
gzip on; gzip on;

View file

@ -1,6 +1,6 @@
#!/usr/bin/execlineb -S0 #!/usr/bin/execlineb -S0
# ============================================================================== # ==============================================================================
# Community Hass.io Add-ons: Home Panel # Home Assistant Community Add-on: Home Panel
# Take down the S6 supervision tree when Home Panel fails # Take down the S6 supervision tree when Home Panel fails
# ============================================================================== # ==============================================================================
if -n { s6-test $# -ne 0 } if -n { s6-test $# -ne 0 }

View file

@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# ============================================================================== # ==============================================================================
# Community Hass.io Add-ons: Home Panel # Home Assistant Community Add-on: Home Panel
# Starts server to serve the app # Starts server to serve the app
# ============================================================================== # ==============================================================================
bashio::log.info "Run Home Panel.." bashio::log.info "Run Home Panel.."

View file

@ -1,6 +1,6 @@
#!/usr/bin/execlineb -S0 #!/usr/bin/execlineb -S0
# ============================================================================== # ==============================================================================
# Community Hass.io Add-ons: Home Panel # Home Assistant Community Add-on: Home Panel
# Take down the S6 supervision tree when Nginx fails # Take down the S6 supervision tree when Nginx fails
# ============================================================================== # ==============================================================================
if -n { s6-test $# -ne 0 } if -n { s6-test $# -ne 0 }

View file

@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# ============================================================================== # ==============================================================================
# Community Hass.io Add-ons: Home Panel # Home Assistant Community Add-on: Home Panel
# Runs the Nginx daemon # Runs the Nginx daemon
# ============================================================================== # ==============================================================================
# Wait for Home Panel to become available # Wait for Home Panel to become available