1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lwsws/etc-lwsws-conf.d-localhost-EXAMPLE
Andy Green 34b8161e04 lwsws update example conf to be 7681 no ssl test server
It's going to be much easier to transition to lwsws
if the example config exactly matches what used to be
seen from the default test server.

# mkdir -p /etc/lwsws/conf.d /var/log/lwsws
# cp ./lwsws/etc-lwsws-conf-EXAMPLE /etc/lwsws/conf
# cp ./lwsws/etc-lwsws-conf.d-localhost-EXAMPLE /etc/lwsws/conf.d/test-server
# sudo lwsws

Signed-off-by: Andy Green <andy@warmcat.com>
2016-05-17 08:54:42 +08:00

51 lines
1.4 KiB
Text

{
"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:///usr/share/libwebsockets-test-server",
"default": "test.html",
"cache-max-age": "60",
"cache-reuse": "1",
"cache-revalidate": "1",
"cache-intermediaries": "0"
}, {
"mountpoint": "/server-status",
"origin": "file:///usr/share/libwebsockets-test-server/server-status",
"default": "server-status.html"
}, {
"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"
}
}]
}
]
}