23 lines
850 B
Bash
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
|