-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[self-hosted] Tunnels issue #819
Comments
I figured this line is here because you access the tunnel URL with a web interface from within docker, so it only must be a 127.0.0.1 origin? |
yes it should be 127.0.0.1 |
Would it be possible to add an option to run a standalone API server so the URLs can be accessible from the outside network? |
it is the intended behavior, because itunnels are supposed to be only accessible internally (e.g. via ffmpeg), and this change makes them accessible globally by anyone. the correct solution would be to check what is contained within |
have you tried using docker instead? |
fine. I'll set up docker. |
bug description
This is an issue I already solved but I decided to write it out anyway, as it may (or may not) be helpful to anyone.
I host my own instance, which is
cv.acid.im
. I only use the API (no web interface). Recently I've updated cobalt and tiktok downloads stopped working. The response I get on the tiktok URL is similar to this:{'status': 'tunnel', 'url': 'https://cv.acid.im/tunnel?id=tfeuXyLs5iNdlh_NDgaoi&exp=1728241112610&sig=UFmTDfBXuSrprTY7WSM7L2XC185UctcRqd8wLE9uPXM&sec=lDzitidp6YAmETr4QVOIh1_mFTw4Cq7kaIiJHRJZTOY&iv=3yEEJn3c2oNFHvid3YIesA', 'filename': 'tiktok_4wheeltest_7409257742071827744.mp4'}
which looks fine. If you try to go by that URL, however, this is what you get:
When I try to curl or wget it, I get 403 forbidden (does not matter if API_URL is set to localhost and I wget from localhost). Why?
I tried to log the responses it gives.
This is what I get from the tiktok service:
StreamInfo also seems to be valid when I access it:
My nginx config is just a reverse proxy pointing to localhost:
So, by all means it should be working properly. Being given 403 by curl or wget, I decided to go to
api/src/core/api.js
and disable the offending lines:With that, my instance works as supposed to. I don't think this was an intended behavior.
reproduction steps
git clone https://github.com/imputnet/cobalt
cd cobalt
pnpm install
export API_URL=https://cv.acid.im
node api/src/cobalt.js
curl -X POST "https://cv.acid.im" -H "Content-Type: application/json" -H "Accept: application/json" --data '{"url": "https://vm.tiktok.com/ZGdJuX9nW/", "videoQuality":"1440"}'
screenshots
No response
links
platform information
brave on linux mint
additional context
No response
The text was updated successfully, but these errors were encountered: