Commit Graph

119 Commits

Author SHA1 Message Date
f20a55768b Add Caddy handler for static image assets 2025-10-21 22:04:39 -06:00
aaee86823e 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
2025-10-21 20:56:27 -06:00
6d3aaf7277 Fix redirect loop by setting NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT
The app was redirecting to /shared-albums because albumsAppOrigin()
returned the same host as the current URL after runtime replacement.
By setting NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT at build time to a
placeholder and replacing it at runtime with the full path-based URL,
the host comparison will fail and prevent the redirect loop.

Version bump to 0.3.1
2025-10-21 20:29:46 -06:00
98c8185655 Improve URL replacement strategy for frontend assets
- Enhanced rewrite_frontend_reference function to handle multiple URL encoding formats
- Now replaces plain URLs, backslash-escaped URLs, and double-backslash-escaped URLs
- Added https://ente.io -> BASE_URL replacement
- Version bump to 0.3.0
2025-10-21 19:58:39 -06:00
00d7269e00 Fix Ente Cloudron packaging issues
- Fixed admin-helper.sh to use correct Museum binary path (/app/museum-bin/museum)
- Updated start.sh to handle missing S3 configuration gracefully
  - App now starts in configuration mode when S3 is not configured
  - Shows helpful configuration page instead of failing health checks
  - Properly starts Museum server once S3 is configured
- Updated CloudronManifest.json to version 0.2.2
- All web frontends (photos, accounts, auth, cast, albums, family) verified working
- Museum API server running successfully with S3 storage
2025-10-21 19:20:15 -06:00
801ae12029 Auto-configure CLI endpoint 2025-09-30 09:34:25 -06:00
2ccc6bd65c Persist Museum configuration for manual edits 2025-09-29 22:36:37 -06:00
5d2e5919b1 Make Ente CLI usable out of the box 2025-09-29 22:05:24 -06:00
1d16c17c35 Bundle Ente CLI for Cloudron console 2025-09-29 21:37:33 -06:00
760a4ba44a Remove OTT log highlighter 2025-09-29 21:26:21 -06:00
5d62c2de4f Document S3 examples and refresh template 2025-09-29 21:18:19 -06:00
65717243a5 Allow runtime S3 configuration overrides 2025-09-29 20:59:57 -06:00
8f94e35bf5 Fix SPA asset routing for web apps 2025-09-29 20:47:07 -06:00
3785b3b4d1 Force rebuild: Update asset routing with version bump 2025-08-01 14:02:07 -06:00
762d594e80 Fix static asset routing for all web apps
- Add specific _next asset routes for accounts, auth, cast apps
- Add image asset routes for each app
- Ensure each app's assets are served from correct directory
- Keep photos app routing unchanged

Should fix accounts/auth/cast apps loading issues.
2025-08-01 13:55:53 -06:00
0f80f13d50 Resolve merge conflicts with updated version 0.1.79 2025-08-01 13:46:59 -06:00
e60248cf80 Fix API endpoint configuration and domain references
- Change NEXT_PUBLIC_ENTE_ENDPOINT to relative /api for domain flexibility
- Remove runtime JS endpoint replacement (fragile, now unnecessary)
- Fix all domain references to use CLOUDRON_APP_DOMAIN consistently
- Add /ping health check endpoint to Caddy configuration
- Update placeholder server to use dynamic domain

Photos app now working, other apps may need additional fixes.
2025-08-01 13:46:17 -06:00
bc5013f160 Fix web app endpoint configuration
- Use relative /api endpoint in Dockerfile build
- Remove complex runtime replacement logic
- Simplify start.sh to avoid read-only filesystem issues
- Restore working Caddy configuration

