Merge pull request #2060 from alexbelgium/codex/fix-https-ingress-configuration

fix(calibre): use https port
This commit is contained in:
Alexandre
2025-08-22 22:54:24 +02:00
committed by GitHub
3 changed files with 5 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
## 8.8.0-4 (22-08-2025)
- Fix ingress config to replace CWS port plac
## 8.8.0-3 (22-08-2025)
- Switch desktop GUI to HTTPS for ingress

View File

@@ -124,6 +124,6 @@
"slug": "calibre",
"udev": true,
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/calibre",
"version": "8.8.0-3",
"version": "8.8.0-4",
"video": true
}

View File

@@ -15,7 +15,7 @@ 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}"