mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(prox): novnc
This commit is contained in:
parent
5f356a2e1a
commit
0d062b92ee
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ in {
|
||||||
if ($request_uri ~ "^/([^/]+).*") {
|
if ($request_uri ~ "^/([^/]+).*") {
|
||||||
set $prox_prefix $1;
|
set $prox_prefix $1;
|
||||||
}
|
}
|
||||||
if ($request_uri ~ "^/(pve2/.*|pwt/.*|api2/.*|xtermjs/.*|[^/]+\.js.*)") {
|
if ($request_uri ~ "^/(pve2/.*|pwt/.*|api2/.*|xtermjs/.*|novnc/.*|[^/]+\.js.*)") {
|
||||||
rewrite /(.*) /prox/$1 last;
|
rewrite /(.*) /prox/$1 last;
|
||||||
}
|
}
|
||||||
if ($http_referer ~ "^https://${escapeRegex nginx.virtualHosts.prox.serverName}/([^/]+)/$") {
|
if ($http_referer ~ "^https://${escapeRegex nginx.virtualHosts.prox.serverName}/([^/]+)/$") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue