Commit Graph

22 Commits

Author SHA1 Message Date
Dorian
abb83fe164 Bump CACHEBUST to v8 for backend and frontend rebuilds; update Nginx and NostrAuthGuard to handle X-Forwarded-Prefix for NIP-98 compliance 2026-02-13 20:20:32 +00:00
Dorian
dea2d2e768 Bump CACHEBUST to v7 to force rebuild with payment_methods fix
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 20:08:36 +00:00
Dorian
4f7fdd4413 Fix missing payment_methods table creation + bump CACHEBUST to v6
Migration AddedWithdrawalFrequency1733770884555 referenced payment_methods
table that was never created. Modified to CREATE TABLE IF NOT EXISTS with
all columns, then drop lightning_address from filmmakers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 19:47:46 +00:00
Dorian
34c48d9f6e Fix apostrophe in Children's Animation migration + bump CACHEBUST to v5
Escape single quote in seed-episodic-subgenres migration that caused
"column Children's Animation does not exist" PostgreSQL error.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 19:34:31 +00:00
Dorian
f52e7dda7e Bump CACHEBUST to v4 to force backend rebuild with migration fixes
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 19:13:59 +00:00
Dorian
20718c547e Remove image tags that cause Portainer pull failures
Portainer tries to pull named images from Docker Hub before building.
Removing image: tags so it builds directly from Dockerfiles. The
CACHEBUST build arg handles cache invalidation.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 18:41:21 +00:00
Dorian
82a5c0a5cf Fix entity-based migrations that crash on missing columns
MusicVideosUpdate and AddEpisodicGenres migrations used TypeORM
entity classes which reference columns that don't exist at their
migration timestamp (e.g. trailer_old, later entity fields).
Rewrote both to use raw SQL INSERT/UPDATE statements.

Also bumped CACHEBUST to v3 to force backend image rebuild.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 18:30:37 +00:00
Dorian
eeffce4baa Add versioned image tags to force Portainer to rebuild images
Docker was reusing old cached images even on redeploy. By adding
explicit image names with version tags (e.g. indeehub-app:v2),
Docker must build new images since the old ones had no tag or a
different tag. Bump the version (v2 -> v3) to force future rebuilds.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 18:11:51 +00:00
Dorian
bb281b488b Add CACHEBUST build arg to force Docker image rebuilds
Docker's build cache was preventing Portainer from picking up
code changes. Adding a CACHEBUST ARG before COPY invalidates
all subsequent layers when the value changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 18:05:40 +00:00
Dorian
330345c1ac Hardcode postgres healthcheck user to avoid variable substitution issues
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 17:54:46 +00:00
Dorian
e9c5c50ca3 Remove MinIO console port mapping to avoid host port conflicts
The MinIO S3 API is accessed internally via the Docker network.
The admin console is not needed externally and was causing
port 9001 conflicts with other services on the host.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 17:50:37 +00:00
Dorian
a66842d771 Update environment variables and refactor Docker configurations for improved deployment
- Revised .env.portainer to update sensitive credentials and streamline comments for clarity.
- Adjusted docker-compose.yml to remove unnecessary variable references, enhancing readability and maintainability.
- Updated VideoPlayer component to improve type handling and refactor seeking logic for better performance.
- Enhanced library service to include providerId in the rentContent method for improved data handling.
- Refactored auth store to integrate account management functionality.
- Cleaned up ProjectEditor and Settings views by removing unused computed properties and refining method types.
2026-02-13 16:40:10 +00:00
Dorian
a8dc82dc59 Update environment variables and enhance Docker configurations for improved deployment
- Modified .env.portainer to include new environment variables for S3 private bucket URL, Nostr JWT secrets, and SendGrid options.
- Updated docker-compose.yml to support the new environment variables, enhancing service configurations.
- Added a seed content script to the backend package.json for initializing the database with sample data.
- Refactored helper functions to construct S3 URLs more robustly, accommodating potential missing configurations.
- Enhanced dev.sh script to seed the database if empty, ensuring content availability during development.
2026-02-13 16:27:51 +00:00
Dorian
3ca43b62e4 Enhance Docker and backend configurations for improved deployment
- Updated docker-compose.yml to include environment variable support for services, enhancing flexibility in configuration.
- Refactored Dockerfile to utilize build arguments for VITE environment variables, allowing for better customization during builds.
- Improved Nginx configuration to handle larger video uploads by increasing client_max_body_size to 5GB.
- Enhanced backend Dockerfile to include wget for health checks and improved startup logging for database migrations.
- Added validation for critical environment variables in the backend to ensure necessary configurations are present before application startup.
- Updated content streaming logic to support direct HLS URL construction, improving streaming reliability and user experience.
- Refactored various components and services to streamline access checks and improve error handling during content playback.
2026-02-13 12:35:03 +00:00
Dorian
cdd24a5def Implement backend API and database services in Docker setup
- Added a new `api` service for the NestJS backend, including health checks and dependencies on PostgreSQL, Redis, and MinIO.
- Introduced PostgreSQL and Redis services with health checks and configurations for data persistence.
- Added MinIO for S3-compatible object storage and a one-shot service to initialize required buckets.
- Updated the Nginx configuration to proxy requests to the new backend API and MinIO storage.
- Enhanced the Dockerfile to support the new API environment variables and configurations.
- Updated the `package.json` and `package-lock.json` to include new dependencies for QR code generation and other utilities.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 20:14:39 +00:00
Dorian
dd4d5e99a4 Fix seeder: skip heavy devDeps, decouple app from seeder success
- Use npm ci --omit=dev to avoid building sharp (needs native libvips
  not available on Alpine) then install tsx separately
