# Caddyfile for Jellyfin Xbox Codec Filter Proxy
# Simple reverse proxy to the Python filter service

:8097 {
    # All requests go to the Python filter
    # The Python filter handles Xbox detection and codec filtering
    reverse_proxy xbox-filter: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}
    }

    # Enable compression for better performance
    encode gzip

    # Access logging
    log {
        output stdout
        format console
    }
}
