Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:hassio-addons/addon-home-panel
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 14, 2020
2 parents 0a9b618 + ab3e2bf commit 276b288
Show file tree
Hide file tree
Showing 17 changed files with 63 additions and 74 deletions.
6 changes: 3 additions & 3 deletions .github/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ requestInfoUserstoExclude: []
newIssueWelcomeComment: >
:wave: Thanks for opening your first issue here!
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

# Comment to be posted to on PRs from first time contributors in your repository
newPRWelcomeComment: >
: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:
: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:
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge

Expand Down
12 changes: 6 additions & 6 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
repository:
description: "Home Panel - Community Hass.io Add-on for Home Assistant"
topics: home-panel, home-automation, home-assistant, hassio, hassio-addons, hass, javascript, reactjs
description: "Home Panel - Home Assistant Community Add-ons"
topics: home-panel, home-automation, home-assistant, addon, addons, javascript, reactjs
homepage: https://addons.community
private: false
has_issues: true
Expand Down Expand Up @@ -42,24 +42,24 @@ labels:
description: "New features or options."
- name: "Type: Support"
color: 5319e7
description: "Marks an issue as an support ticket."
description: "Marks an issue as a support ticket."
- name: "Type: Discussion"
color: d4c5f9
description: "Marks an issue as an generic discussion ticket."
description: "Marks an issue as a generic discussion ticket."
- name: "Type: Maintenance"
color: 2af79e
description: "Generic maintenance tasks, e.g., package updates."

# Additional markers
- name: "Security"
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"
color: fef2c0
description: "Marks an idea, which might be excepted and implemented."
- name: "Incomplete"
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"
color: fbca04
description: "There is an PR opened for this issue."
Expand Down
10 changes: 5 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ variables:

ADDON_LEGACY_TAGS: "true"

ADDON_AARCH64_BASE: "hassioaddons/base-aarch64:6.0.1"
ADDON_AMD64_BASE: "hassioaddons/base-amd64:6.0.1"
ADDON_ARMHF_BASE: "hassioaddons/base-armhf:6.0.1"
ADDON_ARMV7_BASE: "hassioaddons/base-armv7:6.0.1"
ADDON_I386_BASE: "hassioaddons/base-i386:6.0.1"
ADDON_AARCH64_BASE: "hassioaddons/base-aarch64:7.0.2"
ADDON_AMD64_BASE: "hassioaddons/base-amd64:7.0.2"
ADDON_ARMHF_BASE: "hassioaddons/base-armhf:7.0.2"
ADDON_ARMV7_BASE: "hassioaddons/base-armv7:7.0.2"
ADDON_I386_BASE: "hassioaddons/base-i386:7.0.2"
28 changes: 13 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Community Hass.io Add-ons: Home Panel
# Home Assistant Community Add-on: Home Panel

[![GitHub Release][releases-shield]][releases]
![Project Stage][project-stage-shield]
Expand Down Expand Up @@ -40,7 +40,7 @@ A web frontend for controlling the home. Integrates with
## Installation

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. Install the "Home Panel" add-on.
Expand All @@ -61,13 +61,11 @@ comparison to installing any other Hass.io add-on.

Example add-on configuration:

```json
{
"log_level": "info",
"ssl": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem"
}
```yaml
log_level: info
ssl: true
certfile: fullchain.pem
keyfile: privkey.pem
```
### Option: `log_level`
Expand Down Expand Up @@ -97,13 +95,13 @@ Enables/Disables SSL (HTTPS) on the app. Set it `true` to enable it,

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`

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

Expand All @@ -125,7 +123,7 @@ Got questions?

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.
- The [Home Assistant Discord chat server][discord-ha] for general Home
Assistant discussions and questions.
Expand All @@ -151,11 +149,11 @@ The original setup of this repository is by [Timmo][timmo].
For a full list of all authors and 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].

## License
Expand Down
8 changes: 4 additions & 4 deletions home-panel/.README.j2
Original file line number Diff line number Diff line change
@@ -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]

Expand All @@ -25,8 +25,8 @@ A web frontend for controlling the home. Integrates with
{% if channel == "edge" %}
## WARNING! THIS IS AN EDGE VERSION!

This Hass.io Add-ons repository contains edge builds of add-ons. Edge builds
add-ons are based upon the latest development version.
This Home Assistant Add-ons repository contains edge builds of add-ons.
Edge builds add-ons are based upon the latest development version.

- They may not work at all.
- They might stop working at any time.
Expand All @@ -46,7 +46,7 @@ If you are more interested in stable releases of our add-ons:
{% if channel == "beta" %}
## 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 could have a negative impact on your system.
Expand Down
4 changes: 2 additions & 2 deletions home-panel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_FROM=hassioaddons/base:6.0.1
ARG BUILD_FROM=hassioaddons/base:7.0.2
# hadolint ignore=DL3006
FROM ${BUILD_FROM}

