Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Changed to get the HEADLESS patch working.
Also, - Adds a README file - Moves the node.js related files to modules/nodejs - flashproxy.js is symlinked and an npm prepublish script is added
- Loading branch information
Showing
with
43 additions
and 11 deletions.
- +1 −0 .gitignore
- +4 −0 modules/nodejs/Makefile
- +29 −0 modules/nodejs/README
- +1 −0 modules/nodejs/flashproxy.js
- +0 −3 proxy/flashproxy-node.js → modules/nodejs/main.js
- +7 −7 {proxy → modules/nodejs}/package.json
- +1 −1 proxy/flashproxy.js
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -3,3 +3,4 @@ | ||
| /py2exe-tmp | ||
| /websocket-transport/websocket-client | ||
| /websocket-transport/websocket-server | ||
| /modules/nodejs/node_modules | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1,4 @@ | ||
| .PHONY: prepublish | ||
| prepublish: | ||
| rm flashproxy.js | ||
| cp ../../proxy/flashproxy.js flashproxy.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1,29 @@ | ||
| == Headless flash proxies with node.js | ||
|
|
||
| Traditionally, flash proxies have run in the browser. However, it may be | ||
| desirable to run them as background daemons. This directory contains a main.js | ||
| file which wraps the regular flashproxy.js (symlinked here) and runs | ||
| headlessly from node.js. | ||
|
|
||
| To install the requirements (known to be in Debian testing and Ubuntu universe), | ||
|
|
||
| > apt-get install git nodejs npm | ||
|
|
||
| Then, if you've checked out the flashproxy source from git, | ||
|
|
||
| > git clone https://git.torproject.org/flashproxy.git | ||
| > cd flashproxy/modules/nodejs | ||
| > npm install | ||
| > npm start # or, node main.js | ||
|
|
||
| This package is also being published on the npm registry. To add a `flashproxy` | ||
| bin to your path without checking out from git, at any time run, | ||
|
|
||
| > npm install -g flashproxy | ||
| > flashproxy | ||
|
|
||
| Rather than install globally, you can also, | ||
|
|
||
| > cd ~/ # or, to the dir of your choice | ||
| > npm install flashproxy | ||
| > npm start flashproxy # or, node node_modules/flashproxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1 @@ | ||
| ../../proxy/flashproxy.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters