test pbs no ssl
This commit is contained in:
parent
562837f284
commit
46af26886e
1 changed files with 21 additions and 30 deletions
|
@ -1,44 +1,35 @@
|
|||
server {
|
||||
listen 564 ssl;
|
||||
server_name kvm.nazuna.ovh;
|
||||
listen 564 ;
|
||||
server_name web.srv;
|
||||
|
||||
ssl_certificate /root/certs/pve-sto/cert.pem;
|
||||
ssl_certificate_key /root/certs/pve-sto/key.pem;
|
||||
|
||||
location /sto/ {
|
||||
proxy_pass https://192.168.2.179: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;
|
||||
proxy_ssl_verify off;
|
||||
}
|
||||
|
||||
location /main/ {
|
||||
proxy_pass https://192.168.2.178: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;
|
||||
proxy_ssl_verify off;
|
||||
}
|
||||
location /pbs/ {
|
||||
location /pbs/ {
|
||||
proxy_pass https://192.168.2.180:8007/;
|
||||
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 https;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_buffering off;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Connection "Upgrade";
|
||||
|
||||
# WebSockets support
|
||||
proxy_read_timeout 3600;
|
||||
proxy_ssl_verify off;
|
||||
}
|
||||
|
||||
# Fix Web UI assets loading
|
||||
location /pbs/css/ {
|
||||
proxy_pass https://192.168.2.180:8007/css/;
|
||||
}
|
||||
location /pbs/js/ {
|
||||
proxy_pass https://192.168.2.180:8007/js/;
|
||||
}
|
||||
location /pbs/images/ {
|
||||
proxy_pass https://192.168.2.180:8007/images/;
|
||||
}
|
||||
|
||||
error_log /var/log/nginx/pbs_error.log;
|
||||
access_log /var/log/nginx/pbs_access.log;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue