Install Zammad in docker and use Https

Expected behavior:

Actual behavior:

  • The site can’t be reached. my-domain refuse to connect

Steps to reproduce the behavior:

  • Install Zammad on docker

  • Successfully run on port 80

  • Create a self-certificate on nginx in host (ubuntu)

  • Open port 443, add certificate to my-domain

  • Test and run: ok

  • Config in docker: config zammad-nginx by edit file /zammad-docker-compose/kubernetes/30_configmap_nginx.yaml:
    Add the following line:

      listen 443 ssl http2;
      listen [::]:443 ssl http2;
      server_name support.newtel.vn;
    
      ssl_certificate /opt/zammad/support.newtel.vn.crt;
      ssl_certificate_key /opt/zammad/support.newtel.vn.key;
    
      ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
    
  • Config container zammad-docker-compose_zammad-nginx_1 : use port 443

  • Run zammad docker, access to zammad through my-domain:443 and the site refused to connect

How can I open port 443 in zammad docker?
Thank you very much

so you have nginx on the host listening to port 443?
you can configure it to proxy / and /ws to your docker :80 and :6042

there are examples in search engines, from memory you have to set some headers in the nginx proxy section to get zammad to generate urls with https

1 Like

Thanks for your help. I’ll have a look at it

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.