Update nginx.txt

This commit is contained in:
Alexandre
2021-07-28 20:55:42 +02:00
committed by GitHub
parent 3eeaaa2a7a
commit 03f4cd5fd9

View File

@@ -43,8 +43,6 @@ fi
# NGINX #
#########
test="true"
if $test; then
bashio::log.info "Starting nginx"
declare port
@@ -61,8 +59,7 @@ sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf
mkdir -p /var/log/nginx && touch /var/log/nginx/error.log
#Correct image
grep -rl '"/' /app/dist/ | xargs sed -i 's|"/|"|g' || true
grep -rl '/api/' /app/dist/ | xargs sed -i 's|/api/|api/|g' || true
#grep -rl '"/' /app/dist/ | xargs sed -i 's|"/|"|g' || true
#grep -rl '/api/' /app/dist/ | xargs sed -i 's|/api/|api/|g' || true
#exec nginx & bashio::log.info "Nginx started for Ingress"
fi