mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Ingress addition
https://github.com/alexbelgium/hassio-addons/issues/407
This commit is contained in:
17
nzbget/rootfs/etc/cont-init.d/32-nginx_ingress.sh
Normal file
17
nzbget/rootfs/etc/cont-init.d/32-nginx_ingress.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
#################
|
||||
# NGINX SETTING #
|
||||
#################
|
||||
|
||||
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
|
||||
|
||||
# Allows serving js
|
||||
sed -i 's/<!-- %if-not-debug% -->/<!-- %if-not-debug% /g' /app/nzbget/webui/index.html
|
||||
sed -i 's/<!-- %end% -->/ %end% -->/g' /app/nzbget/webui/index.html
|
||||
sed -i 's/<!-- %if-debug%/<!-- %if-debug% -->/g' /app/nzbget/webui/index.html
|
||||
sed -i 's/ %end% -->/<!-- %end% -->/g' /app/nzbget/webui/index.html
|
||||
Reference in New Issue
Block a user