martinbjeldbak / acestream-http-proxy

Stream AceStream sources on macOS and other systems without needing to install AceStream player
https://hub.docker.com/r/martinbjeldbak/acestream-http-proxy
33 stars 8 forks source link

Add Caddy reverse proxy for user-friendly paths #14

Closed martinbjeldbak closed 11 months ago

martinbjeldbak commented 11 months ago

This PR

It's now possible to also access an AceStream directly by simply adding the AceStream ID at the end of an HTTP or HTTPS port.

https://localhost/7d8g87e057be91f00f32e23a23fbf08999e4b02f

This change is backwards compatible as port 6878 is still exposed.

martinbjeldbak commented 11 months ago

Closing as it doesn't seem to like the host, returning 500!

martinbjeldbak commented 11 months ago

Successful request, redirecting user to port 6878

{
    "request": {
        "remote_ip": "172.18.0.1",
        "remote_port": "59360",
        "client_ip": "172.18.0.1",
        "proto": "HTTP/1.1",
        "method": "GET",
        "host": "localhost",
        "uri": "/d00223931b1854163e24c5c22475015d7d45c112",
        "headers": {
            "Accept": [
                "*/*"
            ],
            "Accept-Language": [
                "en_US"
            ],
            "User-Agent": [
                "VLC/3.0.20 LibVLC/3.0.20"
            ],
            "Range": [
                "bytes=0-"
            ]
        }
    },
    "bytes_read": 0,
    "user_id": "",
    "duration": 1.519961825,
    "size": 113,
    "status": 302,
    "resp_headers": {
        "Server": [
            "Caddy",
            "BaseHTTP/0.6 Python/3.8.0"
        ],
        "Date": [
            "Mon, 27 Nov 2023 12:04:01 GMT"
        ],
        "Location": [
            "http://localhost:6878/ace/r/521ac9d09b4aca552bf916cb3c045a3fad3838e2/f528764d624db129b32c21fbca0cb8d6"
        ],
        "Access-Control-Allow-Origin": [
            "*"
        ]
    }
}