Git Product home page Git Product logo

Comments (10)

cracker0dks avatar cracker0dks commented on July 21, 2024 1

there was a point chrome and ff would block mic/cam access on http even on localhost... so debugging was not really possible without this solution. I will check and remove https if this has changed.

from accelerator.

taufiqridha avatar taufiqridha commented on July 21, 2024 1

Hai @cracker0dks this is awesome project. thanks for initiate.
To add some small info for anyone might want, for local test only or intranet. if using chrome, and don't wanna go over https i added host on "Insecure origins treated as secure" in chrome://flags to allow me testing without https

from accelerator.

link2xt avatar link2xt commented on July 21, 2024

From https://blog.mozilla.org/webrtc/camera-microphone-require-https-in-firefox-68/: "Some good news for web developers is that camera and microphone will continue to work from http://localhost! This is thanks to the modern definition of secure context, which defines local sources as secure."

So, HTTPS does not seem to be needed. Hopefully Firefox works as that blog says and chrome/chromium does the same.

from accelerator.

cracker0dks avatar cracker0dks commented on July 21, 2024

checked it and seems to work on chrome and ff with http on localhost. But if we remove this you always need a reverse proxy to host it, don't know if people like this if they just want to spinup a test server?

from accelerator.

link2xt avatar link2xt commented on July 21, 2024

IMO it is easier to install apache2+certbot and have a correct Let's encrypt certificate than getting let's encrypt certificate into node app or dealing with self-signed certificates, even for a test server. Maybe add some links and example configuration for apache/nginx + certbot to README instead?

from accelerator.

cracker0dks avatar cracker0dks commented on July 21, 2024

Ok, removed it and put it on the dev branch for now, maybe it has some side effects u never know :)
Not using apache so can you post the reverse proxy config part for it please?

from accelerator.

link2xt avatar link2xt commented on July 21, 2024

Not using apache so can you post the reverse proxy config part for it please?

Yes, going to try it and post apache config when I get it working with my setup.

from accelerator.

cracker0dks avatar cracker0dks commented on July 21, 2024

you'll need to change the https to http in the config file if you already have one

from accelerator.

link2xt avatar link2xt commented on July 21, 2024

Not using apache so can you post the reverse proxy config part for it please?

Here is how my config looks like:

<VirtualHost example.org:443>
...
# Proxy /accelerator/ to accelerator container
ProxyPass "/accelerator/" "http://127.0.0.1:8080/"
ProxyPassReverse "/accelerator/" "http://127.0.0.1:8080/"

# Redirect /accelerator to /accelerator/, happens when user exits the room
Redirect "/accelerator" "/accelerator/"
...
# Optional authentication
<Location /accelerator>
AuthType Basic
AuthName "Accelerator authentication"
AuthUserFile "/etc/apache2/accelerator.htpasswd"
Require valid-user
</Location>
...
</VirtualHost>

from accelerator.

cracker0dks avatar cracker0dks commented on July 21, 2024

thanks added the part the the readme and also fixed the "user exits the room" bug.

from accelerator.

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.