- Change app depends_on from seeder (service_completed_successfully)
  to relay only, so the app still starts even if seeding fails

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 12:56:31 +00:00
Dorian
42bd54783a Remove container_name from docker-compose to fix redeploy conflicts
Portainer fails to redeploy when the old containers still exist
with the same hardcoded names. Letting Compose auto-name them
based on the stack/project avoids the conflict.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 12:50:02 +00:00
Dorian
0a7543cf32 Add Nostr relay + seed data to Docker deployment
- Add nostr-rs-relay service to docker-compose for persistent
  comments, reactions, and profiles on the dev server
- Add one-shot seeder container that auto-populates the relay
  with test personas, reactions, and comments on first deploy
- Proxy WebSocket connections through nginx at /relay so the
  frontend connects to the relay on the same host (no CORS)
- Make relay URL dynamic: reads from VITE_NOSTR_RELAYS in dev,
  auto-detects /relay proxy path in production Docker builds
- Make seed scripts configurable via RELAY_URL and ORIGIN env vars
- Add wait-for-relay script for reliable container orchestration
- Add "Resume last played" hero banner on My List tab

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 12:33:22 +00:00
Dorian
a61da35357 Fix health check - use curl instead of wget
Issues fixed:
1. Removed duplicate health check from Dockerfile (docker-compose overrides it)
2. Switched from wget to curl (more reliable in alpine)
3. Installed curl in the Docker image
4. Simplified health check command

The health check now properly tests if Nginx is serving content on port 7777.
Container should show as healthy after 40s start period.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-03 00:22:04 +00:00
Dorian
3f99aaec43 Fix Docker health check - use root path instead of /health
The health check was failing because /health endpoint doesn't exist.
Changed to check the root path (/) which serves the Vue app.
This should prevent the container from restarting.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-03 00:16:18 +00:00
Dorian
04926961b7 Fix Docker image pull error by removing image tag
- Remove 'image: indeedhub-prototype:latest' line
- Force Docker to build from Dockerfile instead of trying to pull
- Fixes Portainer deployment error: 'pull access denied'

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-02 23:57:04 +00:00
Dorian
3f3849e76f Add Docker deployment support and PWA enhancements
- Add Dockerfile with multi-stage build (Node.js + Nginx)
- Add docker-compose.yml for Portainer stack deployment on port 7777
- Add nginx.conf with PWA support, gzip compression, and security headers
- Add .dockerignore for optimized Docker builds
- Add DEPLOYMENT.md with comprehensive deployment guide
- Configure Vite PWA plugin with service worker and offline support
- Add PWA manifest.json with app icons and shortcuts
- Enhance logo.svg with iOS-style glass effects (filters, gradients, highlights)
- Add app-icon.svg for PWA installation
- Update mobile nav with glassmorphic active tab styling
- Fix mobile tab bar layout shift issues with flex-1 and consistent sizing
- Update index.html with PWA meta tags and Apple-specific settings
- Add health check endpoint at /health for container monitoring

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-02 23:43:42 +00:00