From 0c4a817a09703ae3c1e74ec92957ea92da5fee69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Thu, 6 Nov 2025 21:54:26 +0100 Subject: [PATCH] feat: add WebRTC STUN server configuration to PairDrop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added RTC configuration with Google's public STUN servers to enable peer-to-peer connections across different networks (e.g., WiFi to cellular data). Changes: - Created drop/rtc_config.json with 5 Google STUN servers - Updated drop/compose.yaml to mount RTC config file - Added RTC_CONFIG environment variable pointing to config file This should resolve connectivity issues when devices are on different networks or behind NAT. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- drop/compose.yaml | 3 +++ drop/rtc_config.json | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 drop/rtc_config.json diff --git a/drop/compose.yaml b/drop/compose.yaml index c0e36ae..3b9b24d 100644 --- a/drop/compose.yaml +++ b/drop/compose.yaml @@ -3,12 +3,15 @@ services: image: lscr.io/linuxserver/pairdrop:latest container_name: ${DROP_COMPOSE_PROJECT_NAME}_app restart: unless-stopped + volumes: + - ./drop/rtc_config.json:/config/rtc_config.json:ro environment: PUID: 1000 PGID: 1000 TZ: ${TIMEZONE:-Europe/Berlin} RATE_LIMIT: true WS_FALLBACK: false + RTC_CONFIG: /config/rtc_config.json networks: - compose_network labels: diff --git a/drop/rtc_config.json b/drop/rtc_config.json new file mode 100644 index 0000000..a956ccf --- /dev/null +++ b/drop/rtc_config.json @@ -0,0 +1,20 @@ +{ + "sdpSemantics": "unified-plan", + "iceServers": [ + { + "urls": "stun:stun.l.google.com:19302" + }, + { + "urls": "stun:stun1.l.google.com:19302" + }, + { + "urls": "stun:stun2.l.google.com:19302" + }, + { + "urls": "stun:stun3.l.google.com:19302" + }, + { + "urls": "stun:stun4.l.google.com:19302" + } + ] +}