Commit Graph

18 Commits

Author SHA1 Message Date
8cb56142cd Fix Cloudflare Worker compatibility for version endpoint
- Add version parameter to AppConfig interface
- Pass version from environment config instead of using process.env
- Update worker.ts to pass VERSION environment variable
- Update wrangler.toml with VERSION variable
- Update deploy script to automatically set VERSION to git commit hash

This fixes the 'process is not defined' error in Cloudflare Workers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-08 11:45:41 +01:00
d4aefb93b0 Move / endpoint to /topics and add version endpoint
- Move GET / to GET /topics for listing topics
- Add new GET / endpoint that returns server version (git commit hash)
- Update build.js to inject git commit hash as RONDEVU_VERSION
- Update API documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-08 11:34:54 +01:00
b89d281548 Add link to rondevu-demo repository
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-08 10:56:01 +01:00
101697d846 Add cross-links between related repositories
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-08 10:54:15 +01:00
b53dd67e71 Remove global origin option and update README
- Remove origin option from RondevuClientOptions and RondevuOptions
- Remove ConnectOptions interface with global flag
- Remove all customHeaders logic for origin override
- Update README with consistent Rondevu branding

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-08 10:52:04 +01:00
f9aa4b486d Add support for global origin via X-Rondevu-Global header
- Add getOrigin() helper function to check for X-Rondevu-Global header
- When X-Rondevu-Global: true, use https://ronde.vu as origin for session isolation
- Update all endpoints to use getOrigin() instead of reading Origin header directly
- Add X-Rondevu-Global to CORS allowed headers
- This enables browser clients to connect to global sessions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-07 23:50:47 +01:00
2bc6359b73 Include wrangler.toml in repository for CI/CD deployments
- Removed wrangler.toml from .gitignore
- Added wrangler.toml to repo (safe - no secrets)
- Database ID is not sensitive, protected by Cloudflare auth
- Fixes CI/CD deployment failures
2025-11-07 23:15:18 +01:00
9bc4c4d40e Fix deploy command to explicitly specify worker entry point
- Changed deploy to directly specify src/worker.ts
- Removed npm run build (not needed for Workers, wrangler bundles itself)
- Fixes CI/CD 'Missing entry-point' error
2025-11-07 23:12:43 +01:00
6909984892 Remove redundant --config wrangler.toml from deploy script in package.json 2025-11-07 23:10:49 +01:00
7b733df1e2 Fix wrangler deploy to specify config file location
- Added --config wrangler.toml flag to deploy script
- Fixes CI/CD deployment error: 'Missing entry-point to Worker script'
2025-11-07 23:07:25 +01:00
5d8a432de0 Add scheduled handler for cron-based session cleanup
- Implements scheduled() function to handle cron triggers
- Cleans up expired sessions every 5 minutes
- Fixes 'Handler does not export a scheduled() function' error
- Deletes sessions where expires_at < current timestamp
2025-11-07 23:00:58 +01:00
364eeb6538 Improve README formatting and structure
- Update header with tagline
- Improve README organization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-07 21:24:53 +01:00
02d460fa7e Replace KV storage with D1, add peer_id field, simplify README
Storage changes:
- Remove KV storage adapter
- Add D1 storage adapter for Cloudflare Workers
- Update schema to use peer_id instead of info field
- Add database migrations for D1

Documentation:
- Simplify README to be more concise
- Update deployment instructions for D1
- Add D1_SETUP.md explaining migration from KV
- Update DEPLOYMENT.md with D1 setup steps

API changes:
- Replace info field with peerId in session creation
- Update all storage interfaces and implementations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-07 21:21:13 +01:00
d993d6dbfc Fix CORS configuration for Cloudflare Workers
Fixed CORS issue where 'Access-Control-Allow-Origin' header was missing.

The problem was that using `origin: '*'` with `credentials: true` is not
allowed by browsers. Changed to use a dynamic origin function that returns
the actual requesting origin, which is compatible with credentials mode.

Changes:
- Use dynamic origin function instead of static array
- Return requesting origin for wildcard (*) configuration
- Added 'Origin' to allowHeaders list
- Maintains compatibility with specific origin restrictions

This fixes CORS errors in browser-based clients.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-02 15:10:41 +01:00
f2bea69933 Remove private property from server package.json 2025-11-02 14:36:08 +01:00
1f79cf8306 Set version to 0.0.1 for server and client packages
Downgraded the version numbers in both package.json files to 0.0.1. This ensures proper semantic versioning to reflect an initial development phase.
2025-11-02 14:35:20 +01:00
35e206a57e Rename package scope to @xtr-dev and update references.
Updated the package name and scope in `package.json`, README, and source files for both server and client. This ensures consistency and aligns with the new namespace.
2025-11-02 14:34:51 +01:00
82c0e8b065 Initial commit: Rondevu signaling server
Open signaling and tracking server for peer discovery in distributed P2P applications.

Features:
- REST API for WebRTC peer discovery and signaling
- Origin-based session isolation
- Multiple storage backends (SQLite, in-memory, Cloudflare KV)
- Docker and Cloudflare Workers deployment support
- Automatic session cleanup and expiration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-02 14:32:25 +01:00