Commit 49860a0b authored by Luca Falavigna's avatar Luca Falavigna Committed by root

Configuration for armhf

parent 2162d30d
/*
* debomatic-webui amd64 configuration
*/
var architecture = 'armhf'
var port = 8001
// common config
var config = {}
config.host = 'localhost'
config.port = port
config.web = {}
config.web.debomatic = {}
config.web.debomatic.admin = {}
config.web.debomatic.admin.email = "dktrkranz AT debian DOT org" // please use this SPAMFREE form - it will be converted client side by javascript
config.web.debomatic.architecture = architecture
config.debomatic = {}
config.debomatic.path = '/srv/debomatic-' + architecture
config.debomatic.jsonfile = '/var/log/debomatic-' + architecture + '.json'
config.web.debomatic.dput = {}
config.web.debomatic.dput.incoming = config.debomatic.path
config.web.debomatic.dput.host = "debomatic-" + architecture + ".debian.net"
// DO NOT EDIT THIS LINE:
module.exports = config
......@@ -17,6 +17,13 @@ subdomains["debomatic-i386.debian.net"] = new httpProxy.createProxyServer({
}
})
subdomains["debomatic-armhf.debian.net"] = new httpProxy.createProxyServer({
target: {
host: 'localhost',
port: 8001
}
})
var mainServer = http.createServer(function(req, res) {
var host = req.headers.host
if (subdomains.hasOwnProperty(host))
......@@ -30,4 +37,4 @@ mainServer.on('upgrade', function (req, socket, head) {
subdomains[host].ws(req, socket, head);
});
mainServer.listen(80)
\ No newline at end of file
mainServer.listen(80)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment