Proxy reverse

linuxmall

New Member
Feb 8, 2022
5
1
3
30
Hi everyone,
I was following the official documentation to implement reverse proxy in proxmox, but I'm having trouble authenticating.

evidence:

login1.png


debug.png

Code:
upstream proxmox {
    server "pve.homelab.site";
}
 
server {
    listen 80 default_server;
    rewrite ^(.*) https://$host$1 permanent;
}

server {
    listen 443 ssl;
    server_name _;
    ssl_certificate /etc/pve/nodes/pve/pveproxy-ssl.pem;
    ssl_certificate_key /etc/pve/nodes/pve/pveproxy-ssl.key;
    proxy_redirect off;
    location / {
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_pass https://localhost:8006;
    proxy_buffering off;
    client_max_body_size 0;
    proxy_connect_timeout  3600s;
        proxy_read_timeout  3600s;
        proxy_send_timeout  3600s;
        send_timeout  3600s;
    }
}

Please, can anyone help me?
 
Since you are able to reach the interface and you get a 401 error, are you sure the credentials you provided are correct? Can you log into the node via SSH?
 
Is your node part of a cluster? If so is the entire cluster online? Can you check /var/log/auth.log for any failed log in attempts?