Is compression works?
Just tested my site with gtmetrix.com and it shows problems with compression. You can look at the report here.
COMMENTO_GZIP_STATIC: "true"
is set in my stack, but there is no effect.
Does it even work?
Workaround: use traefik's compression
My commento setup:
commento:
image: registry.gitlab.com/commento/commento:v1.8.0
networks:
- traefik
- commento
environment:
COMMENTO_FORBID_NEW_OWNERS: "true"
COMMENTO_ORIGIN: https://commento.lex.la
COMMENTO_PORT: 8080
COMMENTO_POSTGRES: postgres://postgres:postgres@commento-db:5432/commento?sslmode=disable
COMMENTO_GZIP_STATIC: "true"
COMMENTO_AKISMET_KEY: "XXX"
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.commento.entrypoints=websecure"
- "traefik.http.routers.commento.rule=Host(`commento.lex.la`)"
- "traefik.http.routers.commento.service=commento"
- "traefik.http.routers.commento.tls.certresolver=prodssl"
- "traefik.http.routers.commento.tls=true"
- "traefik.http.services.commento.loadbalancer.server.port=8080"