tiredofit / docker-collabora-online

Dockerized Online Office Suite with customizable options
MIT License
86 stars 28 forks source link

Got ERR Socket #21 SSL BIO error: #3

Closed whlsxl closed 5 years ago

whlsxl commented 5 years ago

Hey Tiredofit,

I use traefik as reverse proxy, my docker-compose.yml like this.

  collabora:
    image: tiredofit/libreoffice-online
    container_name: nextcloud_collabora
    # expose:
    #   - 9980
    cap_add:
      - MKNOD
    environment:
      - ADMIN_USER=[admin]
      - ADMIN_PASS=[password]
      - ALLOWED_HOSTS=*
      - DICTIONARIES="en_GB en_US"
      - LOG_LEVEL=warning
    labels:
      - "traefik.enable=true"
      - "traefik.backend=collabora"
      - "traefik.port=9980"
      - "traefik.frontend.rule=Host:[collabora_URL]"
      - "traefik.docker.network=traefik"
      - "traefik.protocol=https"
    restart: always
    networks:
      - default
      - traefik

But when I open collabora_URL, got this error

wsd-00061-00841 2019-07-06 16:28:05.015766 [ websrv_poll ] ERR Socket #21 SSL BIO error: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate (0: Success)| ./net/SslSocket.hpp:281 wsd-00061-00841 2019-07-06 16:28:05.015819 [ websrv_poll ] ERR Error while handling poll for socket #21 in websrv_poll: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate| ./net/Socket.hpp:570

I do some research, maybe this because need to set extra_params=--disable-ssl", how can I set this env ?

whlsxl commented 5 years ago

just add env is OK,

  collabora:
    image: tiredofit/libreoffice-online
    container_name: nextcloud_collabora
    # expose:
    #   - 9980
    cap_add:
      - MKNOD
    environment:
      - ADMIN_USER=[admin]
      - ADMIN_PASS=[password]
      - ALLOWED_HOSTS=*
      - DICTIONARIES="en_GB en_US"
      - LOG_LEVEL=warning
      - "DONT_GEN_SSL_CERT=true"
      - "extra_params=--o:ssl.enable=false"
    labels:
      - "traefik.enable=true"
      - "traefik.backend=collabora"
      - "traefik.port=9980"
      - "traefik.frontend.rule=Host:[collabora_URL]"
      - "traefik.docker.network=traefik"
      - "traefik.protocol=https"
    restart: always
    networks:
      - default
      - traefik
tiredofit commented 5 years ago

Nice! Thanks. We're switching our entire infrastructure over to Traefik this upcoming week and will be helpful for our SREs and Devs.

whlsxl commented 5 years ago

collabora in Traefik has many problem, still don't run with traefik & nextcloud successful!

tiredofit commented 5 years ago

OK. I will report back with our migration to see how it works out for us and share any results/work.

tiredofit commented 5 years ago

New image being built with EXTRA_OPTIONS variable. Will update when complete.

whlsxl commented 5 years ago

THX!

tiredofit commented 5 years ago

New build docker pull tiredofit/libreoffice-online:latest or docker pull tiredofit/libreoffice-online:1.3.3

whlsxl commented 5 years ago

I will try! but now I have another problem, two docker containers are behind traefik, use https. but the two containers can't access each other use full url through traefik. But curl in host, both is OK

tiredofit commented 5 years ago

I'll have some info for you throughout this week as we complete our migration over to traefik from nginx-proxy.