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:
parent
30b8623cf0
commit
6e63bb622e
2 changed files with 8 additions and 3 deletions
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue