Giter VIP home page Giter VIP logo

Comments (7)

o0101 avatar o0101 commented on June 29, 2024

@skug67 In reply to your comment on config:

OK thanks for that. Some issues I can think of might be:

The DockerHub image is quite old, you could try to rebuild a docker image using the included utility script from the latest code version.

Chrome headless also needs to open port 5002 locally. Which the backend (on 8002) needs to talk to. No sure if that's somehow being blocked.

When you say "refreshes" are any errors shown?

In any case, I think you could try to run it from Node itself, or build a Docker image from a recent release, to get better debugging info and it by updating it might fix the problem.

I'm not sure. These are just ideas. I don't have a certain picture of what the problem might be.

from browserboxpro.

skug67 avatar skug67 commented on June 29, 2024

I'll poke around some. Don't think it has to do with 5002 <-> 8002 problems because it all works fine if I access directly from my browser to 8002. There's pretty clearly something going on with the Apache proxy......

from browserboxpro.

skug67 avatar skug67 commented on June 29, 2024

PS the error which shows is "Error connecting to the server - Will reload to try again"

from browserboxpro.

o0101 avatar o0101 commented on June 29, 2024

from browserboxpro.

skug67 avatar skug67 commented on June 29, 2024

Thanks. (For when/if you get back to this ... but totally understand if you never do)

One thing I am noticing which might help lead to explanation. When I run directly instead of via docker, I see that a direct connection produces console output of
{ connectionIp: '::ffff:192.168.0.157' }
When I connect via Apache proxy there's no output at all. Additional point -- my LAN is not set up for ipv6.

from browserboxpro.

skug67 avatar skug67 commented on June 29, 2024

I've got it working a lot better (still having problems with authorization/access control via Apache) but the following seems to generally work

  RewriteEngine On
  RewriteCond %{HTTP:Upgrade} =websocket [NC]
  RewriteRule /(.*)           ws://localhost:8002/$1 [P,L]
  RewriteCond %{HTTP:Upgrade} !=websocket [NC]
  RewriteRule /(.*)           http://localhost:8002/$1 [P,L]

  ProxyPassReverse / http://localhost:8002/

from browserboxpro.

o0101 avatar o0101 commented on June 29, 2024

Awesome, thank you for the issue, and the config on how you got it working!

There's a "login" step, which uses a /login? url with a special token, which then sets the cookie,

I believe. That may be causing issues if it's not in the rewrite rules, I don't know.

from browserboxpro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.