1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/thelounge_ynh.git synced 2024-09-03 20:35:54 +02:00

[fix] Resolve path properly

This commit is contained in:
kload 2015-08-22 22:43:26 +02:00
parent 30b8623cf0
commit 6e63bb622e
2 changed files with 8 additions and 3 deletions

View file

@ -8,4 +8,8 @@ location LOCATIONTOCHANGE {
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
more_clear_input_headers 'Accept-Encoding';
}

View file

@ -16,8 +16,8 @@ module.exports = function(options) {
config = _.extend(config, options);
var app = express()
.use(index)
.use(express.static("client"));
.use(config.rootpath, index)
.use(config.rootpath, express.static("client"));
app.enable("trust proxy");
@ -44,7 +44,8 @@ module.exports = function(options) {
}
sockets = io(server, {
transports: transports
transports: transports,
path: config.rootpath + 'socket.io'
});
sockets.on("connect", function(socket) {