[SOLVED] Proxmox GUI behind a nginx reverse proxy

mrglobule

New Member
Apr 21, 2021
3
0
1
49
hi everybody,
I install proxmox 6.3-6 on a DMZ, i ran a reverse proxy with nginx following the wiki page: https://pve.proxmox.com/wiki/Web_Interface_Via_Nginx_Proxy
i can connect to the proxmox GUI interface,
i can enter my username and password,
but i didn't see anything else i receive a pop up saying:
Erreur de connexion 401: No ticket
and i didn't see the server and the VM's???


Would you mind to help me please?
 
good morning TodorPetkov,
thanks for replying

Here is my pmx.conf
Code:
upstream pmx.domain.ltd {
        server "pmx.domain.ltd";
}
server {
    listen 80;
    rewrite ^(.*) https://$host$1 permanent;
}
server {
    listen 80;
    server_name pmx.domain.ltd;
    ssl off;
    proxy_redirect off;
    location / {
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_pass https://X.X.X.X:8006;
        proxy_buffering off;
        client_max_body_size 0;
        proxy_connect_timeout 3600s;
        proxy_read_timeout 3600s;
        proxy_send_timeout 3600s;
        send_timeout 3600s;
        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-Prot $scheme;
    }
}
regards
 
Last edited:
In this setup, you redirect everything to https and you don't have TLS configuration. Is this the whole config?
 
yes it's the whole config

thanks a lot, i make an ssl certificate (autosigned for the moment)
and i put alle the tls args in the pmx.conf and all it's OK

Thanks a lot for your replies
 
Last edited: