running peer.js on secure server

774 views
Skip to first unread message

roe...@gmail.com

unread,
May 13, 2013, 7:45:59 AM5/13/13
to pee...@googlegroups.com
Peer.js looks great!!!!
unfortunately, I'm having issues when trying to run <script src="https://cdn.peerjs.com/0/peer.min.js" type="text/javascript"></script> on my server.

I use an https server and when I try running the script I get "ran insecure content from", followed by "Peer is not defined"
Is there a solution to run peer.js from a secure server?


Michelle Bu

unread,
May 13, 2013, 1:09:32 PM5/13/13
to roe...@gmail.com, peerjs
We haven't gotten around to getting an SSL certificate so unfortunately that won't work. If running this is important to you you can host it on your own server for now--otherwise we'll keep you in the loop about our status with SSL. Keep in mind that even if you host the library like that, the cloud server is still not on HTTPS currently.

Michelle

roe...@gmail.com

unread,
May 13, 2013, 2:11:11 PM5/13/13
to pee...@googlegroups.com, roe...@gmail.com, miche...@berkeley.edu
Thanks for the quick reply!

I managed running my own server using "require('peer').PeerServer;". 
I just can't run "<script src="https://cdn.peerjs.com/0/peer.min.js" type="text/javascript"></script>"  from the Client html. 
Is there a peer.js\client Package available for download so I can run without peerjs.com?
"npm install peer", only downloads the peer.js server files. 

Michelle Bu

unread,
May 13, 2013, 2:26:24 PM5/13/13
to roe...@gmail.com, peerjs
I see. We should make that more clear on the website. You can directly save peer.min.js from http://cdn.peerjs.com/0/peer.min.js or grab it from our repo: https://github.com/peers/peerjs.

Michelle
Reply all
Reply to author
Forward
0 new messages