Giter Club home page Giter Club logo

Comments (6)

o0101 avatar o0101 commented on May 16, 2024

Hey @arnonh sure, serving from a subdirectory is possible.

Just examine the file ws-server.js, particularly this line and modify it to serve from whatever subdirectory you like.

Also if you want to serve on a regular port (443 for https or 80 for http), just modify the server port (8002) in test.sh

from browserbox.

o0101 avatar o0101 commented on May 16, 2024

Awesome, that's great to hear! Glad you got it working 😄

from browserbox.

skug67 avatar skug67 commented on May 16, 2024

When I try to run via reverse proxy, it constantly refreshes. Any idea what I might be doing wrong?

from browserbox.

o0101 avatar o0101 commented on May 16, 2024

from browserbox.

skug67 avatar skug67 commented on May 16, 2024

At least for now running the DockerHub image.
The reason that I'm running it is to access sites that are blocked by my work firewall (which also doesn't allow me to setup my own http proxy). [Just by way of explanation, the firewall is attempting to prevent uploads/downloads/infections and other interactions between machines on our local network and remote sites, rather than limit what we're seeing on our screens. So that using this as a workaround actually doesn't violate their policies]

So I've set up a name based virtual host via Apache to reverse proxy from my public https port (443) to the private BrowserView port (8002). The current config is very simple (although I did try to capture the websockets):

<Location />
RewriteEngine on
RewriteCond ${HTTP:Upgrade} websocket [NC]
RewriteCond ${HTTP:Connection} upgrade [NC]
RewriteRule .* "ws:/localhost:8002/$1" [P,L]
ProxyPass http://localhost:8002/
ProxyPassReverse http://localhost:8002/
</Location>

from browserbox.

o0101 avatar o0101 commented on May 16, 2024

@skug67 I moved discussion to a new issue: #51 (comment)

from browserbox.

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.