aboutsummaryrefslogtreecommitdiff
path: root/app/jitsi/integration/meet/nginx.conf
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@dufour.io>2021-01-30 12:06:14 +0100
committerQuentin Dufour <quentin@dufour.io>2021-01-30 12:06:14 +0100
commit09e1e641a7d60dbe0c7a91ac3507621ebb8a8802 (patch)
treec0ddfe16db4fb139225bcd4720bccbd3c3bd62c7 /app/jitsi/integration/meet/nginx.conf
parent9ea066d6dfd3ec7f614f5f7f1296f0a236a0d18b (diff)
downloadinfrastructure-09e1e641a7d60dbe0c7a91ac3507621ebb8a8802.tar.gz
infrastructure-09e1e641a7d60dbe0c7a91ac3507621ebb8a8802.zip
Working on meet frontend
Diffstat (limited to 'app/jitsi/integration/meet/nginx.conf')
-rw-r--r--app/jitsi/integration/meet/nginx.conf42
1 files changed, 42 insertions, 0 deletions
diff --git a/app/jitsi/integration/meet/nginx.conf b/app/jitsi/integration/meet/nginx.conf
new file mode 100644
index 0000000..0ee2135
--- /dev/null
+++ b/app/jitsi/integration/meet/nginx.conf
@@ -0,0 +1,42 @@
+# some doc: https://www.nginx.com/resources/wiki/start/topics/examples/full/
+error_log /dev/stderr;
+
+events {}
+
+http {
+ access_log /dev/stdout;
+ server_names_hash_bucket_size 64;
+
+ server {
+ listen 0.0.0.0:443 ssl http2 default_server;
+ listen [::]:443 ssl http2 default_server;
+ server_name _;
+ ssl_certificate /etc/nginx/jitsi.crt;
+ ssl_certificate_key /etc/nginx/jitsi.key;
+ root /srv/jitsi-meet;
+ index index.html;
+
+ # lot of work would be needed to improve location rules
+ # - in order to allow - and _ in the URL, even space
+ # - while not shadowing other files (.js and following locations)
+ # - passed some times twice on the problem, not as easy as it seems
+ location ~ ^/([a-zA-Z0-9=\?]+)$ {
+ rewrite ^/(.*)$ / break;
+ }
+ location / {
+ ssi on;
+ }
+
+ location /external_api.js {
+ alias /srv/jitsi-meet/libs/external_api.min.js;
+ }
+
+ location /http-bind {
+ proxy_pass http://jitsi-xmpp:5280/http-bind;
+ proxy_set_header X-Forwarded-For \$remote_addr;
+ proxy_set_header Host \$http_host;
+ }
+
+
+ }
+}