mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-13 01:20:32 +02:00
Ingress addition
This commit is contained in:
13
resiliosync/rootfs/etc/cont-init.d/90-ingress.sh
Normal file
13
resiliosync/rootfs/etc/cont-init.d/90-ingress.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
#################
|
||||
# NGINX SETTING #
|
||||
#################
|
||||
declare ingress_interface
|
||||
declare ingress_port
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user