Fix httpPorts host detection

This commit is contained in:
Andreas Dueren
2025-11-04 18:09:21 -06:00
parent c9e554c9a8
commit 953ee82a97
4 changed files with 12 additions and 3 deletions

View File

@@ -9,14 +9,14 @@ cloudron build \
--set-build-service builder.docker.due.ren \
--build-service-token e3265de06b1d0e7bb38400539012a8433a74c2c96a17955e \
--set-repository andreasdueren/ente-cloudron \
--tag 0.5.0
--tag 0.5.1
```
## Install
```bash
cloudron install \
--location ente.due.ren \
--image andreasdueren/ente-cloudron:0.5.0
--image andreasdueren/ente-cloudron:0.5.1
```
## After Install

View File

@@ -1,5 +1,9 @@
# Changelog
## 0.5.1 (2025-11-05)
* Fix `httpPorts` host detection so accounts/cast/family/albums subdomains serve their static frontends again
## 0.5.0 (2025-11-04)
* Proxy Museum GET/HEAD routes (e.g. `/collections`, `/files`, `/remote-store`) so clients that talk to the primary host without `/api` still hit the backend

View File

@@ -7,7 +7,7 @@
"contactEmail": "contact@ente.io",
"website": "https://ente.io",
"tagline": "Open source, end-to-end encrypted photo backup",
"version": "0.5.0",
"version": "0.5.1",
"upstreamVersion": "git-main",
"healthCheckPath": "/health",
"httpPort": 3080,

View File

@@ -22,6 +22,11 @@ resolve_http_hostname() {
value="$(printenv "$alt_varname" 2>/dev/null || true)"
fi
if [ -z "$value" ]; then
local bare_varname="${env_key}"
value="$(printenv "$bare_varname" 2>/dev/null || true)"
fi
if [ -z "$value" ]; then
if [ "$APP_FQDN" = "localhost" ]; then
printf '%s\n' "$APP_FQDN"