7 lines
248 B
Text
7 lines
248 B
Text
#!/usr/bin/with-contenv bashio
|
|
s6-setuidgid www-data
|
|
IMG_DIR="$(bashio::config 'image_path')"
|
|
bashio::log.info "Starting nginx..."
|
|
sed -i "s~IMG_DIR~$IMG_DIR~g" /etc/nginx/nginx.conf
|
|
nginx -c /etc/nginx/nginx.conf
|
|
bashio::log.info "nginx running."
|