diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-03-22 16:05:42 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-03-22 16:05:42 +0100 |
commit | e24522d8285878240ee0d873616bc177313aa7ba (patch) | |
tree | 2522bb5878b498d4675b0f0111aae00870682968 /docker/jitsi/jitsi-front/entrypoint.sh | |
parent | 0a1027a1ac8390422033b8eeff1f7412b58d961d (diff) | |
download | infrastructure-e24522d8285878240ee0d873616bc177313aa7ba.tar.gz infrastructure-e24522d8285878240ee0d873616bc177313aa7ba.zip |
Jitsi front seems ok
Diffstat (limited to 'docker/jitsi/jitsi-front/entrypoint.sh')
-rwxr-xr-x | docker/jitsi/jitsi-front/entrypoint.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/docker/jitsi/jitsi-front/entrypoint.sh b/docker/jitsi/jitsi-front/entrypoint.sh new file mode 100755 index 0000000..f3c9971 --- /dev/null +++ b/docker/jitsi/jitsi-front/entrypoint.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +cat > /etc/nginx/sites-available/jitsi <<EOF +server_names_hash_bucket_size 64; + +server { + listen 0.0.0.0:80 default_server; + listen [::]:80 default_server; + server_name _; + root /srv/jitsi-meet; + index index.html; + location ~ ^/([a-zA-Z0-9=\?]+)$ { + rewrite ^/(.*)$ / break; + } + location / { + ssi on; + } + # BOSH, Bidirectional-streams Over Synchronous HTTP + # https://en.wikipedia.org/wiki/BOSH_(protocol) + location /http-bind { + proxy_pass http://${JITSI_PROSODY_BOSH_HOST}:${JITSI_PROSODY_BOSH_PORT}/http-bind; + proxy_set_header X-Forwarded-For \$remote_addr; + proxy_set_header Host \$http_host; + } + # external_api.js must be accessible from the root of the + # installation for the electron version of Jitsi Meet to work + # https://github.com/jitsi/jitsi-meet-electron + location /external_api.js { + alias /srv/jitsi-meet/libs/external_api.min.js; + } +} +EOF + +ln -sf /etc/nginx/sites-available/jitsi /etc/nginx/sites-enabled/jitsi + +exec "$@" |