2
0

meet.conf 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. server_name _;
  2. client_max_body_size 0;
  3. root /usr/share/jitsi-meet;
  4. # ssi on with javascript for multidomain variables in config.js
  5. ssi on;
  6. ssi_types application/x-javascript application/javascript;
  7. index index.html index.htm;
  8. error_page 404 /static/404.html;
  9. # Security headers
  10. add_header X-Content-Type-Options nosniff;
  11. add_header X-XSS-Protection "1; mode=block";
  12. location = /config.js {
  13. alias /config/config.js;
  14. }
  15. location = /interface_config.js {
  16. alias /config/interface_config.js;
  17. }
  18. location = /external_api.js {
  19. alias /usr/share/jitsi-meet/libs/external_api.min.js;
  20. }
  21. # ensure all static content can always be found first
  22. location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|.well-known)/(.*)$
  23. {
  24. add_header 'Access-Control-Allow-Origin' '*';
  25. alias /usr/share/jitsi-meet/$1/$2;
  26. }
  27. # colibri (JVB) websockets
  28. location ~ ^/colibri-ws/default-id/(.*) {
  29. proxy_pass http://jvb.meet.jitsi:9090/colibri-ws/default-id/$1$is_args$args;
  30. proxy_http_version 1.1;
  31. proxy_set_header Upgrade $http_upgrade;
  32. proxy_set_header Connection "upgrade";
  33. tcp_nodelay on;
  34. }
  35. # BOSH
  36. location = /http-bind {
  37. proxy_pass {{ .Env.XMPP_BOSH_URL_BASE }}/http-bind;
  38. proxy_set_header X-Forwarded-For $remote_addr;
  39. proxy_set_header Host {{ .Env.XMPP_DOMAIN }};
  40. }
  41. location ~ ^/([^/?&:'"]+)$ {
  42. try_files $uri @root_path;
  43. }
  44. location @root_path {
  45. rewrite ^/(.*)$ / break;
  46. }
  47. {{ if .Env.ETHERPAD_URL_BASE }}
  48. # Etherpad-lite
  49. location /etherpad/ {
  50. proxy_http_version 1.1;
  51. proxy_set_header Upgrade $http_upgrade;
  52. proxy_set_header Connection 'upgrade';
  53. proxy_set_header Host $host;
  54. proxy_cache_bypass $http_upgrade;
  55. proxy_pass {{ .Env.ETHERPAD_URL_BASE }}/;
  56. proxy_set_header X-Forwarded-For $remote_addr;
  57. proxy_buffering off;
  58. proxy_set_header Host {{ .Env.XMPP_DOMAIN }};
  59. }
  60. {{ end }}