Version 0.1.78 ready for deployment
2025-07-26 20:28:15 -06:00
1df089cd21 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.
2025-07-25 19:27:11 -06:00
c4c674b4d0 Fix static asset routing and path handling for auth/accounts/cast apps
- Fixed Next.js static asset (_next/*) routing for each app separately
- Updated app path handling to work with both /app and /app/* patterns
- Resolved 404 errors for static assets from auth, accounts, and cast apps
- Updated to version 0.1.66
2025-07-25 11:12:27 -06:00
1e2cc6c64a Add comprehensive API documentation to Cloudron setup instructions
- Added detailed API endpoint information in SETUP-INSTRUCTIONS.md
- Documented API usage with Ente CLI
- Enhanced routing configuration for auth/cast/accounts apps
- Updated to version 0.1.64
2025-07-25 11:02:06 -06:00
4af60e1c64 Fix JavaScript URL construction error for API endpoint
- Change NEXT_PUBLIC_ENTE_ENDPOINT from "/api" to "https://example.com/api" during build to satisfy URL constructor requirements
- Add runtime replacement in start.sh to replace placeholder with actual domain endpoint
- This resolves the "TypeError: Failed to construct 'URL': Invalid URL" error in the frontend
2025-07-22 08:58:53 -06:00
9f89dd330f Fix S3 configuration - set are_local_buckets to true
- Changed are_local_buckets from false to true (required for external S3)
- Simplified S3 configuration to only use b2-eu-cen bucket
- Removed unnecessary replication buckets for single bucket setup

This aligns with Ente's documentation where are_local_buckets=true
is used for external S3 services like Wasabi.
2025-07-21 20:44:19 -06:00
89fd59f6a3 Hardcode Wasabi S3 configuration with proper Ente format
- Remove dynamic S3 configuration loading
- Hardcode Wasabi credentials as requested
- Use proper Ente S3 configuration format with datacenter names
- Configure all three storage buckets (b2-eu-cen, wasabi-eu-central-2-v3, scw-eu-fr-v3)
- Set are_local_buckets to false for external S3
- Add compliance flag for Wasabi bucket

This should fix the MissingRegion error by properly configuring S3 storage
according to Ente's expected format.
2025-07-21 20:41:58 -06:00
b849e1d41a Fix port conflict between Museum server and Caddy
- Changed Museum server to run on port 8080 instead of 3080
- Updated all health check URLs to use port 8080
- Updated Caddy reverse proxy to forward API requests to port 8080
- Added clarifying comment about port usage

This resolves the circular reference where both Caddy and Museum were trying to use port 3080.
2025-07-21 17:18:51 -06:00
7986a0a58b Complete rewrite of Ente Cloudron app with cleaner architecture 2025-03-20 17:52:23 +01:00
5abfa15d93 Fix syntax error in validate_binary function 2025-03-20 17:38:20 +01:00
af89daf278 Fix Museum binary validation and add Node.js fallback server 2025-03-20 17:29:12 +01:00
f2116a5dbf Remove Node.js placeholder server completely and use actual Museum server 2025-03-20 17:14:12 +01:00
fbfcb82f2c Enhance Node.js placeholder server with more API endpoints and improve user experience 2025-03-20 17:07:47 +01:00
c5f631043b Fix Museum server binary issues using Docker approach 2025-03-20 16:35:30 +01:00
f267b44f63 Fix Museum server binary issues and add Node.js fallback 2025-03-20 16:19:31 +01:00
ec0950463b Replace Node.js placeholder with actual Museum server 2025-03-20 16:10:30 +01:00
321556f611 Fix infinite loop and implement reliable Node.js placeholder server 2025-03-20 16:03:16 +01:00
58a6d329be Fix infinite loop and implement reliable Node.js placeholder server 2025-03-20 15:59:51 +01:00
8fe05f6c47 Fix Go build environment and frontend URLs 2025-03-20 15:52:35 +01:00
20fe2bc96f Fix GitHub download URLs and implement placeholder server on port 3080 2025-03-20 15:41:24 +01:00
415be71ecf Fix GitHub download issues and provide fallback servers 2025-03-20 15:37:05 +01:00
593048373f Fix GitHub credentials issue, support s3.env, and ensure Caddy properly starts on port 3080 2025-03-20 15:33:49 +01:00
2ffd41cbad Add extensive debugging and more resilient startup 2025-03-20 15:29:43 +01:00
2d79243bb7 Remove mock server components and install real Ente server 2025-03-20 15:12:30 +01:00
cdd6860521 Fix directory creation for static assets and web app files 2025-03-20 14:48:06 +01:00
263498c66d Implement comprehensive SRP Buffer polyfill to fix verification errors 2025-03-20 14:40:50 +01:00
049ed4aa49 Implement Caddy for web app serving and fix OTP verification issues 2025-03-20 14:32:26 +01:00
e50a34747e Add browser compatibility fixes for URL constructor and Node.js functions 2025-03-20 14:18:30 +01:00
6596c652de Fix URL construction error and update verification endpoint with proper schema 2025-03-20 13:54:41 +01:00
a94cd3de7f Replace Go mock server with Node.js implementation for better reliability 2025-03-20 13:45:58 +01:00
14842b8f4f Completely refactored startup script for proper museum server integration 2025-03-20 13:36:52 +01:00
70f0d8e419 Fix API server and URL handling for frontend connectivity 2025-03-20 13:22:13 +01:00
6c2646d093 Fix mock API server initialization and unbound variable issues 2025-03-20 13:04:11 +01:00