Reverse Proxy config with nginx

Oct 2, 2022
38
2
8
Hi all,

i have a PBS running on a root server at Hetzner. I also have several other servers and VMs at Hetzner. I monitor them with Uptimerobot and recently also trying uptimekuma.

But PBS is monitored as offline with uptimerobot and uptimekuma, however I can access the GUI without any problems.

This is what uptimerobot shows as response:

Code:
{
  "server": "nginx",
  "date": "Sat, 10 Dec 2022 14:59:42 GMT",
  "content-type": "text/html; charset=utf-8",
  "content-length": "146",
  "connection": "close"
}

And this is my reverse proxy conf:

Code:
upstream proxmox {
    server pbs.XXX;
}

server {
    server_name _;
    listen 80;
    rewrite ^(.*) https://$host$1 permanent;
}

server {
    server_name _;
    listen [::]:443 ssl http2;
    listen 443 ssl http2;
    ssl_certificate /etc/ssl/wildcard.XXX.bundle.crt;
    ssl_certificate_key /etc/ssl/wildcard.XXX.key;
    include /etc/nginx/snippets/tls-hardening.conf;
    proxy_redirect off;
    location / {
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_pass https://localhost:8007;
        proxy_buffering off;
        client_max_body_size 0;
        proxy_connect_timeout  3600s;
        proxy_read_timeout  3600s;
        proxy_send_timeout  3600s;
        send_timeout  3600s;
    }
}

Does anyone has an idea why the monitoring systems cannot detect PBS as online and working?

I use the exact same config with multiple servers and all of them can be monitored correctly
 
Last edited:
Hi,

at first sight, the nginx config appears correct (other than the upstream section is entirely unused and can be removed).
Are there any errors from nginx itself? (Normally in the syslog or under /var/log/nginx, depending on your setup.)

What do the following commands print?
  • curl -v https://<problematic-pbs-server> and
  • curl -v https://<working-server-with-same-config>
Are there differences in the output? (You can also provide them here, to help debugging.)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!