Update nginx.txt

This commit is contained in:
Alexandre
2021-07-29 15:21:44 +02:00
committed by GitHub
parent 1a590c2f71
commit 6180d38c9f

View File

@@ -57,8 +57,7 @@ ingress_interface=$(bashio::addon.ip_address)
sed -i "s/%%port%%/${ingress_port}/g" /app/Caddyfile || true
sed -i "s/%%interface%%/${ingress_interface}/g" /app/Caddyfile || true
#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
#exec nginx & bashio::log.info "Nginx started for Ingress"
grep -rl '/css/' /app/dist/ | xargs sed -i 's|/css/|./css/|g' || true
grep -rl '/js/' /app/dist/ | xargs sed -i 's|/js/|./js/|g' || true
grep -rl '/api/' /app/dist/ | xargs sed -i 's|/api/|./api/|g' || true