1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

seems to work

This commit is contained in:
George Hunt 2018-08-22 23:39:17 +00:00
parent 3225f0c4b2
commit e13608492b
2 changed files with 5 additions and 7 deletions

View file

@ -1,7 +1,2 @@
ProxyPass /sugarizer http://box.lan:8089
#ProxyPass /sugarizer http://box:8089
#ProxyPass /sugarizer http://127.0.0.1:8089
# Old Version, wasn't working as of 2018-08-07:
#RewriteEngine on
#RewriteRule ^/sugarizer(.*)$ http://localhost:8089$1 [PT]
ProxyPass /sugarizer http://box.lan:8089/sugarizer
ProxyPassReverse /sugarizer http://box.lan:8089/sugarizer

View file

@ -32,6 +32,9 @@ if (ini.security.https) {
server = http.createServer(app);
}
var pathPrefix = '/sugarizer';
app.use(pathPrefix, require('path-prefix-proxy')(pathPrefix));
// Start listening
server.listen(ini.web.port,"0.0.0.0");
console.log("Sugarizer Server is listening on"+(ini.security.https ? " secure":"")+" port " + ini.web.port + "...");