meet.conf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. location = /config.js {
  10. alias /config/config.js;
  11. }
  12. location = /interface_config.js {
  13. alias /config/interface_config.js;
  14. }
  15. location = /external_api.js {
  16. alias /usr/share/jitsi-meet/libs/external_api.min.js;
  17. }
  18. # ensure all static content can always be found first
  19. location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|.well-known)/(.*)$
  20. {
  21. add_header 'Access-Control-Allow-Origin' '*';
  22. alias /usr/share/jitsi-meet/$1/$2;
  23. }
  24. # BOSH
  25. location = /http-bind {
  26. proxy_pass {{ .Env.XMPP_BOSH_URL_BASE }}/http-bind;
  27. proxy_set_header X-Forwarded-For $remote_addr;
  28. proxy_set_header Host {{ .Env.XMPP_DOMAIN }};
  29. }
  30. location ~ ^/([^/?&:'"]+)$ {
  31. try_files $uri @root_path;
  32. }
  33. location @root_path {
  34. rewrite ^/(.*)$ / break;
  35. }
  36. {{ if .Env.ETHERPAD_URL_BASE }}
  37. # Etherpad-lite
  38. location /etherpad/ {
  39. proxy_http_version 1.1;
  40. proxy_set_header Upgrade $http_upgrade;
  41. proxy_set_header Connection 'upgrade';
  42. proxy_set_header Host $host;
  43. proxy_cache_bypass $http_upgrade;
  44. proxy_pass {{ .Env.ETHERPAD_URL_BASE }}/;
  45. proxy_set_header X-Forwarded-For $remote_addr;
  46. proxy_buffering off;
  47. proxy_set_header Host {{ .Env.XMPP_DOMAIN }};
  48. }
  49. {{ end }}