Fix redirect loop by using dummy albums domain
Instead of trying to match the albums host with current host (which always fails in path-based routing), use a dummy domain 'albums.localhost.invalid' that will never match the actual host. This prevents the automatic redirect to /shared-albums. Version bump to 0.3.2 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
"contactEmail": "contact@ente.io",
|
"contactEmail": "contact@ente.io",
|
||||||
"website": "https://ente.io",
|
"website": "https://ente.io",
|
||||||
"tagline": "Open source, end-to-end encrypted photo backup",
|
"tagline": "Open source, end-to-end encrypted photo backup",
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"upstreamVersion": "git-main",
|
"upstreamVersion": "git-main",
|
||||||
"healthCheckPath": "/health",
|
"healthCheckPath": "/health",
|
||||||
"httpPort": 3080,
|
"httpPort": 3080,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ RUN go build -o /build/ente .
|
|||||||
|
|
||||||
FROM node:20-bookworm-slim AS web-builder
|
FROM node:20-bookworm-slim AS web-builder
|
||||||
ENV NEXT_PUBLIC_ENTE_ENDPOINT=ENTE_API_ORIGIN_PLACEHOLDER
|
ENV NEXT_PUBLIC_ENTE_ENDPOINT=ENTE_API_ORIGIN_PLACEHOLDER
|
||||||
ENV NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT=ENTE_ALBUMS_ORIGIN_PLACEHOLDER
|
ENV NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT=https://albums.localhost.invalid
|
||||||
COPY --from=ente-source /src /ente
|
COPY --from=ente-source /src /ente
|
||||||
WORKDIR /ente/web
|
WORKDIR /ente/web
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
|
|||||||
1
start.sh
1
start.sh
@@ -398,7 +398,6 @@ if [ -d "$WEB_RUNTIME_DIR" ]; then
|
|||||||
log INFO "Rewriting frontend endpoints for local deployment"
|
log INFO "Rewriting frontend endpoints for local deployment"
|
||||||
FRONTEND_REPLACEMENTS=(
|
FRONTEND_REPLACEMENTS=(
|
||||||
"ENTE_API_ORIGIN_PLACEHOLDER|$API_ORIGIN"
|
"ENTE_API_ORIGIN_PLACEHOLDER|$API_ORIGIN"
|
||||||
"ENTE_ALBUMS_ORIGIN_PLACEHOLDER|$BASE_URL/albums"
|
|
||||||
"https://api.ente.io|$API_ORIGIN"
|
"https://api.ente.io|$API_ORIGIN"
|
||||||
"https://accounts.ente.io|$BASE_URL/accounts"
|
"https://accounts.ente.io|$BASE_URL/accounts"
|
||||||
"https://auth.ente.io|$BASE_URL/auth"
|
"https://auth.ente.io|$BASE_URL/auth"
|
||||||
|
|||||||
Reference in New Issue
Block a user