Update nginx.txt

This commit is contained in:
Alexandre
2021-07-28 19:17:20 +02:00
committed by GitHub
parent 7326ef3213
commit 26b96f4ae3

View File

@@ -43,6 +43,8 @@ fi
# NGINX #
#########
test="true"
if $test; then
declare port
declare certfile
declare ingress_interface
@@ -57,7 +59,8 @@ 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