Skip to content
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

Does not support TLS #114

Open
AnthonyPhan opened this issue Jan 26, 2021 · 2 comments
Open

Does not support TLS #114

AnthonyPhan opened this issue Jan 26, 2021 · 2 comments

Comments

@AnthonyPhan
Copy link

Hi i'm unable to find any information on how to get this plugin to work with TLS so that it is not rejected by most modern browsers.

@ghost
Copy link

ghost commented Feb 9, 2021

Hi @AnthonyPhan ,
I recently ran into this problem for a use case where the video server requests needed to be made using https. My solution was to run a very basic proxy server that redirects https requests to the ROS web video server.
I used NGINX for the proxy server.
This server configuration worked quite nicely:

server {
        listen      10080 ssl;
        listen [::]:10080 ssl;
        server_name your_server.com;

        ssl_certificate        /etc/ssl/certs/your_cert.crt;
        ssl_certificate_key    /etc/ssl/certs/your_cert.key;
        ssl_verify_client      off;

        location / {
                proxy_pass http://0.0.0.0:8080;
        }

}

This server listens for https requests on the port defined with the listen statements (10080) and uses the certificates defined by the file paths. All requests are then forwarded to the address given by the proxy pass statement and the request uri remains unchanged.
Example:
https://localhost:10080/stream?topic=/usb_cam/image_raw is redirected to http://0.0.0.0:8080/stream?topic=/usb_cam/image_raw

Best regards,
Matt

@gxomalis
Copy link

hey! did you figure out how to run web video server with ssl? I could use some help cause im trying to do the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants