Closed vkWeb closed 3 months ago
Hello, great to hear that!
Google's remote-debugging
tool binds only to 127.0.0.1
(for obvious security reasons). Therefore its accessible only inside container. I think there exists several workarounds how to bind it to 0.0.0.0
or you could just use reverse proxy inside container (e.g. nginx) or some kind of port forwaring (using netcat) in custom supervisord service to have it accessible from outside.
@m1k1o we have decided to put a websocket application into the container that'll be exposed to 0.0.0.0.
Our backend server will send commands to the websocket application that will forward it to CDP. The websocket application will take care of our custom needs and security.
@m1k1o Thanks for the helpful suggestions. I will nudge you in the coming days if something pops up as we deploy to aws.
Hi @m1k1o, thanks for maintaining this amazing piece of tech. We are planning to use it for our product @ QAmom.com.
We will be eventually deploying the neko's chromium browser to AWS EC2 if things work out well. But before that, I am testing it out locally. We have tried Hyperbeam, Kasm and BrowserBox. When we landed to Neko, we were impressed by its extensionibility. We can tweak a lot of stuff.
So, we want to control the browser via CDP from our backend. We enabled developer tools in policies.json, we added
--remote-debugging-port=9222
flag to the command on supervisord.conf. And we are forwarding the port on docker compose as well. Visiting 127.0.0.1:9222/json inside neko container works but from my host its not working.What's going wrong here? Below are relevant files for you to see.
policies.json
supervisord.conf
docker-compose.yml
("chromvium:latest" is name of our custom image that we created by changing above settings)