I post again both the ngix config and site enabled, and config.js.
Thanks, Mark (mrK)
···
----------------------------------------
+---------------------------------+
/ jitmeet config.js |
/+---------------------------------+
var config = {
hosts: {
domain: 'jitmeet.example.com',
muc: 'conference.jitmeet.example.com', // FIXME: use XEP-0030
bridge: 'jitsi-videobridge.jitmeet.example.com' // FIXME: use XEP-0030
},
useNicks: false,
bosh: '//jitmeet.example.com/http-bind' // FIXME: use xep-0156 for that
};
+---------------------------------+
/ NGINX jitmeet.example.com CONF |
/+---------------------------------+
server {
listen 80;
server_name jitmeet.example.com;
# set the root
root /var/www/jitmeet.example.com;
index index.html;
location ~ ^/([a-zA-Z0-9]+)$ {
rewrite ^/(.*)$ / break;
}
# BOSH
location /http-bind {
proxy_passhttp://localhost:5280/http-bind;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
}
# xmpp websockets
location /xmpp-websocket {
proxy_passhttp://localhost:5280;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
tcp_nodelay on;
}
}
+---------------------------------+
/ NGINX CONF |
/+---------------------------------+
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_names_hash_bucket_size 64;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
+---------------------------------+
/ HOSTS FILE - SERVER SIDE |
/+---------------------------------+
127.0.0.1 jitmeet.example.com
127.0.0.1 conference.jitmeet.example.com
127.0.0.1 jitsi-videobridge.jitmeet.example.com
+---------------------------------+
/ HOSTS FILE - CLIENT SIDE |
/+---------------------------------+
192.168.0.211 jitmeet.example.com
192.168.0.211 conference.jitmeet.example.com
192.168.0.211 jitsi-videobridge.jitmeet.example.com