-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Comments
Can someone help me |
what |
I built an interface of an instance project with cobalt. The port used in the project is 9000, and then I used nginx to reverse proxy. After proxying, my interface can be posted directly at www.xx.com, plus request header parameters and URL parameters. Number, you can request this interface. Then there is a problem at this time, because I am an APP. After obtaining this video address, I have a button to copy this address. When the user sees the address returned by my url, the domain name will be exposed. At this time, I found that if I enter this domain directly on the browser Name, it will return a default html page of cobalt. I want to ask how to hide this page?
发自我的iPhone
…------------------ Original ------------------
From: KwiatekMiki ***@***.***>
Date: Sun,Nov 10,2024 6:28 PM
To: imputnet/cobalt ***@***.***>
Cc: Benjamin ***@***.***>, Author ***@***.***>
Subject: Re: [imputnet/cobalt] Can instances running cobalt hide the HTMLcontent displayed on www.xx.com (Issue #902)
what
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
what |
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: Can I hide this page or modify the text content on it |
No because the frontend needs the json data on the "/" page |
Understand, the frontend needs the json data on the "/" page , |
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):
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
The text was updated successfully, but these errors were encountered: