2014-05-15 21:50:31 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
|
2014-05-16 08:58:36 +00:00
|
|
|
server_name jitsi.example.com;
|
2014-05-15 21:50:31 +00:00
|
|
|
# set the root
|
2014-05-16 08:58:36 +00:00
|
|
|
root /srv/jitsi.example.com;
|
2014-05-15 21:50:31 +00:00
|
|
|
index index.html;
|
|
|
|
|
2015-01-16 12:20:40 +00:00
|
|
|
location ~ ^/([a-zA-Z0-9=\?]+)$ {
|
2014-05-15 21:50:31 +00:00
|
|
|
rewrite ^/(.*)$ / break;
|
|
|
|
}
|
2014-09-30 13:05:28 +00:00
|
|
|
|
|
|
|
location / {
|
|
|
|
ssi on;
|
|
|
|
}
|
|
|
|
|
2014-05-15 21:50:31 +00:00
|
|
|
# BOSH
|
|
|
|
location /http-bind {
|
|
|
|
proxy_pass http://localhost:5280/http-bind;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
}
|
|
|
|
|
|
|
|
# xmpp websockets
|
|
|
|
location /xmpp-websocket {
|
2016-04-11 15:16:08 +00:00
|
|
|
proxy_pass http://localhost:5280/xmpp-websocket;
|
2014-05-15 21:50:31 +00:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
tcp_nodelay on;
|
|
|
|
}
|
2014-05-16 08:58:36 +00:00
|
|
|
}
|