28 lines
705 B
Plaintext
28 lines
705 B
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
|
||
|
server_name jitmeet.example.com;
|
||
|
# set the root
|
||
|
root /srv/jitmeet.example.com;
|
||
|
index index.html;
|
||
|
|
||
|
location ~ ^/([a-zA-Z0-9]+)$ {
|
||
|
rewrite ^/(.*)$ / break;
|
||
|
}
|
||
|
# 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 {
|
||
|
proxy_pass http://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;
|
||
|
}
|
||
|
}
|