Commit Graph

12 Commits

Author SHA1 Message Date
montag 37ba2ac982 TLS migration for demos/web (#260)
What does this PR do?

Minimally invasive migration to TLS for the http (8000) and websocket (9000) endpoints for the real time web demo.

Where should the reviewer start?

Install the demo like a normal install. During the install-deps.sh script it will prompt for questions to generate a local self-signed cert. Anything can be entered into the cert. Start the demo as normal but connect on https://domain:http_port instead of http.

How should this PR be tested?

The first step is the cert generation (added to install-deps.sh for convenience). The second step is ensuring the two endpoints are brought up. The next step is loading the web page and accepting the self-signed cert. Reloading the web app everything should now be secure, e.g. no errors or warnings and the video works as normal.

Any background context you want to provide?

I tried to be as minimal as possible so the changes tends to follow the existing structure rather than a refactor of anything major. With that said, SimpleHTTPServer doesn't work with TLS via the -m flag so that is now a short script. I updated all the html/js files to point to https/wss. I also updated the js for Firefox's change from navigator.mozGetUserMedia to navigator.mediaDevices.getUserMedia.

What are the relevant issues?

#75

Questions:

Do the docs need to be updated?
Yes. I updated the script's docs in demos/web but didn't make any changes outside of demos/web

Does this PR add new (Python) dependencies?
I don't think so.
2017-04-28 06:05:12 -04:00
Brandon Amos cfe3a83e2f websocket server: Use store_true for --cuda. 2016-02-05 20:08:18 -05:00
Brandon Amos 9d1bd99579 Update copyright notices.
sed -i "/[Cc]opyright.*2015.*Carnegie Mellon University/s/2015/2015-2016/;"  $(git grep '[Cc]opyright.*Carnegie Mellon University'  | sed 's/:.*//' | uniq)
2016-01-13 14:52:52 -05:00
Brandon Amos f96b206765 Use nn4.small2.v1 by default. 2016-01-12 15:46:57 -05:00
Brandon Amos 1de080d65b Web Demo: Use outer eyes and nose. 2016-01-11 10:31:38 -05:00
Brandon Amos 434dc1ca9f Fix flake8 warnings. 2016-01-07 18:43:25 -05:00
Brandon Amos 6246fada83 Update code to nn4.v2 for #55. 2016-01-07 18:28:11 -05:00
Brandon Amos 4357fdccae Update websocket-server to latest API. 2015-12-31 13:02:36 -05:00
Brandon Amos 1f7b50efa2 Refactor Python interface. 2015-12-29 19:57:29 -05:00
Brandon Amos dceb6a910b flake8 improvements. 2015-12-24 11:45:00 -05:00
Brandon Amos ec6aa45d89 System-wide install of dlib and OpenFace.
Resolves #11
2015-12-22 20:58:06 -05:00
Brandon Amos 7d73946836 Web demo: server.py -> websocket-server.py 2015-12-19 17:46:57 -05:00