Connection problems with nginx ssl reverse proxy

Hello everyone.

I’m trying to install datagerry using docker compose. When I configure nginx with ssl, I see the following message:

“If you see this message, the frontend cannot find a connection to DATAGERRY. Probably there is a problem with your backend instance. You can try to connect manually. Otherwise notify your administrator.”

and connection status “DISCONNECTED”

When I specify the server address (192.168.1.123:443) in the connection details fields, the connection status becomes “CONNECTED” and I can continue working. But this must be specified in each browser.

Connection to 192.168.1.123:4000 works fine.

Please tell me where in the settings or ENV variables I need to specify the address to avoid this problem.

Thanks.

Hi @maks.yak,

The DataGerry frontend remains DISCONNECTED until the user enters the backend server URL on the connection page. That needs to be done only once per browser—once set, the same browser will remember it for future sessions.

Sincerely,

Your DataGerry Team

Thank you so much for explanation.

Same problem/workaround here.

I do not understand WHY a normal user should be forced to enter such technical details even only at the first usage.

@abdullah-khalid

Could you please permanently fix this as a programmer?

Thank you

1 Like

Hi @cmdbeval1 @maks.yak ,

I’ve spoken with our package team and it turns out there’s currently an issue with our SSL setup. We’re actively fixing it and will resolve this as soon as possible. In the meantime, please use the HTTP (non-SSL). Thanks for your patience!

Sincerely,

Your DataGerry Team

The problem also exists with the standalone installation without Docker.

We fixed it by having nginx listen on port 4000 and datagerry itself on port 8080.

nginx:

upstream datagerry_backend {
    least_conn;
    server 127.0.0.1:8080;
}
server {
    server_name gerry.example.com;
    listen *:80;

    location / {
        return 301 https://$host$request_uri;
    }
}
server {
    listen *:443 ssl;
    listen *:4000 ssl;
    server_name gerry.example.com;

    location / {
        proxy_redirect      off;
        proxy_set_header    Host              $http_host;
        proxy_set_header    X-Real-IP         $remote_addr;
        proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header    X-Forwarded-Proto $scheme;
        proxy_read_timeout  600;
	    proxy_pass          http://datagerry_backend/;
	    resolver            10.10.32.10 10.10.32.11 ipv6=off valid=30s;
        rewrite ^/(.*)      /$1 break;
    }
    include /etc/nginx/ssl.conf;
    ssl_certificate /etc/ssl/certs/wildcard_example_com.crt;
    ssl_certificate_key /etc/ssl/private/wildcard_example_com.key;
}

cmdb.conf

[WebServer]
host = 127.0.0.1
port = 8080
1 Like