ha-3dprinter-addons/camera-ustreamer/rootfs/etc/cont-init.d/proxy.sh
2023-03-16 12:43:03 +01:00

23 lines
850 B
Bash

# #!/usr/bin/with-contenv bashio
# # ==============================================================================
# # Add-on: aiortc
# # Configures NGINX for use with aiortc
# # ==============================================================================
# # Generate Ingress configuration
# bashio::var.json \
# interface "$(bashio::addon.ip_address)" \
# port "^$(bashio::addon.ingress_port)" \
# | tempio \
# -template /etc/nginx/templates/ingress.gtpl \
# -out /etc/nginx/servers/ingress.conf
# # Generate direct access configuration, if enabled.
# if bashio::var.has_value "$(bashio::addon.port 80)"; then
# bashio::var.json \
# port "^$(bashio::addon.port 80)" \
# | tempio \
# -template /etc/nginx/templates/direct.gtpl \
# -out /etc/nginx/servers/direct.conf
# fi