aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-03-22 18:21:32 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-03-22 18:21:32 +0100
commitceb8a8b930f5cacf572a2ac8382e199b86dd8da8 (patch)
tree68b61d4af3b97b13362a413b817d950d9c117d47
parent51b656e937aa469e8f09a43bd51dbdabdd4eea1f (diff)
downloadinfrastructure-ceb8a8b930f5cacf572a2ac8382e199b86dd8da8.tar.gz
infrastructure-ceb8a8b930f5cacf572a2ac8382e199b86dd8da8.zip
Migrate to HTTPS to test in browser
-rw-r--r--docker/jitsi/02_run.yml3
-rwxr-xr-xdocker/jitsi/jitsi-front/entrypoint.sh6
2 files changed, 6 insertions, 3 deletions
diff --git a/docker/jitsi/02_run.yml b/docker/jitsi/02_run.yml
index ccf1878..62c468d 100644
--- a/docker/jitsi/02_run.yml
+++ b/docker/jitsi/02_run.yml
@@ -11,8 +11,9 @@ services:
jitsi-front:
build: ./jitsi-front
ports:
- - "80:80"
+ - "443:443"
env_file: [ 'dev.env' ]
+ volumes: [ './jitsi-certs/:/certs:ro' ]
jitsi-conference-focus:
build: ./jitsi-conference-focus
env_file: [ 'dev.env' ]
diff --git a/docker/jitsi/jitsi-front/entrypoint.sh b/docker/jitsi/jitsi-front/entrypoint.sh
index f3c9971..1e18bd1 100755
--- a/docker/jitsi/jitsi-front/entrypoint.sh
+++ b/docker/jitsi/jitsi-front/entrypoint.sh
@@ -4,9 +4,11 @@ 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;
+ listen 0.0.0.0:443 ssl http2 default_server;
+ listen [::]:443 ssl http2 default_server;
server_name _;
+ ssl_certificate ${JITSI_CERTS_FOLDER}/jitsi.deuxfleurs.fr.crt;
+ ssl_certificate_key ${JITSI_CERTS_FOLDER}/jitsi.deuxfleurs.fr.key;
root /srv/jitsi-meet;
index index.html;
location ~ ^/([a-zA-Z0-9=\?]+)$ {