Skip to content
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

Can instances running cobalt hide the HTML content displayed on www.xx.com #902

Open
lpwyz opened this issue Nov 10, 2024 · 7 comments
Open

Comments

@lpwyz
Copy link

lpwyz commented Nov 10, 2024

problem description

Can the instance running Cobalt hide the HTML content displayed in www.xx.com? If it cannot be hidden, it can be implemented so that www.xx.com: 9000 can access the HTML and use www.xx.com: 9000 to call the interface. If it is a parsed tunnel video, the tunnel video address needs to display www.xx.com. xxxxxxxx? Can xxxx format be implemented.

I conducted a test myself using a dokcer image:

services:
cobalt-api:
image: ghcr.io/imputnet/cobalt:10

init: true
read_only: true
restart: unless-stopped
container_name: cobalt-api

ports:
#- 9000:9000/tcp

if you use a reverse proxy (such as nginx),

uncomment the next line and remove the one above (9000:9000/tcp):

  • 127.0.0.1:9000:9000

environment:

replace https://api.url.example/ with your instance's url

or else tunneling functionality won't work properly

API_URL: " https://www.xxx.com/ "

if you want to use cookies for fetching data from services,

uncomment the next line & volumes section

COOKIE_PATH: "/cookies.json"

According to nginx configuration above, it can be implemented to access the www.xx.com API and return the tunnel address www.xx.com? Xxx can also download videos, but at this point, simply enter www.xx.com and the HTML will be displayed.

your instance configuration

No response

@lpwyz
Copy link
Author

lpwyz commented Nov 10, 2024

Can someone help me

@KwiatekMiki
Copy link
Contributor

what

@lpwyz
Copy link
Author

lpwyz commented Nov 10, 2024 via email

@flexagoon
Copy link

what

@lpwyz
Copy link
Author

lpwyz commented Nov 11, 2024

For example, I used my own server, www.xxx.com, to build an instance of Cobalt with Docker, and used nginx to proxy the 9000 port of this project. However, I found an issue where if I directly enter www.xx.com in the browser, an HTML page will be displayed, which looks like this:
{
"cobalt": {
"version": "10.3.1",
"url": "https://www.xx.com",
"startTime": "1731207169798",
"durationLimit": 10800,
"services": [
"bilibili",
"bluesky",
"dailymotion",
"facebook",
"instagram",
"loom",
"ok",
"pinterest",
"reddit",
"rutube",
"snapchat",
"soundcloud",
"streamable",
"tiktok",
"tumblr",
"twitch",
"twitter",
"vine",
"vimeo",
"vk",
"youtube"
]
},
"git": {
"branch": "main",
"commit": "xxx",
"remote": "imputnet/cobalt"
}
}

Can I hide this page or modify the text content on it

@lostdusty
Copy link

No because the frontend needs the json data on the "/" page

@lpwyz
Copy link
Author

lpwyz commented Nov 11, 2024

the frontend needs the json data on the "/" page

Understand, the frontend needs the json data on the "/" page ,
Can I/: 9000 access this page,/directly call the interface, and the URL parameter returned by the interface is also/formatted without/9000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants