Guest User

Untitled

a guest
Oct 1st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name conference.simosnap.com;
  4. return 301 https://$host$request_uri;
  5. }
  6.  
  7. server {
  8. listen 443;
  9.  
  10. server_name conference.simosnap.com;
  11.  
  12. ssl on;
  13. ssl_certificate /etc/jitsi/meet/conference.simosnap.com.crt;
  14. ssl_certificate_key /etc/jitsi/meet/conference.simosnap.com.key;
  15.  
  16.  
  17. # set the root
  18. root /usr/share/jitsi-meet;
  19. index index.html;
  20.  
  21. location /config.js {
  22. alias /etc/jitsi/meet/conference.simosnap.com-config.js;
  23. }
  24.  
  25. location ~ /external_api.* {
  26. root /usr/share/jitsi-meet/libs;
  27. }
  28.  
  29. location ~ ^/([a-zA-Z0-9=\?]+)$ {
  30. rewrite ^/(.*)$ / break;
  31. }
  32.  
  33. location / {
  34. ssi on;
  35. }
  36.  
  37. # BOSH
  38. location /http-bind {
  39. proxy_pass http://localhost:5280/http-bind;
  40. proxy_set_header X-Forwarded-For $remote_addr;
  41. proxy_set_header Host $http_host;
  42. }
  43.  
  44. # xmpp websockets
  45. location /xmpp-websocket {
  46. proxy_pass http://localhost:5280/xmpp-websocket;
  47. proxy_http_version 1.1;
  48. proxy_set_header Upgrade $http_upgrade;
  49. proxy_set_header Connection "upgrade";
  50. proxy_set_header Host $host;
  51. tcp_nodelay on;
  52. }
  53.  
  54. }
Advertisement
Add Comment
Please, Sign In to add comment