1
0
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:
Doro Wu
2018-03-15 15:22:19 +08:00
parent 44c1f26170
commit 12b6fe995c
267 changed files with 9305 additions and 37474 deletions
+8 -20
View File
@@ -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;
}
}