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

@@ -1,3 +1,9 @@
## 8.8.0-4 (22-08-2025)
- Fix ingress config to replace CWS port placeholder
## 8.8.0-3 (22-08-2025)
- Switch desktop GUI to HTTPS for ingress
## 8.8.0-2 (12-08-2025) ## 8.8.0-2 (12-08-2025)
- Minor bugs fixed - Minor bugs fixed

View File

@@ -78,6 +78,7 @@
}, },
"image": "ghcr.io/alexbelgium/calibre-{arch}", "image": "ghcr.io/alexbelgium/calibre-{arch}",
"ingress": true, "ingress": true,
"ingress_port": 8181,
"init": false, "init": false,
"map": [ "map": [
"media:rw", "media:rw",
@@ -94,15 +95,13 @@
"panel_admin": false, "panel_admin": false,
"panel_icon": "mdi:book-multiple", "panel_icon": "mdi:book-multiple",
"ports": { "ports": {
"8080/tcp": 8080, "8181/tcp": 8181,
"8081/tcp": 8081, "8081/tcp": 8081,
"8181/tcp": null,
"9090/tcp": 9090 "9090/tcp": 9090
}, },
"ports_description": { "ports_description": {
"8080/tcp": "Calibre desktop gui", "8181/tcp": "Calibre desktop gui (https)",
"8081/tcp": "Calibre webserver gui, to be enabled within the desktop gui", "8081/tcp": "Calibre webserver gui, to be enabled within the desktop gui",
"8181/tcp": "Calibre https webserver gui, to be enabled within the desktop gui",
"9090/tcp": "Calibre wireless connection, to be enabled within the desktop gui" "9090/tcp": "Calibre wireless connection, to be enabled within the desktop gui"
}, },
"privileged": [ "privileged": [
@@ -125,6 +124,6 @@
"slug": "calibre", "slug": "calibre",
"udev": true, "udev": true,
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/calibre", "url": "https://github.com/alexbelgium/hassio-addons/tree/master/calibre",
"version": "8.8.0-2", "version": "8.8.0-4",
"video": true "video": true
} }

View File

@@ -15,7 +15,9 @@ mv tmpfile "${NGINX_CONFIG}"
# Remove ipv6 # Remove ipv6
sed -i '/listen \[::\]/d' "${NGINX_CONFIG}" sed -i '/listen \[::\]/d' "${NGINX_CONFIG}"
# Add ingress parameters # 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 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_once off;' "${NGINX_CONFIG}"
sed -i '/proxy_buffering/a sub_filter_types *;' "${NGINX_CONFIG}" sed -i '/proxy_buffering/a sub_filter_types *;' "${NGINX_CONFIG}"