Ad Widget

Collapse

Zabbix 7.0 via Docker Compose HTTPS seems to be unavailable

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bennyboyy
    Junior Member
    • Jun 2024
    • 6

    #1

    Zabbix 7.0 via Docker Compose HTTPS seems to be unavailable

    Hello, I deployed Zabbix with PostgreSQL and I am trying to enable HTTPS, but it doesn't seem to be available. It's as if a portion of the configuration is missing in NGINX. Did I miss something?

    Code:
    8331d13a1e1b   zabbix/zabbix-web-nginx-pgsql:alpine-7.0-latest   "docker-entrypoint.sh"   3 days ago   Up 3 days (healthy)   0.0.0.0:80->8080/tcp, :::80->8080/tcp, 0.0.0.0:443->8443/tcp, :::443->8443/tcp   zabbix-docker-zabbix-web-nginx-pgsql-1
    Code:
    docker exec -it zabbix-docker-zabbix-web-nginx-pgsql-1 /bin/bash
    Code:
    8331d13a1e1b:/usr/share/zabbix$ grep -ir 8443 /etc/nginx/
    8331d13a1e1b:/usr/share/zabbix$ grep -ir 8080 /etc/nginx/
    /etc/nginx/http.d/nginx.conf:    listen 8080;
    /etc/nginx/http.d/nginx.conf:    listen [::]:8080;




    Thank you in advance for your help!
  • Answer selected by bennyboyy at 25-07-2024, 19:11.
    jowe
    Junior Member
    • Jul 2024
    • 1

    Hello bennyboyy, i had the same problem. You need exactly three files with the following names: ssl.crt, ssl.key, and dhparam.pem. It is important to adjust the path; this worked for me:
    • Place the certificates and DH parameters in /etc/ssl/nginx
    • Edit compose_zabbix_components.yaml using nano and under services -> web-nginx -> volumes, remove ${DATA_DIRECTORY} before /etc/ssl/nginx so that /etc/ssl/nginx:/etc/ssl/nginxis there
    • Run docker-compose_v3_ubuntu_pgsql_latest.yaml --profile full up -d

    Comment

    • jowe
      Junior Member
      • Jul 2024
      • 1

      #2
      Hello bennyboyy, i had the same problem. You need exactly three files with the following names: ssl.crt, ssl.key, and dhparam.pem. It is important to adjust the path; this worked for me:
      • Place the certificates and DH parameters in /etc/ssl/nginx
      • Edit compose_zabbix_components.yaml using nano and under services -> web-nginx -> volumes, remove ${DATA_DIRECTORY} before /etc/ssl/nginx so that /etc/ssl/nginx:/etc/ssl/nginxis there
      • Run docker-compose_v3_ubuntu_pgsql_latest.yaml --profile full up -d

      Comment

      Working...