acoustic-agent-27728
02/15/2025, 1:05 AMFeb 15 00:56:06 node1 rancher-system-agent[2960]: time="2025-02-15T00:56:06Z" level=fatal msg="error while connecting to Kubernetes cluster: Get \"https://<domain>/version\": tls: failed to verify certificate: x509: certificate signed by unknown authority"
The panel is behind an nginx proxy with the following configuration
server_name <domain>;
ssl_certificate /etc/letsencrypt/live/npm-8/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/npm-8/privkey.pem;
set $connection_upgrade "Upgrade";
if ($http_upgrade = "") {
set $connection_upgrade "close";
}
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-SSL on;
proxy_pass <http://rancher:80>;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
# This allows the ability for the execute shell window to remain open for up to 15 minutes. Without this parameter, the default is 1 minute and will automatically close.
proxy_read_timeout 900s;
proxy_buffering off;
}
If I run with no reverse proxy and try to register with http://ip:1443 it works fine
Any idea why this happens and how to fix it.creamy-pencil-82913
02/15/2025, 1:17 AMacoustic-agent-27728
02/15/2025, 1:20 AMacoustic-agent-27728
02/15/2025, 1:21 AMcreamy-pencil-82913
02/15/2025, 1:29 AMacoustic-agent-27728
02/15/2025, 1:30 AM