moint pt
This commit is contained in:
parent
9da73c4fee
commit
c39e18a377
1 changed files with 15 additions and 12 deletions
|
@ -1,9 +1,9 @@
|
||||||
server {
|
server {
|
||||||
listen 657 ssl;
|
listen 657 ssl;
|
||||||
server_name your-domain.com;
|
server_name kvm.nazuna.ovh;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/your-domain.com/fullchain.pem;
|
ssl_certificate /root/certs/pve-sto/cert.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/your-domain.com/privkey.pem;
|
ssl_certificate_key /root/certs/pve-sto/key.pem;
|
||||||
|
|
||||||
location /pbs/ {
|
location /pbs/ {
|
||||||
rewrite ^/pbs(/.*)$ $1 break;
|
rewrite ^/pbs(/.*)$ $1 break;
|
||||||
|
@ -12,12 +12,13 @@ server {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Accept-Encoding "";
|
||||||
proxy_set_header Connection "Upgrade";
|
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
sub_filter 'href="/' 'href="/pbs/';
|
sub_filter 'href="/' 'href="/pbs/';
|
||||||
sub_filter 'src="/' 'src="/pbs/';
|
sub_filter 'src="/' 'src="/pbs/';
|
||||||
|
sub_filter 'action="/' 'action="/pbs/';
|
||||||
|
sub_filter 'url: "/"' 'url: "/pbs/"';
|
||||||
}
|
}
|
||||||
|
|
||||||
location /main/ {
|
location /main/ {
|
||||||
|
@ -27,12 +28,13 @@ server {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Accept-Encoding "";
|
||||||
proxy_set_header Connection "Upgrade";
|
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
sub_filter 'href="/' 'href="/main/';
|
sub_filter 'href="/' 'href="/main/';
|
||||||
sub_filter 'src="/' 'src="/main/';
|
sub_filter 'src="/' 'src="/main/';
|
||||||
|
sub_filter 'action="/' 'action="/main/';
|
||||||
|
sub_filter 'url: "/"' 'url: "/main/"';
|
||||||
}
|
}
|
||||||
|
|
||||||
location /sto/ {
|
location /sto/ {
|
||||||
|
@ -42,11 +44,12 @@ server {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Accept-Encoding "";
|
||||||
proxy_set_header Connection "Upgrade";
|
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
sub_filter 'href="/' 'href="/sto/';
|
sub_filter 'href="/' 'href="/sto/';
|
||||||
sub_filter 'src="/' 'src="/sto/';
|
sub_filter 'src="/' 'src="/sto/';
|
||||||
|
sub_filter 'action="/' 'action="/sto/';
|
||||||
|
sub_filter 'url: "/"' 'url: "/sto/"';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue