diff --git a/conf/nginx.conf b/conf/nginx.conf index 4d6a994..6a1e979 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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'; } diff --git a/sources/src/server.js b/sources/src/server.js index 7da53c7..7943569 100644 --- a/sources/src/server.js +++ b/sources/src/server.js @@ -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) {