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

Commit

Permalink
🔥 Disable ingress temporarily (#27)
Browse files Browse the repository at this point in the history
* 🔥 Disable Ingress

* 🔥 Fix version
  • Loading branch information
timmo001 authored Aug 4, 2019
1 parent e1d1c1c commit bd201bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
2 changes: 1 addition & 1 deletion home-panel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
\
Expand Down
9 changes: 3 additions & 6 deletions home-panel/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
7 changes: 0 additions & 7 deletions home-panel/rootfs/etc/cont-init.d/nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# ==============================================================================
declare port
declare certfile
declare ingress_interface
declare ingress_port
declare keyfile

port=$(bashio::addon.port 80)
Expand All @@ -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
8 changes: 0 additions & 8 deletions home-panel/rootfs/etc/nginx/servers/ingress.conf

This file was deleted.

0 comments on commit bd201bc

Please sign in to comment.