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:
parent
3225f0c4b2
commit
e13608492b
2 changed files with 5 additions and 7 deletions
|
@ -1,7 +1,2 @@
|
||||||
ProxyPass /sugarizer http://box.lan:8089
|
ProxyPass /sugarizer http://box.lan:8089/sugarizer
|
||||||
#ProxyPass /sugarizer http://box:8089
|
ProxyPassReverse /sugarizer http://box.lan:8089/sugarizer
|
||||||
#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]
|
|
||||||
|
|
|
@ -32,6 +32,9 @@ if (ini.security.https) {
|
||||||
server = http.createServer(app);
|
server = http.createServer(app);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var pathPrefix = '/sugarizer';
|
||||||
|
app.use(pathPrefix, require('path-prefix-proxy')(pathPrefix));
|
||||||
|
|
||||||
// Start listening
|
// Start listening
|
||||||
server.listen(ini.web.port,"0.0.0.0");
|
server.listen(ini.web.port,"0.0.0.0");
|
||||||
console.log("Sugarizer Server is listening on"+(ini.security.https ? " secure":"")+" port " + ini.web.port + "...");
|
console.log("Sugarizer Server is listening on"+(ini.security.https ? " secure":"")+" port " + ini.web.port + "...");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue