mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-23 22:40:33 +02:00
fix(ente): fix API origin for web UI, remove dead options, hardcode MinIO creds
This commit is contained in:
committed by
GitHub
parent
1cf986a885
commit
89df640115
@@ -1,6 +1,9 @@
|
|||||||
## 4.4.22-3 (04-06-2026)
|
## 4.4.22-3 (04-06-2026)
|
||||||
- Remove DISABLE_WEB_UI option, web UI is now always enabled
|
- Remove DISABLE_WEB_UI option, web UI is now always enabled
|
||||||
- Make MinIO internal-only (127.0.0.1) since museum proxies S3 operations
|
- 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)
|
## 4.4.22-2 (04-06-2026)
|
||||||
- Minor bugs fixed
|
- Minor bugs fixed
|
||||||
|
|||||||
@@ -53,10 +53,7 @@ Webui can be found at <http://homeassistant:PORT>.
|
|||||||
|
|
||||||
| Option | Type | Default | Description |
|
| Option | Type | Default | Description |
|
||||||
|--------|------|---------|-------------|
|
|--------|------|---------|-------------|
|
||||||
| `ENTE_ENDPOINT_URL` | str | `http://homeassistant.local:8280` | The URL where Ente API will be accessible |
|
| `ENTE_ENDPOINT_URL` | str | `http://homeassistant.local:8280` | The URL where Ente API will be accessible (used by web UI) |
|
||||||
| `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 |
|
|
||||||
| `DB_PASSWORD` | str | `ente` | Database password for internal PostgreSQL |
|
| `DB_PASSWORD` | str | `ente` | Database password for internal PostgreSQL |
|
||||||
| `USE_EXTERNAL_DB` | bool | `false` | Use external PostgreSQL database |
|
| `USE_EXTERNAL_DB` | bool | `false` | Use external PostgreSQL database |
|
||||||
| `TZ` | str | `Europe/Paris` | Timezone setting |
|
| `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
|
```yaml
|
||||||
ENTE_ENDPOINT_URL: "http://homeassistant.local:8280"
|
ENTE_ENDPOINT_URL: "http://homeassistant.local:8280"
|
||||||
MINIO_ROOT_USER: "myuser"
|
|
||||||
MINIO_ROOT_PASSWORD: "mypassword"
|
|
||||||
MINIO_DATA_LOCATION: "/config/ente-storage"
|
|
||||||
DB_PASSWORD: "securepassword"
|
DB_PASSWORD: "securepassword"
|
||||||
TZ: "America/New_York"
|
TZ: "America/New_York"
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -79,9 +79,6 @@ options:
|
|||||||
env_vars: []
|
env_vars: []
|
||||||
DB_PASSWORD: ente
|
DB_PASSWORD: ente
|
||||||
ENTE_ENDPOINT_URL: http://homeassistant.local:8280
|
ENTE_ENDPOINT_URL: http://homeassistant.local:8280
|
||||||
MINIO_DATA_LOCATION: /config/minio-data
|
|
||||||
MINIO_ROOT_PASSWORD: minioadmin
|
|
||||||
MINIO_ROOT_USER: minioadmin
|
|
||||||
TZ: Europe/Paris
|
TZ: Europe/Paris
|
||||||
USE_EXTERNAL_DB: false
|
USE_EXTERNAL_DB: false
|
||||||
ports:
|
ports:
|
||||||
@@ -113,9 +110,6 @@ schema:
|
|||||||
DB_PORT: int?
|
DB_PORT: int?
|
||||||
DB_USERNAME: str?
|
DB_USERNAME: str?
|
||||||
ENTE_ENDPOINT_URL: str
|
ENTE_ENDPOINT_URL: str
|
||||||
MINIO_DATA_LOCATION: str
|
|
||||||
MINIO_ROOT_PASSWORD: str
|
|
||||||
MINIO_ROOT_USER: str
|
|
||||||
TZ: str?
|
TZ: str?
|
||||||
USE_EXTERNAL_DB: bool?
|
USE_EXTERNAL_DB: bool?
|
||||||
cifsdomain: str?
|
cifsdomain: str?
|
||||||
|
|||||||
@@ -2,8 +2,9 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
MINIO_USER="$(bashio::config 'MINIO_ROOT_USER')"
|
# Internal MinIO credentials (not user-configurable; MinIO is 127.0.0.1 only)
|
||||||
MINIO_PASS="$(bashio::config 'MINIO_ROOT_PASSWORD')"
|
MINIO_USER="minioadmin"
|
||||||
|
MINIO_PASS="minioadmin"
|
||||||
S3_BUCKET="b2-eu-cen"
|
S3_BUCKET="b2-eu-cen"
|
||||||
|
|
||||||
export ENTE_S3_ARE_LOCAL_BUCKETS=true
|
export ENTE_S3_ARE_LOCAL_BUCKETS=true
|
||||||
@@ -201,8 +202,8 @@ wait_minio_ready_and_bucket() {
|
|||||||
# Web (static nginx bundle)
|
# Web (static nginx bundle)
|
||||||
############################################
|
############################################
|
||||||
start_web() {
|
start_web() {
|
||||||
ENTE_API_ORIGIN=http://localhost:8080
|
ENTE_API_ORIGIN="$(bashio::config 'ENTE_ENDPOINT_URL')"
|
||||||
ENTE_ALBUMS_ORIGIN=http://localhost:3002
|
ENTE_ALBUMS_ORIGIN="http://localhost:3002"
|
||||||
export ENTE_API_ORIGIN ENTE_ALBUMS_ORIGIN
|
export ENTE_API_ORIGIN ENTE_ALBUMS_ORIGIN
|
||||||
|
|
||||||
# Running ente-web-prepare
|
# Running ente-web-prepare
|
||||||
@@ -216,7 +217,7 @@ start_web() {
|
|||||||
mv /etc/nginx/http.d/web.bak /etc/nginx/http.d/web.conf
|
mv /etc/nginx/http.d/web.bak /etc/nginx/http.d/web.conf
|
||||||
|
|
||||||
bashio::log.info "Starting Ente web (nginx, ports 3000‑3009)..."
|
bashio::log.info "Starting Ente web (nginx, ports 3000‑3009)..."
|
||||||
exec nginx -g 'daemon off;' &
|
nginx -g 'daemon off;' &
|
||||||
WEB_PID=$!
|
WEB_PID=$!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user