Advertisement
Guest User

Untitled

a guest
Aug 1st, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. server_name jitsi.example.com;
  5. # set the root
  6. root /srv/jitsi.example.com;
  7. index index.html;
  8.  
  9. location ~ ^/([a-zA-Z0-9]+)$ {
  10. rewrite ^/(.*)$ / break;
  11. }
  12. # BOSH
  13. location /http-bind {
  14. proxy_pass http://localhost:5280/http-bind;
  15. proxy_set_header X-Forwarded-For $remote_addr;
  16. proxy_set_header Host $http_host;
  17. }
  18.  
  19. # xmpp websockets
  20. location /xmpp-websocket {
  21. proxy_pass http://localhost:5280;
  22. proxy_http_version 1.1;
  23. proxy_set_header Upgrade $http_upgrade;
  24. proxy_set_header Connection "upgrade";
  25. proxy_set_header Host $host;
  26. tcp_nodelay on;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement