Fix browser view nginx regex locations
All checks were successful
Deploy to BrowserUse VPS / deploy (push) Successful in 2s

This commit is contained in:
andreysk0304 2026-04-28 18:23:11 +03:00
parent 6e94cc07c3
commit 5419746b3d

View file

@ -28,11 +28,11 @@ http {
proxy_pass http://browser:6080; proxy_pass http://browser:6080;
} }
location ~ ^/view/(?<owner>[a-f0-9]{16})$ { location ~ "^/view/(?<owner>[a-f0-9]{16})$" {
return 302 /view/$owner/vnc.html?path=view/$owner/websockify; return 302 /view/$owner/vnc.html?path=view/$owner/websockify;
} }
location ~ ^/view/(?<owner>[a-f0-9]{16})/(?<rest>.*)$ { location ~ "^/view/(?<owner>[a-f0-9]{16})/(?<rest>.*)$" {
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;