Expand Down Expand Up @@ -57,4 +57,4 @@ LABEL \
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-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"
18 changes: 9 additions & 9 deletions home-panel/build.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"args": {},
"build_from": {
"aarch64": "hassioaddons/base-aarch64:6.0.1",
"amd64": "hassioaddons/base-amd64:6.0.1",
"armhf": "hassioaddons/base-armhf:6.0.1",
"armv7": "hassioaddons/base-armv7:6.0.1",
"i386": "hassioaddons/base-i386:6.0.1"
},
"squash": false
"args": {},
"build_from": {
"aarch64": "hassioaddons/base-aarch64:7.0.2",
"amd64": "hassioaddons/base-amd64:7.0.2",
"armhf": "hassioaddons/base-armhf:7.0.2",
"armv7": "hassioaddons/base-armv7:7.0.2",
"i386": "hassioaddons/base-i386:7.0.2"
},
"squash": false
}
17 changes: 4 additions & 13 deletions home-panel/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@
"url": "https://github.com/hassio-addons/addon-home-panel",
"webui": "[PROTO:ssl]://[HOST]:[PORT:80]",
"startup": "application",
"arch": [
"aarch64",
"amd64",
"armhf",
"armv7",
"i386"
],
"arch": ["aarch64", "amd64", "armhf", "armv7", "i386"],
"boot": "auto",
"hassio_api": true,
"hassio_role": "default",
Expand All @@ -25,19 +19,16 @@
"80/tcp": null
},
"ports_description": {
"80/tcp": "Web UI (Not required for Hass.io Ingress)"
"80/tcp": "Web UI (Not required for Ingress)"
},
"map": [
"config:rw",
"ssl"
],
"map": ["config:rw", "ssl"],
"options": {
"ssl": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem"
},
"schema": {
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)?",
"log_level": "list(trace|debug|info|notice|warning|error|fatal)?",
"ssl": "bool",
"certfile": "str",
"keyfile": "str",
Expand Down
2 changes: 1 addition & 1 deletion home-panel/rootfs/etc/cont-init.d/discovery.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/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.
# ==============================================================================
declare config
Expand Down
8 changes: 4 additions & 4 deletions home-panel/rootfs/etc/cont-init.d/nginx.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/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
# ==============================================================================
declare port
declare certfile
declare hassio_dns
declare dns_host
declare ingress_interface
declare ingress_port
declare keyfile
Expand All @@ -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/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf

hassio_dns=$(bashio::dns.host)
sed -i "s/%%hassio_dns%%/${hassio_dns}/g" /etc/nginx/includes/resolver.conf
dns_host=$(bashio::dns.host)
sed -i "s/%%dns_host%%/${dns_host}/g" /etc/nginx/includes/resolver.conf
2 changes: 1 addition & 1 deletion home-panel/rootfs/etc/cont-init.d/secrets.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/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
# ==============================================================================
declare key
Expand Down
2 changes: 1 addition & 1 deletion home-panel/rootfs/etc/nginx/includes/resolver.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
resolver %%hassio_dns%%;
resolver %%dns_host%%;
12 changes: 6 additions & 6 deletions home-panel/rootfs/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ worker_processes 1;
# Enables the use of JIT for regular expressions to speed-up their processing.
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;

# Load allowed environment vars
env HASSIO_TOKEN;
env SUPERVISOR_TOKEN;

# Load dynamic modules.
include /etc/nginx/modules/*.conf;
Expand All @@ -30,11 +30,11 @@ events {
http {
include /etc/nginx/includes/mime.types;

log_format hassio '[$time_local] $status '
'$http_x_forwarded_for($remote_addr) '
'$request ($http_user_agent)';
log_format homeassistant '[$time_local] $status '
'$http_x_forwarded_for($remote_addr) '
'$request ($http_user_agent)';

access_log /proc/1/fd/1 hassio;
access_log /proc/1/fd/1 homeassistant;
client_max_body_size 4G;
default_type application/octet-stream;
gzip on;
Expand Down
2 changes: 1 addition & 1 deletion home-panel/rootfs/etc/services.d/home-panel/finish
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/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
# ==============================================================================
if -n { s6-test $# -ne 0 }
Expand Down
2 changes: 1 addition & 1 deletion home-panel/rootfs/etc/services.d/home-panel/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/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
# ==============================================================================
bashio::log.info "Run Home Panel.."
Expand Down
2 changes: 1 addition & 1 deletion home-panel/rootfs/etc/services.d/nginx/finish
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/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
# ==============================================================================
if -n { s6-test $# -ne 0 }
Expand Down
2 changes: 1 addition & 1 deletion home-panel/rootfs/etc/services.d/nginx/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Community Hass.io Add-ons: Home Panel
# Home Assistant Community Add-on: Home Panel
# Runs the Nginx daemon
# ==============================================================================
# Wait for Home Panel to become available
Expand Down

0 comments on commit 276b288

Please sign in to comment.