Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

jitsi-meet.example 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. server_names_hash_bucket_size 64;
  2. types {
  3. # nginx's default mime.types doesn't include a mapping for wasm
  4. application/wasm wasm;
  5. }
  6. server {
  7. listen 80;
  8. listen [::]:80;
  9. server_name jitsi-meet.example.com;
  10. location ^~ /.well-known/acme-challenge/ {
  11. default_type "text/plain";
  12. root /usr/share/jitsi-meet;
  13. }
  14. location = /.well-known/acme-challenge/ {
  15. return 404;
  16. }
  17. location / {
  18. return 301 https://$host$request_uri;
  19. }
  20. }
  21. server {
  22. listen 443 ssl;
  23. listen [::]:443 ssl;
  24. server_name jitsi-meet.example.com;
  25. # Mozilla Guideline v5.4, nginx 1.17.7, OpenSSL 1.1.1d, intermediate configuration
  26. ssl_protocols TLSv1.2 TLSv1.3;
  27. ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
  28. ssl_prefer_server_ciphers off;
  29. ssl_session_timeout 1d;
  30. ssl_session_cache shared:SSL:10m; # about 40000 sessions
  31. ssl_session_tickets off;
  32. add_header Strict-Transport-Security "max-age=63072000" always;
  33. ssl_certificate /etc/jitsi/meet/jitsi-meet.example.com.crt;
  34. ssl_certificate_key /etc/jitsi/meet/jitsi-meet.example.com.key;
  35. root /usr/share/jitsi-meet;
  36. # ssi on with javascript for multidomain variables in config.js
  37. ssi on;
  38. ssi_types application/x-javascript application/javascript;
  39. index index.html index.htm;
  40. error_page 404 /static/404.html;
  41. gzip on;
  42. gzip_types text/plain text/css application/javascript application/json image/x-icon application/octet-stream application/wasm;
  43. gzip_vary on;
  44. gzip_proxied no-cache no-store private expired auth;
  45. gzip_min_length 512;
  46. location = /config.js {
  47. alias /etc/jitsi/meet/jitsi-meet.example.com-config.js;
  48. }
  49. location = /external_api.js {
  50. alias /usr/share/jitsi-meet/libs/external_api.min.js;
  51. }
  52. # ensure all static content can always be found first
  53. location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|.well-known)/(.*)$
  54. {
  55. add_header 'Access-Control-Allow-Origin' '*';
  56. alias /usr/share/jitsi-meet/$1/$2;
  57. # cache all versioned files
  58. if ($arg_v) {
  59. expires 1y;
  60. }
  61. }
  62. # BOSH
  63. location = /http-bind {
  64. proxy_pass http://localhost:5280/http-bind;
  65. proxy_set_header X-Forwarded-For $remote_addr;
  66. proxy_set_header Host $http_host;
  67. }
  68. # xmpp websockets
  69. location = /xmpp-websocket {
  70. proxy_pass http://127.0.0.1:5280/xmpp-websocket?prefix=$prefix&$args;
  71. proxy_http_version 1.1;
  72. proxy_set_header Upgrade $http_upgrade;
  73. proxy_set_header Connection "upgrade";
  74. proxy_set_header Host $http_host;
  75. tcp_nodelay on;
  76. }
  77. # colibri (JVB) websockets for jvb1
  78. location ~ ^/colibri-ws/default-id/(.*) {
  79. proxy_pass http://127.0.0.1:9090/colibri-ws/default-id/$1$is_args$args;
  80. proxy_http_version 1.1;
  81. proxy_set_header Upgrade $http_upgrade;
  82. proxy_set_header Connection "upgrade";
  83. tcp_nodelay on;
  84. }
  85. # load test minimal client, uncomment when used
  86. #location ~ ^/_load-test/([^/?&:'"]+)$ {
  87. # rewrite ^/_load-test/(.*)$ /load-test/index.html break;
  88. #}
  89. #location ~ ^/_load-test/libs/(.*)$ {
  90. # add_header 'Access-Control-Allow-Origin' '*';
  91. # alias /usr/share/jitsi-meet/load-test/libs/$1;
  92. #}
  93. location ~ ^/([^/?&:'"]+)$ {
  94. try_files $uri @root_path;
  95. }
  96. location @root_path {
  97. rewrite ^/(.*)$ / break;
  98. }
  99. location ~ ^/([^/?&:'"]+)/config.js$
  100. {
  101. set $subdomain "$1.";
  102. set $subdir "$1/";
  103. alias /etc/jitsi/meet/jitsi-meet.example.com-config.js;
  104. }
  105. # Anything that didn't match above, and isn't a real file, assume it's a room name and redirect to /
  106. location ~ ^/([^/?&:'"]+)/(.*)$ {
  107. set $subdomain "$1.";
  108. set $subdir "$1/";
  109. rewrite ^/([^/?&:'"]+)/(.*)$ /$2;
  110. }
  111. # BOSH for subdomains
  112. location ~ ^/([^/?&:'"]+)/http-bind {
  113. set $subdomain "$1.";
  114. set $subdir "$1/";
  115. set $prefix "$1";
  116. rewrite ^/(.*)$ /http-bind;
  117. }
  118. # websockets for subdomains
  119. location ~ ^/([^/?&:'"]+)/xmpp-websocket {
  120. set $subdomain "$1.";
  121. set $subdir "$1/";
  122. set $prefix "$1";
  123. rewrite ^/(.*)$ /xmpp-websocket;
  124. }
  125. }