31 lines
788 B
Plaintext
31 lines
788 B
Plaintext
upstream proxmox {
|
|
server 127.0.0.1:8006;
|
|
}
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
rewrite ^(.*) https://$host$1 permanent;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
server_name _;
|
|
ssl_certificate /root/home.lab.local.crt;
|
|
ssl_certificate_key /root/home.lab.local.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;
|
|
}
|
|
}
|