User Tools

Site Tools


novnc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
novnc [2022/10/26 04:46] vissienovnc [2022/10/28 03:18] (current) – [nginx] vissie
Line 5: Line 5:
 =====Setup===== =====Setup=====
   x11vnc   x11vnc
-  ./utils/novnc_proxy --vnc localhost:5900 --listen 9900+  ./utils/novnc_proxy --vnc localhost:5900 --listen 1234
   http://1.2.3.4/novnc/vnc.html   http://1.2.3.4/novnc/vnc.html
      
- =====nginx===== +=====letsencrypt===== 
-<sxh bash; gutter: false> +  ~/noVNC$sudo ./utils/novnc_proxy --vnc localhost:5900 --listen 443 --ssl-only --cert /etc/letsencrypt/live/me.me.com/cert.pem --key /etc/letsencrypt/live/me.me.com/privkey.pem
- +
-#user http; +
-worker_processes  1; +
- +
-events { +
-    worker_connections  1024; +
-+
- +
-http { +
-    include       mime.types; +
-    default_type  application/octet-stream;                                                                                                                                             +
- +
-    sendfile        on; +
-    #tcp_nopush     on; +
- +
-    #keepalive_timeout  0; +
-    keepalive_timeout  65; +
- +
-    server { +
-    listen 80 default_server; +
- +
-    location +
-      root /www/data; +
-      try_files $uri $uri/index.html; +
-    } +
- +
-    location /novnc/ { +
-      proxy_pass http://127.0.0.1:9900/+
-    } +
- +
-    location /novnc/websockify { +
-      proxy_pass http://127.0.0.1:9900/+
-      proxy_http_version 1.1; +
-      proxy_set_header Upgrade $http_upgrade; +
-      proxy_set_header Connection "Upgrade"; +
-      proxy_set_header Host $host; +
-    } +
- +
-        location = /50x.html { +
-            root   /usr/share/nginx/html; +
-        } +
- +
-    } +
- +
-}  +
-</sxh>+
  
novnc.1666784799.txt.gz · Last modified: 2022/10/26 04:46 by vissie