mirror of
https://github.com/xtr-dev/rondevu-server.git
synced 2025-12-10 02:43:24 +00:00
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>
This commit is contained in:
26
wrangler.toml.example
Normal file
26
wrangler.toml.example
Normal file
@@ -0,0 +1,26 @@
|
||||
name = "rondevu"
|
||||
main = "src/worker.ts"
|
||||
compatibility_date = "2024-01-01"
|
||||
|
||||
# KV Namespace binding
|
||||
[[kv_namespaces]]
|
||||
binding = "SESSIONS"
|
||||
id = "" # Replace with your KV namespace ID
|
||||
|
||||
# Environment variables
|
||||
[vars]
|
||||
SESSION_TIMEOUT = "300000" # 5 minutes in milliseconds
|
||||
CORS_ORIGINS = "*" # Comma-separated list of allowed origins
|
||||
|
||||
# Build configuration
|
||||
[build]
|
||||
command = ""
|
||||
|
||||
# For local development
|
||||
# Run: npx wrangler dev
|
||||
# The local KV will be created automatically
|
||||
|
||||
# For production deployment:
|
||||
# 1. Create KV namespace: npx wrangler kv:namespace create SESSIONS
|
||||
# 2. Update the 'id' field above with the returned namespace ID
|
||||
# 3. Deploy: npx wrangler deploy
|
||||
Reference in New Issue
Block a user