Revert "Clean up Xbox proxy: Remove obsolete Caddyfile and improve docs"
This reverts commit 9e6b9fc1db.
This commit is contained in:
22
docker/jellyfin-xbox-proxy/Caddyfile
Normal file
22
docker/jellyfin-xbox-proxy/Caddyfile
Normal file
@@ -0,0 +1,22 @@
|
||||
:8096 {
|
||||
# Forward all requests to Jellyfin
|
||||
reverse_proxy jellyfin:8096 {
|
||||
# Pass through headers
|
||||
header_up Host {host}
|
||||
header_up X-Real-IP {remote_host}
|
||||
header_up X-Forwarded-For {remote_host}
|
||||
header_up X-Forwarded-Proto {scheme}
|
||||
}
|
||||
|
||||
# Handle Xbox codec filtering via external handler
|
||||
@xbox_playback {
|
||||
path /Users/*/Items/*/PlaybackInfo
|
||||
method POST
|
||||
header User-Agent *Xbox*
|
||||
}
|
||||
|
||||
handle @xbox_playback {
|
||||
# Forward to Python filter service
|
||||
reverse_proxy http://xbox-filter:5000
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
# Jellyfin Xbox Codec Filter Proxy
|
||||
|
||||
Transparenter Python-basierter Reverse Proxy der AV1 und Opus aus DeviceProfiles für Xbox-Clients filtert.
|
||||
Transparenter Reverse Proxy der AV1 und Opus aus DeviceProfiles für Xbox-Clients filtert.
|
||||
|
||||
## Problem
|
||||
|
||||
@@ -33,35 +33,20 @@ docker-compose up -d
|
||||
## Funktionsweise
|
||||
|
||||
```
|
||||
Xbox Client → Port 8096 (Python Proxy) → Filtert REQUEST → Jellyfin (intern)
|
||||
Xbox Client → Port 8096 (Proxy) → Filtert Response → Jellyfin (intern)
|
||||
↓
|
||||
Entfernt AV1/Opus aus DeviceProfile im Request-Body
|
||||
Entfernt AV1/Opus aus DeviceProfile
|
||||
```
|
||||
|
||||
Der Proxy interceptiert `POST /Users/*/Items/*/PlaybackInfo` Requests:
|
||||
1. Erkennt Xbox via `User-Agent: ... WebView2 Xbox`
|
||||
2. Parsed den JSON Request-Body
|
||||
3. Filtert AV1 aus VideoCodec und Opus aus AudioCodec
|
||||
4. Sendet modifizierten Request an Jellyfin
|
||||
|
||||
## Logs
|
||||
|
||||
```bash
|
||||
docker logs -f jellyfin-xbox-filter
|
||||
docker logs jellyfin-xbox-filter
|
||||
```
|
||||
|
||||
Zeigt wenn Xbox-Clients gefiltert werden:
|
||||
```
|
||||
INFO - Xbox PlaybackInfo request detected: Users/.../Items/.../PlaybackInfo, User-Agent: Mozilla/5.0 ... WebView2 Xbox
|
||||
INFO - Filtering Xbox DeviceProfile in REQUEST
|
||||
INFO - DeviceProfile filtered successfully in REQUEST
|
||||
```
|
||||
|
||||
Bei Problemen:
|
||||
```
|
||||
WARNING - No DeviceProfile found in REQUEST body
|
||||
WARNING - No request body found for PlaybackInfo
|
||||
ERROR - Error filtering request: ...
|
||||
INFO - Filtering Xbox DeviceProfile for User-Agent: Mozilla/5.0 ... WebView2 Xbox
|
||||
```
|
||||
|
||||
## Vorteile
|
||||
|
||||
@@ -13,7 +13,6 @@ services:
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- jellyfin
|
||||
# IMPORTANT: No ports exposed! Only accessible via xbox-filter proxy
|
||||
|
||||
xbox-filter:
|
||||
build: .
|
||||
@@ -21,7 +20,7 @@ services:
|
||||
depends_on:
|
||||
- jellyfin
|
||||
ports:
|
||||
- "8096:8096" # This is the public-facing port
|
||||
- "8096:8096"
|
||||
environment:
|
||||
- JELLYFIN_URL=http://jellyfin:8096
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user