Implement comprehensive web app API endpoint fix

- Patch origins.ts during Docker build to use window.location.origin + '/api'
- Update version to 0.1.69 to force rebuild
- Add browser compatibility check for server-side rendering
- Fix both API and uploader endpoint redirections

This addresses the root cause where web apps were hardcoded to use
https://api.ente.io instead of the local Museum server.
This commit is contained in:
2025-07-25 19:27:11 -06:00
parent c4c674b4d0
commit 1df089cd21
5 changed files with 56 additions and 7 deletions

View File

@@ -152,9 +152,9 @@ email:
# WebAuthn configuration for passkey support
webauthn:
rpid: "${CLOUDRON_APP_FQDN:-localhost}"
rpid: "${CLOUDRON_APP_DOMAIN:-localhost}"
rporigins:
- "https://${CLOUDRON_APP_FQDN:-localhost}"
- "https://${CLOUDRON_APP_DOMAIN:-localhost}"
EOF
chmod 600 "$MUSEUM_CONFIG"
log "INFO" "Created Museum configuration at ${MUSEUM_CONFIG}"