v0.1 test
This commit is contained in:
15
esphome_proxy/rootfs/etc/s6-overlay/s6-rc.d/init-nginx/run
Executable file
15
esphome_proxy/rootfs/etc/s6-overlay/s6-rc.d/init-nginx/run
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/command/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
# ==============================================================================
|
||||
# Configures NGINX for use with this add-on.
|
||||
# ==============================================================================
|
||||
|
||||
# Note the ^ at the beginning of the proxy_pass_host value
|
||||
# This stops bashio:var.json from passing the value as a string
|
||||
bashio::var.json \
|
||||
entry "$(bashio::addon.ingress_entry)" \
|
||||
server "$(bashio::config 'server')" \
|
||||
proxy_pass_host "^$(bashio::config 'proxy_pass_host')" \
|
||||
| tempio \
|
||||
-template /etc/nginx/templates/ingress.gtpl \
|
||||
-out /etc/nginx/servers/ingress.conf
|
||||
Reference in New Issue
Block a user