docker-jitsi-meet icon indicating copy to clipboard operation
docker-jitsi-meet copied to clipboard

Suggestion: option to turn off gzip compression by ENV - to be usable behind nginx reverse proxy with sub_filter

Open BananaAcid opened this issue 3 years ago • 7 comments
trafficstars

Using a nginx reverse proxy and trying to replace content with nginx sub_filter directive, GZIP must be disabled (as uncompressed streams between servers is best anyways, as the outward facing proxy handles SSL and any kind of compression, brotli etc).

Changing the /config/nginx/nginx.conf does not seem to be persistent between reboots.

Any suggestions on how to tackle this?

BananaAcid avatar May 06 '22 08:05 BananaAcid

Adding some env vars to disable compression would be acceptable.

saghul avatar May 06 '22 09:05 saghul

Adding some env vars to disable compression would be acceptable.

Sounds good, as other container handle this as well - would be great to see this in the dockerfile / container.

BananaAcid avatar May 07 '22 20:05 BananaAcid

Do you intend to send a PR? Just to be clear, I don't have the time to look into this anytime soon.

saghul avatar May 09 '22 08:05 saghul

I am probably not able to figure out how --

BananaAcid avatar May 10 '22 11:05 BananaAcid

temporary solution, in a docker-compose:

version: '3'

services:

    # Frontend
    web:
        image: jitsi/web:stable-7210-2
        
        command: >
            bash -c "
                echo \"checking for required paths / creating them\"
                mkdir -p ${CONFIG}/{web/crontabs,web/letsencrypt,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri}
                
                echo \"disabling gzip compression\"
                sed -i \"s/gzip on/gzip off/g\" /config/nginx/nginx.conf
                
                echo \"waiting for nginx\"
                until pidof nginx >> /dev/null ;
                do
                  echo \"... waiting\"
                  sleep 1
                done
                
                sleep 7
                echo \"restarting nginx\"
                /etc/init.d/nginx stop
                sleep 7
                /etc/init.d/nginx start

                sleep 100000000000000;"

        
        volumes:
...

BananaAcid avatar May 25 '22 09:05 BananaAcid