mirror of
https://github.com/hassio-addons/addon-home-panel.git
synced 2025-05-04 19:01:21 +00:00
🔥 Disable ingress temporarily (#27)
* 🔥 Disable Ingress * 🔥 Fix version
This commit is contained in:
parent
e1d1c1c883
commit
bd201bc944
4 changed files with 4 additions and 22 deletions
|
@ -17,7 +17,7 @@ RUN \
|
|||
nodejs-current=12.4.0-r0 \
|
||||
\
|
||||
&& curl -J -L -o /tmp/panel.zip \
|
||||
"https://github.com/timmo001/home-panel/releases/download/v1.0.0/home-panel-built.zip" \
|
||||
"https://github.com/timmo001/home-panel/releases/download/v1.0.0/home-panel-built-v0.10.0.zip" \
|
||||
&& unzip -d /tmp /tmp/panel.zip \
|
||||
&& mv /tmp/build /opt/panel \
|
||||
\
|
||||
|
|
|
@ -17,16 +17,13 @@
|
|||
"hassio_role": "default",
|
||||
"hassio_api": true,
|
||||
"homeassistant_api": true,
|
||||
"ingress": true,
|
||||
"ingress_port": 1337,
|
||||
"panel_icon": "mdi:home",
|
||||
"homeassistant": "0.92.0b2",
|
||||
"ingress": false,
|
||||
"ports": {
|
||||
"80/tcp": null,
|
||||
"80/tcp": 8234,
|
||||
"3234/tcp": 3234
|
||||
},
|
||||
"ports_description": {
|
||||
"80/tcp": "Web UI (Not required for Hass.io Ingress)",
|
||||
"80/tcp": "Web UI",
|
||||
"3234/tcp": "API"
|
||||
},
|
||||
"map": [
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
# ==============================================================================
|
||||
declare port
|
||||
declare certfile
|
||||
declare ingress_interface
|
||||
declare ingress_port
|
||||
declare keyfile
|
||||
|
||||
port=$(bashio::addon.port 80)
|
||||
|
@ -25,8 +23,3 @@ if bashio::var.has_value "${port}"; then
|
|||
mv /etc/nginx/servers/direct.disabled /etc/nginx/servers/direct.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
ingress_port=$(bashio::addon.ingress_port)
|
||||
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
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
server {
|
||||
listen %%interface%%:%%port%% default_server;
|
||||
|
||||
include /etc/nginx/includes/server_params.conf;
|
||||
|
||||
allow 172.30.32.2;
|
||||
deny all;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue