meet.conf 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. server_name _;
  2. client_max_body_size 0;
  3. root /usr/share/jitsi-meet;
  4. index index.html
  5. error_page 404 /static/404.html;
  6. location ~ ^/([a-zA-Z0-9=\?]+)$ {
  7. rewrite ^/(.*)$ / break;
  8. }
  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. location / {
  19. ssi on;
  20. }
  21. # BOSH
  22. location /http-bind {
  23. proxy_pass {{ .Env.XMPP_BOSH_URL_BASE }}/http-bind;
  24. proxy_set_header X-Forwarded-For $remote_addr;
  25. proxy_set_header Host {{ .Env.XMPP_DOMAIN }};
  26. }
  27. {{ if .Env.ETHERPAD_URL_BASE }}
  28. # Etherpad-lite
  29. location /etherpad/ {
  30. proxy_http_version 1.1;
  31. proxy_set_header Upgrade $http_upgrade;
  32. proxy_set_header Connection 'upgrade';
  33. proxy_set_header Host $host;
  34. proxy_cache_bypass $http_upgrade;
  35. proxy_pass {{ .Env.ETHERPAD_URL_BASE }}/;
  36. proxy_set_header X-Forwarded-For $remote_addr;
  37. proxy_buffering off;
  38. proxy_set_header Host {{ .Env.XMPP_DOMAIN }};
  39. }
  40. {{ end }}