Skip to content

opentok/simple_reverse_proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Reverse Proxy for Opentok services

This proxy will forward all requests to it to opentok.com or tokbox.com

If you do a request to https://PROXY_IP_ADDRESS/subdomain.tokbox.com/foo/bar?a=b, It will forward it to https://subdomain.tokbox.com/foo/bar?a=b

Running

By default the server will start on http

$ npm install
$ node app.js

Using HTTPS

First, if you don't have already a key and a certificate you need to create one by running

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./selfsigned.key -out selfsigned.crt

By default, uses key and cerfificate from selfsigned.key and selfsigned.crt files

Then you can run:

USE_SSL=1; node app.js

-- or --

node app.js -use-ssl

About

POC of reverse proxy for opentok services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%