Install a remote repository locally to be served via SPDY Push.
Setting Up
You'll notice a Dockerfile located at the root of this repository.
With docker, you should be able to go through the following steps to run the proxy (not yet tested as of v0.1.0):
git clone git://github.com/normalize/proxy.jscd proxy.jsvim Dockerfile # change all the environmental variables# maybe add your own .npmrc filesudo docker build -t myname/normalize-proxy .docker run -p 8080:8080 -d myname/normalize-proxy
If this doesn't work, please let me know!
If you're on a UNIX platform,
you don't need to use Docker!
Just look at the Dockerfile and set the same environmental variable.
After that, running npm start should work:
To access private repositories,
you must either add authentication environmental variables or add files.
GitHub - set the NORMALIZE_AUTH_GITHUB env var for basic auth.
It should be of the form <username>:<token>.
You should use GitHub OAuth Tokens.
NPM - having a .npmrc file should be sufficient.
For docker, you should add it to the image.
This is untested - please let me know if it works.
Platform
This server is designed to run on UNIX systems and is thus able to avoid many issues and code bloat.
Since this proxy is not designed to be run on clients, there's no need to support Windows.
However, a Dockerfile will be included to make it easy for you to setup a proxy in a VM.