Hi, I have been using Proxmox for a few years now, but always wanted to access it from out of my network. I have an unused domain that I setup with Cloudflare with an A record pointing to my public IP address. I have security measures set up on my network through my ISP. I am encountering an error when visiting my domain (https://www.mydomainexample.com). It is a 521 error that says that the web-server is down. Although it should not be so. My nginx config looks like this:
My hosts file looks like this:
Please let me know if this is correct or is brutally wrong. I am still basically new and followed some confusing tutorials from Proxmox. Please be kind. Thanks for your help!!
Code:
upstream proxmox {
server "www.mydomainexample.com";
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name _;
ssl_certificate /etc/pve/local/pve-ssl.pem;
ssl_certificate_key /etc/pve/local/pve-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;
}
}
My hosts file looks like this:
Code:
127.0.0.1 localhost.localdomain localhost
*private_ip* www.mydomainexample.com pve
Please let me know if this is correct or is brutally wrong. I am still basically new and followed some confusing tutorials from Proxmox. Please be kind. Thanks for your help!!