2014-07-01 13:18:30 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name jitsi-meet.example.com;
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
|
|
|
server {
|
|
|
|
listen 443 ssl;
|
|
|
|
server_name jitsi-meet.example.com;
|
|
|
|
|
|
|
|
ssl_certificate /var/lib/prosody/jitsi-meet.example.com.crt;
|
|
|
|
ssl_certificate_key /var/lib/prosody/jitsi-meet.example.com.key;
|
|
|
|
|
2014-07-01 13:25:30 +00:00
|
|
|
root /usr/share/jitsi-meet;
|
2014-07-01 13:18:30 +00:00
|
|
|
index index.html index.htm;
|
|
|
|
|
2014-10-22 15:22:18 +00:00
|
|
|
location /config.js {
|
|
|
|
alias /etc/jitsi/meet/jitsi-meet.example.com-config.js;
|
|
|
|
}
|
|
|
|
|
2014-07-01 13:18:30 +00:00
|
|
|
location ~ ^/([a-zA-Z0-9]+)$ {
|
|
|
|
rewrite ^/(.*)$ / break;
|
|
|
|
}
|
|
|
|
|
2014-09-30 13:05:28 +00:00
|
|
|
location / {
|
|
|
|
ssi on;
|
|
|
|
}
|
|
|
|
|
2014-07-01 13:18:30 +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;
|
|
|
|
}
|
|
|
|
}
|