Skip to content
Michael VERGOZ edited this page May 28, 2014 · 1 revision

Basic Forward proxy configuration example

var serverConfig = function(bs) { return({
	serverProcess: 4,
	hostname: "testServer0",
	
	runDir: "/tmp/gatejs",
	dataDir: "/home/cache",
	logDir: "/var/log/gatejs",
// 	configDir: __dirname+'/configs',

	http: {
		testInterface: {
			type: 'forward',
			port: 8080,
			pipeline: 'pipetest'
		},
	},
	pipeline: {
		pipetest: [
			['cache', { }],
			['proxyPass', { mode: 'host', timeout: 10 }]
		],
	}
})};
module.exports = serverConfig;
Clone this wiki locally