You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

jitsi-meet.example 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. server_names_hash_bucket_size 64;
  2. server {
  3. listen 80;
  4. server_name jitsi-meet.example.com;
  5. return 301 https://$host$request_uri;
  6. }
  7. server {
  8. listen 443 ssl;
  9. server_name jitsi-meet.example.com;
  10. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  11. ssl_prefer_server_ciphers on;
  12. ssl_ciphers "EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA256:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EDH+aRSA+AESGCM:EDH+aRSA+SHA256:EDH+aRSA:EECDH:!aNULL:!eNULL:!MEDIUM:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4:!SEED";
  13. add_header Strict-Transport-Security "max-age=31536000";
  14. ssl_certificate /etc/jitsi/meet/jitsi-meet.example.com.crt;
  15. ssl_certificate_key /etc/jitsi/meet/jitsi-meet.example.com.key;
  16. root /usr/share/jitsi-meet;
  17. # ssi on with javascript for multidomain variables in config.js
  18. ssi on;
  19. ssi_types application/x-javascript application/javascript;
  20. index index.html index.htm;
  21. error_page 404 /static/404.html;
  22. location = /config.js {
  23. alias /etc/jitsi/meet/jitsi-meet.example.com-config.js;
  24. }
  25. location = /external_api.js {
  26. alias /usr/share/jitsi-meet/libs/external_api.min.js;
  27. }
  28. #ensure all static content can always be found first
  29. location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|.well-known)/(.*)$
  30. {
  31. add_header 'Access-Control-Allow-Origin' '*';
  32. alias /usr/share/jitsi-meet/$1/$2;
  33. }
  34. # BOSH
  35. location = /http-bind {
  36. proxy_pass http://localhost:5280/http-bind;
  37. proxy_set_header X-Forwarded-For $remote_addr;
  38. proxy_set_header Host $http_host;
  39. }
  40. location ~ ^/([^/?&:'"]+)$ {
  41. try_files $uri @root_path;
  42. }
  43. location @root_path {
  44. rewrite ^/(.*)$ / break;
  45. }
  46. location ~ ^/([^/?&:'"]+)/config.js$
  47. {
  48. set $subdomain "$1.";
  49. set $subdir "$1/";
  50. alias /etc/jitsi/meet/jitsi-meet.example.com-config.js;
  51. }
  52. #Anything that didn't match above, and isn't a real file, assume it's a room name and redirect to /
  53. location ~ ^/([^/?&:'"]+)/(.*)$ {
  54. set $subdomain "$1.";
  55. set $subdir "$1/";
  56. rewrite ^/([^/?&:'"]+)/(.*)$ /$2;
  57. }
  58. # BOSH for subdomains
  59. location ~ ^/([^/?&:'"]+)/http-bind {
  60. set $subdomain "$1.";
  61. set $subdir "$1/";
  62. set $prefix "$1";
  63. rewrite ^/(.*)$ /http-bind;
  64. }
  65. }