-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvnc-websocket-snippet.conf.in
More file actions
87 lines (85 loc) · 5 KB
/
vnc-websocket-snippet.conf.in
File metadata and controls
87 lines (85 loc) · 5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# @@extility-template: --mode 0444@@
DBDriver pgsql
DBDParams "host=@VNCPROXY_DB_HOST@ dbname=@VNCPROXY_DB_DBNAME@ user=@VNCPROXY_DB_USER@ password=@VNCPROXY_DB_PASSWORD@"
DBDMin 0
DBDKeep 0
DBDMax 1
DBDExptime 300
DBDPersist Off
<IfModule reqtimeout_module>
RequestReadTimeout body=300,minrate=1
</IfModule>
<IfModule mod_websocket.c>
<Location /vncproxy>
Satisfy any
AuthType none
Require all granted
SetHandler websocket-handler
WebSocketHandler /usr/lib/apache2/modules/mod_websocket_vnc_proxy.so vnc_proxy_init
WebSocketTcpProxyBase64 on
# Set this to somewhere which deliberately won't look up
WebSocketTcpProxyHost nowhere.example.com.
WebSocketTcpProxyPort @VNCPROXY_PORT@
WebSocketTcpProxyProtocol base64
WebSocketTcpProxyQuery "SELECT 'raw' AS handler, 'vnc' AS protocol, vnc_server_node AS hostname, vnc_server_port AS port, vnc_proxy_ip AS connecthost, vnc_proxy_port AS connectport FROM vnc_session WHERE session_key=%s AND vnc_handler=0"
WebSocketTcpProxySendInitialData on
WebSocketTcpProxyGuacamole off
WebSocketTcpProxySecret @VNCPROXY_PASSWORD@
WebSocketTcpProxyTimeout @VNC_SESSION_INACTIVITY_TIMEOUT@
</Location>
<Location /vncproxyg>
Satisfy any
AuthType none
Require all granted
SetHandler websocket-handler
WebSocketHandler /usr/lib/apache2/modules/mod_websocket_vnc_proxy.so vnc_proxy_init
WebSocketTcpProxyBase64 off
# Set this to somewhere which deliberately won't look up
WebSocketTcpProxyHost nowhere.example.com.
WebSocketTcpProxyPort @VNCPROXY_PORT@
WebSocketTcpProxyProtocol guacamole
WebSocketTcpProxyQuery "SELECT 'guacamole' AS handler, CASE vnc_protocol WHEN 0 THEN 'rdp' WHEN 1 THEN 'vnc' ELSE 'error' END AS protocol, vnc_node_username AS username, vnc_node_domain AS domain, CASE vnc_protocol WHEN 0 THEN vnc_node_password ELSE vnc_password END AS password, vnc_server_node AS hostname, CASE vnc_protocol WHEN 0 THEN 2179 ELSE vnc_server_port END AS port, vnc_proxy_ip AS connecthost, vnc_proxy_port AS connectport, vnc_preconnection_blob AS preconnection_blob, 'false' as security_layer_negotiation, 'true' AS ignore_certificate, 'nla' AS security, 'true' AS authentication FROM vnc_session WHERE session_key=%s AND vnc_handler=1"
WebSocketTcpProxySendInitialData on
WebSocketTcpProxyGuacamole on
WebSocketTcpProxySecret @VNCPROXY_PASSWORD@
WebSocketTcpProxyTimeout @VNC_SESSION_INACTIVITY_TIMEOUT@
</Location>
</IfModule>
<IfModule mod_websocket_draft76.c>
<Location /vncproxy>
Satisfy any
AuthType none
Require all granted
SupportDraft75 On
SetHandler websocket-handler
WebSocketHandler /usr/lib/apache2/modules/mod_websocket_vnc_proxy.so vnc_proxy_init
WebSocketTcpProxyBase64 on
# Set this to somewhere which deliberately won't look up
WebSocketTcpProxyHost nowhere.example.com.
WebSocketTcpProxyPort @VNCPROXY_PORT@
WebSocketTcpProxyProtocol base64
WebSocketTcpProxyQuery "SELECT 'raw' AS handler, 'vnc' AS protocol, vnc_server_node AS hostname, vnc_server_port AS port, vnc_proxy_ip AS connecthost, vnc_proxy_port AS connectport FROM vnc_session WHERE session_key=%s AND vnc_handler=0"
WebSocketTcpProxySendInitialData on
WebSocketTcpProxyGuacamole off
WebSocketTcpProxySecret @VNCPROXY_PASSWORD@
WebSocketTcpProxyTimeout @VNC_SESSION_INACTIVITY_TIMEOUT@
</Location>
<Location /vncproxyg>
Satisfy any
AuthType none
Require all granted
SupportDraft75 On
SetHandler websocket-handler
WebSocketHandler /usr/lib/apache2/modules/mod_websocket_vnc_proxy.so vnc_proxy_init
WebSocketTcpProxyBase64 off
# Set this to somewhere which deliberately won't look up
WebSocketTcpProxyHost nowhere.example.com.
WebSocketTcpProxyPort @VNCPROXY_PORT@
WebSocketTcpProxyProtocol guacamole
WebSocketTcpProxyQuery "SELECT 'guacamole' AS handler, CASE vnc_protocol WHEN 0 THEN 'rdp' WHEN 1 THEN 'vnc' ELSE 'error' END AS protocol, vnc_node_username AS username, vnc_node_domain AS domain, CASE vnc_protocol WHEN 0 THEN vnc_node_password ELSE vnc_password END AS password, vnc_server_node AS hostname, CASE vnc_protocol WHEN 0 THEN 2179 ELSE vnc_server_port END AS port, vnc_proxy_ip AS connecthost, vnc_proxy_port AS connectport, vnc_preconnection_blob AS preconnection_blob, 'false' as security_layer_negotiation, 'true' AS ignore_certificate, 'nla' AS security, 'true' AS authentication FROM vnc_session WHERE session_key=%s AND vnc_handler=1"
WebSocketTcpProxySendInitialData on
WebSocketTcpProxyGuacamole on
WebSocketTcpProxySecret @VNCPROXY_PASSWORD@
WebSocketTcpProxyTimeout @VNC_SESSION_INACTIVITY_TIMEOUT@
</Location>
</IfModule>