fix(calibre): replace CWS port placeholder

This commit is contained in:
Alexandre
2025-08-22 22:52:26 +02:00
parent 057f76dfc8
commit 7ce92bb6ad
3 changed files with 13 additions and 6 deletions

View File

@@ -15,7 +15,9 @@ mv tmpfile "${NGINX_CONFIG}"
# Remove ipv6
sed -i '/listen \[::\]/d' "${NGINX_CONFIG}"
# Add ingress parameters
sed -i "s|3000|$(bashio::addon.ingress_port)|g" "${NGINX_CONFIG}"
sed -i "s|CWS|$(bashio::addon.ingress_port)|g" "${NGINX_CONFIG}"
sed -i 's|proxy_pass http://|proxy_pass https://|g' "${NGINX_CONFIG}"
sed -i '/proxy_pass/a proxy_ssl_verify off;' "${NGINX_CONFIG}"
sed -i '/proxy_buffering/a proxy_set_header Accept-Encoding "";' "${NGINX_CONFIG}"
sed -i '/proxy_buffering/a sub_filter_once off;' "${NGINX_CONFIG}"
sed -i '/proxy_buffering/a sub_filter_types *;' "${NGINX_CONFIG}"