mirror of
https://github.com/fcwu/docker-ubuntu-vnc-desktop
synced 2026-08-05 16:12:41 +02:00
feat: support video mode
This commit is contained in:
@@ -10,26 +10,21 @@ server {
|
||||
#_HTTP_PASSWORD_#auth_basic "Private Property";
|
||||
#_HTTP_PASSWORD_#auth_basic_user_file /etc/nginx/.htpasswd;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
root /usr/local/lib/web/frontend/;
|
||||
index index.html index.htm;
|
||||
|
||||
location / {
|
||||
try_files $uri @proxy;
|
||||
}
|
||||
|
||||
location = / {
|
||||
try_files $uri @proxy2;
|
||||
}
|
||||
|
||||
location ~ ^/api {
|
||||
try_files $uri @proxy2;
|
||||
try_files $uri @api;
|
||||
}
|
||||
|
||||
location = /redirect.html {
|
||||
try_files $uri @proxy2;
|
||||
location = /websockify {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://127.0.0.1:6081;
|
||||
}
|
||||
|
||||
location @proxy2 {
|
||||
location @api {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
@@ -44,11 +39,4 @@ server {
|
||||
proxy_pass http://127.0.0.1:6081;
|
||||
max_ranges 0;
|
||||
}
|
||||
|
||||
location = /websockify {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://127.0.0.1:6081;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@ directory=/usr/local/lib/web/backend
|
||||
command=/usr/local/lib/web/backend/run.py
|
||||
stdout_logfile=/dev/fd/1
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/fd/1
|
||||
stderr_logfile_maxbytes=0
|
||||
|
||||
[group:x]
|
||||
programs=xvfb,wm,lxpanel,pcmanfm,x11vnc,novnc
|
||||
@@ -48,6 +50,6 @@ command=x11vnc -display :1 -xkb -forever -shared -repeat
|
||||
|
||||
[program:novnc]
|
||||
priority=25
|
||||
directory=/usr/local/lib/novnc/
|
||||
command=/usr/local/lib/novnc/utils/launch.sh --listen 6081
|
||||
directory=/usr/local/lib/web/frontend/static/novnc
|
||||
command=bash /usr/local/lib/web/frontend/static/novnc/utils/launch.sh --listen 6081
|
||||
stopasgroup=true
|
||||
|
||||
Reference in New Issue
Block a user