Перейти к файлу
James Willcox 13bb104d6e Add a 'production' config, used with NODE_ENV=production 2014-06-17 14:58:21 -05:00
config Add a 'production' config, used with NODE_ENV=production 2014-06-17 14:58:21 -05:00
keys Initial. 2014-05-20 03:03:56 +02:00
lib Add a configurable logging module based on Winston 2014-06-17 14:58:20 -05:00
.gitignore Added gitignore. 2014-06-06 14:14:45 +02:00
.jscsrc Added ad blocking plugin. 2014-06-16 14:03:06 -07:00
.jshintrc Added global strict mode. 2014-06-11 18:53:49 +02:00
.travis.yml Add IRC configuration for Travis CI 2014-06-13 10:48:18 -05:00
LICENSE Updated license. 2014-05-23 20:31:01 +02:00
README.md Update README.md to use the right repo for build status 2014-06-13 10:53:41 -05:00
gonzales Added YAML configuration. Refactored. 2014-06-05 20:26:35 +02:00
package.json Add a configurable logging module based on Winston 2014-06-17 14:58:20 -05:00

README.md

Gonzales - SPDY Privacy Proxy

Build Status

Requirements

  • Node.js v10.0

Installation

Gonzales is not published on NPM, so you need to get the code first.

git clone https://github.com/mozilla/node-gonzales

Next, use NPM to install all the dependencies.

cd node-gonzales  
npm install

Configuration and Usage

Gonzales

You can find the default Gonzales configuration in config/default.yml. All settings are exposed and documented there.

You may edit the settings there directly or override some of them with a custom config file, see the node-config documentation for more details about how the configuration works.

To start the proxy, just run

./gonzales

The only command-line arguments supported are -h for help and -v for showing the version.

Firefox

You need Firefox Nightly for SPDY proxy support. When using self-signed certificates, you need to add it to Firefox first. To do this, use Firefox to call the proxy via its host-port combination.

https://<proxy-host>:<proxy-port>/

This should prompt you to add an exception for the self-signed certificate.

Desktop

Now, you can configure the secure proxy in Preferences/Advanced/Network/Settings. Select Automatic proxy configuration URL and set it to your custom PAC file or use the default configuration served by Gonzales.

http://<gonzales-host>:<pac-server-port>

This will serve a suitable PAC file with the proper host and ports set.

Android

For Fennec the steps are similar. Open about:config and set network.proxy.autoconfig_url to the location of your PAC file or the Gonzales PAC server. To load the PAC file and activate the proxy, set network.proxy.type to 2.