From 07320ae0abd05bd9c3f1ed95aa5168b7fd398a9f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Jun 2026 12:32:11 +0000 Subject: [PATCH 1/3] fix(ente): change DISABLE_WEB_UI default to false so web UI is accessible --- ente/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ente/config.yaml b/ente/config.yaml index 8150e7683f..f539aa27db 100644 --- a/ente/config.yaml +++ b/ente/config.yaml @@ -78,7 +78,7 @@ name: Ente options: env_vars: [] DB_PASSWORD: ente - DISABLE_WEB_UI: true + DISABLE_WEB_UI: false ENTE_ENDPOINT_URL: http://homeassistant.local:8280 MINIO_DATA_LOCATION: /config/minio-data MINIO_ROOT_PASSWORD: minioadmin From 1cf986a88508f2bf2d4382f8134457ca6a7644c6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Jun 2026 12:38:32 +0000 Subject: [PATCH 2/3] feat(ente): remove DISABLE_WEB_UI option, make MinIO internal-only, bump to 4.4.22-3 --- ente/CHANGELOG.md | 4 ++++ ente/README.md | 14 +++++++++----- ente/config.yaml | 6 +----- ente/rootfs/etc/cont-init.d/99-run.sh | 16 +++------------- 4 files changed, 17 insertions(+), 23 deletions(-) diff --git a/ente/CHANGELOG.md b/ente/CHANGELOG.md index c6f54eda1c..c1322e726d 100644 --- a/ente/CHANGELOG.md +++ b/ente/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.4.22-3 (04-06-2026) +- Remove DISABLE_WEB_UI option, web UI is now always enabled +- Make MinIO internal-only (127.0.0.1) since museum proxies S3 operations + ## 4.4.22-2 (04-06-2026) - Minor bugs fixed diff --git a/ente/README.md b/ente/README.md index 6efbd71226..e1c18ce4c5 100644 --- a/ente/README.md +++ b/ente/README.md @@ -58,7 +58,6 @@ Webui can be found at . | `MINIO_ROOT_PASSWORD` | str | `minioadmin` | MinIO root password | | `MINIO_DATA_LOCATION` | str | `/config/minio-data` | Path where MinIO stores data | | `DB_PASSWORD` | str | `ente` | Database password for internal PostgreSQL | -| `DISABLE_WEB_UI` | bool | `true` | Disable the web UI (use mobile/desktop apps) | | `USE_EXTERNAL_DB` | bool | `false` | Use external PostgreSQL database | | `TZ` | str | `Europe/Paris` | Timezone setting | @@ -81,7 +80,6 @@ MINIO_ROOT_USER: "myuser" MINIO_ROOT_PASSWORD: "mypassword" MINIO_DATA_LOCATION: "/config/ente-storage" DB_PASSWORD: "securepassword" -DISABLE_WEB_UI: false TZ: "America/New_York" ``` @@ -137,11 +135,17 @@ After starting the addon for the first time: ## Ports -The addon exposes three ports: +The addon exposes the following ports: -- **8300** (3000/tcp): Ente web UI (if enabled) +- **8300** (3000/tcp): Ente web UI +- **8305** (3005/tcp): Ente Share +- **8306** (3006/tcp): Ente Embed +- **8307** (3007/tcp): Ente Paste +- **8308** (3008/tcp): Ente Locker +- **8309** (3009/tcp): Ente Memories - **8280** (8080/tcp): Ente API server (museum) - Main endpoint for apps -- **8320** (3200/tcp): MinIO S3 endpoint (for storage backend) + +MinIO S3 is internal-only (127.0.0.1:3200) and not exposed externally since museum proxies all S3 operations. ## Data Storage diff --git a/ente/config.yaml b/ente/config.yaml index f539aa27db..462d5d6c05 100644 --- a/ente/config.yaml +++ b/ente/config.yaml @@ -78,7 +78,6 @@ name: Ente options: env_vars: [] DB_PASSWORD: ente - DISABLE_WEB_UI: false ENTE_ENDPOINT_URL: http://homeassistant.local:8280 MINIO_DATA_LOCATION: /config/minio-data MINIO_ROOT_PASSWORD: minioadmin @@ -92,7 +91,6 @@ ports: 3007/tcp: 8307 3008/tcp: 8308 3009/tcp: 8309 - 3200/tcp: 8320 8080/tcp: 8280 ports_description: 3000/tcp: Ente web UI @@ -101,7 +99,6 @@ ports_description: 3007/tcp: Ente Paste 3008/tcp: Ente Locker 3009/tcp: Ente Memories - 3200/tcp: MinIO S3 endpoint 8080/tcp: Ente API (museum) privileged: - SYS_ADMIN @@ -115,7 +112,6 @@ schema: DB_PASSWORD: str DB_PORT: int? DB_USERNAME: str? - DISABLE_WEB_UI: bool? ENTE_ENDPOINT_URL: str MINIO_DATA_LOCATION: str MINIO_ROOT_PASSWORD: str @@ -130,6 +126,6 @@ schema: slug: ente udev: true url: https://github.com/alexbelgium/hassio-addons -version: "4.4.22-2" +version: "4.4.22-3" video: true webui: http://[HOST]:[PORT:3000] diff --git a/ente/rootfs/etc/cont-init.d/99-run.sh b/ente/rootfs/etc/cont-init.d/99-run.sh index 8226bfd542..be1c8f4ce6 100755 --- a/ente/rootfs/etc/cont-init.d/99-run.sh +++ b/ente/rootfs/etc/cont-init.d/99-run.sh @@ -9,7 +9,7 @@ S3_BUCKET="b2-eu-cen" export ENTE_S3_ARE_LOCAL_BUCKETS=true export ENTE_S3_B2_EU_CEN_KEY="$MINIO_USER" export ENTE_S3_B2_EU_CEN_SECRET="$MINIO_PASS" -export ENTE_S3_B2_EU_CEN_ENDPOINT="http://192.168.178.23:$(bashio::addon.port "3200")" +export ENTE_S3_B2_EU_CEN_ENDPOINT="http://127.0.0.1:3200" export ENTE_S3_B2_EU_CEN_REGION=eu-central-2 export ENTE_S3_B2_EU_CEN_BUCKET="$S3_BUCKET" @@ -42,11 +42,6 @@ else bashio::log.info "Using internal Postgres." fi -DISABLE_WEB_UI=false -if bashio::config.true 'DISABLE_WEB_UI'; then - DISABLE_WEB_UI=true -fi - # Active DB connection target (may be overridden below) if $USE_EXTERNAL_DB; then DB_HOST="$DB_HOST_EXT" @@ -186,9 +181,9 @@ bootstrap_internal_db() { # MinIO ############################################ start_minio() { - bashio::log.info "Starting MinIO (:3200)..." + bashio::log.info "Starting MinIO (127.0.0.1:3200)..." mkdir -p /config/minio-data - "$MINIO_BIN" server /config/minio-data --address ":3200" & + "$MINIO_BIN" server /config/minio-data --address "127.0.0.1:3200" & MINIO_PID=$! } @@ -206,11 +201,6 @@ wait_minio_ready_and_bucket() { # Web (static nginx bundle) ############################################ start_web() { - if $DISABLE_WEB_UI; then - bashio::log.info "Web UI disabled." - return 0 - fi - ENTE_API_ORIGIN=http://localhost:8080 ENTE_ALBUMS_ORIGIN=http://localhost:3002 export ENTE_API_ORIGIN ENTE_ALBUMS_ORIGIN From 89df640115926100a6f93b488bedc0ac72210696 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Jun 2026 12:57:34 +0000 Subject: [PATCH 3/3] fix(ente): fix API origin for web UI, remove dead options, hardcode MinIO creds --- ente/CHANGELOG.md | 3 +++ ente/README.md | 8 +------- ente/config.yaml | 6 ------ ente/rootfs/etc/cont-init.d/99-run.sh | 11 ++++++----- 4 files changed, 10 insertions(+), 18 deletions(-) diff --git a/ente/CHANGELOG.md b/ente/CHANGELOG.md index c1322e726d..dbd56d163f 100644 --- a/ente/CHANGELOG.md +++ b/ente/CHANGELOG.md @@ -1,6 +1,9 @@ ## 4.4.22-3 (04-06-2026) - Remove DISABLE_WEB_UI option, web UI is now always enabled - Make MinIO internal-only (127.0.0.1) since museum proxies S3 operations +- Fix web UI API origin: use ENTE_ENDPOINT_URL so browsers can reach the API +- Hardcode MinIO credentials internally (no longer user-configurable) +- Remove dead options: MINIO_DATA_LOCATION, MINIO_ROOT_USER, MINIO_ROOT_PASSWORD ## 4.4.22-2 (04-06-2026) - Minor bugs fixed diff --git a/ente/README.md b/ente/README.md index e1c18ce4c5..002eadca90 100644 --- a/ente/README.md +++ b/ente/README.md @@ -53,10 +53,7 @@ Webui can be found at . | Option | Type | Default | Description | |--------|------|---------|-------------| -| `ENTE_ENDPOINT_URL` | str | `http://homeassistant.local:8280` | The URL where Ente API will be accessible | -| `MINIO_ROOT_USER` | str | `minioadmin` | MinIO root username | -| `MINIO_ROOT_PASSWORD` | str | `minioadmin` | MinIO root password | -| `MINIO_DATA_LOCATION` | str | `/config/minio-data` | Path where MinIO stores data | +| `ENTE_ENDPOINT_URL` | str | `http://homeassistant.local:8280` | The URL where Ente API will be accessible (used by web UI) | | `DB_PASSWORD` | str | `ente` | Database password for internal PostgreSQL | | `USE_EXTERNAL_DB` | bool | `false` | Use external PostgreSQL database | | `TZ` | str | `Europe/Paris` | Timezone setting | @@ -76,9 +73,6 @@ If you want to use an external PostgreSQL database, set `USE_EXTERNAL_DB: true` ```yaml ENTE_ENDPOINT_URL: "http://homeassistant.local:8280" -MINIO_ROOT_USER: "myuser" -MINIO_ROOT_PASSWORD: "mypassword" -MINIO_DATA_LOCATION: "/config/ente-storage" DB_PASSWORD: "securepassword" TZ: "America/New_York" ``` diff --git a/ente/config.yaml b/ente/config.yaml index 462d5d6c05..42387e62cf 100644 --- a/ente/config.yaml +++ b/ente/config.yaml @@ -79,9 +79,6 @@ options: env_vars: [] DB_PASSWORD: ente ENTE_ENDPOINT_URL: http://homeassistant.local:8280 - MINIO_DATA_LOCATION: /config/minio-data - MINIO_ROOT_PASSWORD: minioadmin - MINIO_ROOT_USER: minioadmin TZ: Europe/Paris USE_EXTERNAL_DB: false ports: @@ -113,9 +110,6 @@ schema: DB_PORT: int? DB_USERNAME: str? ENTE_ENDPOINT_URL: str - MINIO_DATA_LOCATION: str - MINIO_ROOT_PASSWORD: str - MINIO_ROOT_USER: str TZ: str? USE_EXTERNAL_DB: bool? cifsdomain: str? diff --git a/ente/rootfs/etc/cont-init.d/99-run.sh b/ente/rootfs/etc/cont-init.d/99-run.sh index be1c8f4ce6..a2783e5d5e 100755 --- a/ente/rootfs/etc/cont-init.d/99-run.sh +++ b/ente/rootfs/etc/cont-init.d/99-run.sh @@ -2,8 +2,9 @@ # shellcheck shell=bash set -euo pipefail -MINIO_USER="$(bashio::config 'MINIO_ROOT_USER')" -MINIO_PASS="$(bashio::config 'MINIO_ROOT_PASSWORD')" +# Internal MinIO credentials (not user-configurable; MinIO is 127.0.0.1 only) +MINIO_USER="minioadmin" +MINIO_PASS="minioadmin" S3_BUCKET="b2-eu-cen" export ENTE_S3_ARE_LOCAL_BUCKETS=true @@ -201,8 +202,8 @@ wait_minio_ready_and_bucket() { # Web (static nginx bundle) ############################################ start_web() { - ENTE_API_ORIGIN=http://localhost:8080 - ENTE_ALBUMS_ORIGIN=http://localhost:3002 + ENTE_API_ORIGIN="$(bashio::config 'ENTE_ENDPOINT_URL')" + ENTE_ALBUMS_ORIGIN="http://localhost:3002" export ENTE_API_ORIGIN ENTE_ALBUMS_ORIGIN # Running ente-web-prepare @@ -216,7 +217,7 @@ start_web() { mv /etc/nginx/http.d/web.bak /etc/nginx/http.d/web.conf bashio::log.info "Starting Ente web (nginx, ports 3000‑3009)..." - exec nginx -g 'daemon off;' & + nginx -g 'daemon off;' & WEB_PID=$! }