Cyberpanel + Proxmox

Hi all.

Guys need help, indirectly related to CyberPanel, struggling for a week can not think of a solution. The situation is as follows:

I have two physical servers, one is running CyberPanel, which manages my domain, (domen.io) on the second installed Proxmox.

My task in cyberpanel is to create a subdomain nodes.domen.io and redirect it to the server IP with Proxmox. In general, the task is trivial, I created a subdomain, gave it SSL, and in vHost with the help of chatGPT redirected it to IP 84.160.88.11, but there was a problem - when I go to nodes.domen.io, it redirects me to the server Proxmox but in the address bar is not url - but IP.

I rebuilt vHost (using chatGPT) and now at the address nodes.domen.io it opens the Proxmox web panel, and everything seems to be ok, BUT the console in the Peoxmox panel doesn’t work (noVNC) while when I go directly to the IP it works fine.

Can someone help me to make a vHost so that nodes.domen.io subdomain leads to Proxmox server and noVNC works?

Check out and use nix proxy manager.
Install it on a Proxmox CT and configure your redirect from there.

I proxied nodes.domen.io to IP 777.777.777.777:8006 with this config nodes.domen.io proxies to 777.777.777.777:8006 but in this case noVNC doesn’t work in proxmox web panel, it says - Server connection error. Maybe because both proxmox and cyberpanel use https?

docRoot /home/hotab/node
vhDomain $VH_NAME
vhAliases www.$VH_NAME
adminEmails [email protected]
enableGzip 1
enableIpGeo 1

index {
useServer 0
indexFiles index.php, index.html
}

errorlog $VH_ROOT/logs/hotab.error_log {
useServer 0
logLevel WARN
rollingSize 10M
}

accesslog $VH_ROOT/logs/hotabh.access_log {
useServer 0
logFormat “%h %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i””
logHeaders 5
rollingSize 10M
keepDays 10
compressArchive 1
}

phpIniOverride {

}

module cache {
storagePath /usr/local/lsws/cachedata/$VH_NAME
}

scripthandler {
add lsapi:hotabh75944987 php
}

extprocessor proxmox {
type proxy
address https://777.777.777:8006/
maxConns 100
pcKeepAliveTimeout 60
initTimeout 60
retryTimeout 0
respBuffer 0
}

extprocessor hotab75944987 {
type lsapi
address UDS://tmp/lshttpd/hotab75944987.sock
maxConns 10
env LSAPI_CHILDREN=10
initTimeout 60
retryTimeout 0
persistConn 1
pcKeepAliveTimeout 1
respBuffer 0
autoStart 1
path /usr/local/lsws/lsphp82/bin/lsphp
extUser hotab7594
extGroup hotab7594
memSoftLimit 2047M
memHardLimit 2047M
procSoftLimit 400
procHardLimit 500
}

rewrite {
enable 1
autoLoadHtaccess 1
}

context / {
type proxy
handler proxmox
}

context /.well-known/acme-challenge {
location /usr/local/lsws/Example/html/.well-known/acme-challenge
allowBrowse 1

rewrite {
enable 0
}
addDefaultCharset off

phpIniOverride {

}
}

vhssl {
keyFile /etc/letsencrypt/live/nodes.domen.io/privkey.pem
certFile /etc/letsencrypt/live/nodes.domen.io/fullchain.pem
certChain 1
sslProtocol 24
enableECDHE 1
renegProtection 1
sslSessionCache 1
enableSpdy 15
enableStapling 1
ocspRespMaxAge 86400
}