PVE界面优化
配置nginx反向代理
server {
listen 80;
listen [::]:80;
server_name xxx.xxx.com;
rewrite ^(.*)$ https://${server_name}$1 permanent;
}
server {
listen 443;
listen [::]:443;
listen 192.168.99.1:4431;
server_name xxx.xxx.com;
ssl_certificate ssl/cert.crt;
ssl_certificate_key ssl/cert.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
location / {
proxy_pass https://192.168.99.2:8006;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $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-Proto $scheme;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
配置Xterm.js终端
- 为虚拟机硬件添加一个串口。
- 验证串口是否有系统日志输出。
- 无日志时修改、boot/grub.cfg配置,增加串口。
- 重启设备。