55 lines
1.9 KiB
Text
55 lines
1.9 KiB
Text
server {
|
|
listen 657 ssl;
|
|
server_name kvm.nazuna.ovh;
|
|
|
|
ssl_certificate /root/certs/pve-sto/cert.pem;
|
|
ssl_certificate_key /root/certs/pve-sto/key.pem;
|
|
|
|
location /pbs/ {
|
|
rewrite ^/pbs(/.*)$ $1 break;
|
|
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 $scheme;
|
|
|
|
proxy_set_header Accept-Encoding "";
|
|
sub_filter_once off;
|
|
sub_filter 'href="/' 'href="/pbs/';
|
|
sub_filter 'src="/' 'src="/pbs/';
|
|
sub_filter 'action="/' 'action="/pbs/';
|
|
sub_filter 'url: "/"' 'url: "/pbs/"';
|
|
}
|
|
|
|
location /main/ {
|
|
rewrite ^/main(/.*)$ $1 break;
|
|
proxy_pass https://192.168.2.178:8006/;
|
|
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_set_header Accept-Encoding "";
|
|
sub_filter_once off;
|
|
sub_filter 'href="/' 'href="/main/';
|
|
sub_filter 'src="/' 'src="/main/';
|
|
sub_filter 'action="/' 'action="/main/';
|
|
sub_filter 'url: "/"' 'url: "/main/"';
|
|
}
|
|
|
|
location /sto/ {
|
|
rewrite ^/sto(/.*)$ $1 break;
|
|
proxy_pass https://192.168.2.179:8006/;
|
|
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_set_header Accept-Encoding "";
|
|
sub_filter_once off;
|
|
sub_filter 'href="/' 'href="/sto/';
|
|
sub_filter 'src="/' 'src="/sto/';
|
|
sub_filter 'action="/' 'action="/sto/';
|
|
sub_filter 'url: "/"' 'url: "/sto/"';
|
|
}
|
|
}
|