forked from warmcat/libwebsockets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathetc-lwsws-conf.d-localhost-EXAMPLE
55 lines (53 loc) · 1.49 KB
/
etc-lwsws-conf.d-localhost-EXAMPLE
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
{
"vhosts": [ {
"name": "localhost",
"port": "7681",
"interface": "lo",
# "host-ssl-key": "/etc/pki/tls/private/libwebsockets.org.key",
# "host-ssl-cert": "/etc/pki/tls/certs/libwebsockets.org.crt",
# "host-ssl-ca": "/etc/pki/tls/certs/libwebsockets.org.cer",
"access-log": "/var/log/lwsws/test-access-log",
# "sts": "on",
"mounts": [{
"mountpoint": "/",
"origin": "file://_lws_ddir_/libwebsockets-test-server",
"default": "test.html",
"cache-max-age": "60",
"cache-reuse": "1",
"cache-revalidate": "1",
"cache-intermediaries": "0"
}, {
"mountpoint": "/server-status",
"origin": "file://_lws_ddir_/libwebsockets-test-server/server-status",
"default": "server-status.html"
}, {
"mountpoint": "/testcgi",
"origin": "cgi://_lws_ddir_/libwebsockets-test-server/lws-cgi-test.sh"
}, {
"mountpoint": "/formtest",
"origin": "callback://protocol-post-demo"
}],
# which protocols are enabled for this vhost, and optional
# vhost-specific config options for the protocol
#
"ws-protocols": [{
"dumb-increment-protocol": {
"status": "ok"
},
"lws-mirror-protocol": {
"status": "ok"
},
"lws-status": {
"status": "ok"
},
"protocol-post-demo": {
"status": "ok"
},
"lws-server-status": {
"status": "ok",
"update-ms": "5000"
}
}]
}
]
}