Replace CPU-intensive headless Chrome + WebRTC pipeline with a lightweight Go reverse proxy that strips anti-framing headers (X-Frame-Options, CSP) and embeds streaming sites in iframes. - New internal/proxy package with URL rewriting for HTML/CSS - JS shim injection to intercept fetch/XHR/WebSocket/createElement - Referer reconstruction for correct cross-origin auth (HLS streams) - Inline iframe viewer preserving site navigation (not fullscreen overlay)
45 lines
1.6 KiB
Modula-2
45 lines
1.6 KiB
Modula-2
module f1-stream
|
|
|
|
go 1.24.1
|
|
|
|
require (
|
|
github.com/chromedp/cdproto v0.0.0-20250724212937-08a3db8b4327
|
|
github.com/chromedp/chromedp v0.14.2
|
|
github.com/go-webauthn/webauthn v0.15.0
|
|
github.com/gobwas/ws v1.4.0
|
|
github.com/pion/webrtc/v4 v4.2.9
|
|
)
|
|
|
|
require (
|
|
github.com/chromedp/sysutil v1.1.0 // indirect
|
|
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
|
|
github.com/go-json-experiment/json v0.0.0-20250725192818-e39067aee2d2 // indirect
|
|
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
|
|
github.com/go-webauthn/x v0.1.26 // indirect
|
|
github.com/gobwas/httphead v0.1.0 // indirect
|
|
github.com/gobwas/pool v0.2.1 // indirect
|
|
github.com/golang-jwt/jwt/v5 v5.3.0 // indirect
|
|
github.com/google/go-tpm v0.9.6 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/pion/datachannel v1.6.0 // indirect
|
|
github.com/pion/dtls/v3 v3.1.2 // indirect
|
|
github.com/pion/ice/v4 v4.2.1 // indirect
|
|
github.com/pion/interceptor v0.1.44 // indirect
|
|
github.com/pion/logging v0.2.4 // indirect
|
|
github.com/pion/mdns/v2 v2.1.0 // indirect
|
|
github.com/pion/randutil v0.1.0 // indirect
|
|
github.com/pion/rtcp v1.2.16 // indirect
|
|
github.com/pion/rtp v1.10.1 // indirect
|
|
github.com/pion/sctp v1.9.2 // indirect
|
|
github.com/pion/sdp/v3 v3.0.18 // indirect
|
|
github.com/pion/srtp/v3 v3.0.10 // indirect
|
|
github.com/pion/stun/v3 v3.1.1 // indirect
|
|
github.com/pion/transport/v4 v4.0.1 // indirect
|
|
github.com/pion/turn/v4 v4.1.4 // indirect
|
|
github.com/wlynxg/anet v0.0.5 // indirect
|
|
github.com/x448/float16 v0.8.4 // indirect
|
|
golang.org/x/crypto v0.48.0 // indirect
|
|
golang.org/x/net v0.50.0 // indirect
|
|
golang.org/x/sys v0.41.0 // indirect
|
|
golang.org/x/time v0.10.0 // indirect
|
|
)
|