addon-jupyterlab/jupyterlab/rootfs/etc/cont-init.d/nginx.sh
Franck Nijhof 5a7eb72d4b
Refactor add-on (#232)
* Refactor add-on

* Replace NGinx Configuration

* Ingress!!!

* More tweaks, renames and other touches

* Revert accidental upgrade of JupyterLab
2021-02-02 22:36:04 +01:00

12 lines
494 B
Bash

#!/usr/bin/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: JupyterLab
# Configures NGINX for use with JupyterLab
# ==============================================================================
# Generate Ingress configuration
bashio::var.json \
entry "$(bashio::addon.ingress_entry)" \
| tempio \
-template /etc/nginx/templates/ingress.gtpl \
-out /etc/nginx/servers/ingress.conf