lwsws update example conf to be 7681 no ssl test server
[platform/upstream/libwebsockets.git] / lwsws / etc-lwsws-conf.d-localhost-EXAMPLE
1 {
2  "vhosts": [ {
3      "name": "localhost",
4      "port": "7681",
5      "interface": "lo",
6 #     "host-ssl-key":  "/etc/pki/tls/private/libwebsockets.org.key",
7 #     "host-ssl-cert": "/etc/pki/tls/certs/libwebsockets.org.crt",
8 #     "host-ssl-ca":   "/etc/pki/tls/certs/libwebsockets.org.cer",
9      "access-log": "/var/log/lwsws/test-access-log",
10 #     "sts": "on",
11      "mounts": [{
12        "mountpoint": "/",
13        "origin": "file:///usr/share/libwebsockets-test-server",
14        "default": "test.html",
15        "cache-max-age": "60",
16        "cache-reuse": "1",
17        "cache-revalidate": "1",
18        "cache-intermediaries": "0"
19        }, {
20         "mountpoint": "/server-status",
21         "origin": "file:///usr/share/libwebsockets-test-server/server-status",
22         "default": "server-status.html"
23        }, {
24         "mountpoint": "/formtest",
25         "origin": "callback://protocol-post-demo" 
26        }],
27      # which protocols are enabled for this vhost, and optional
28      # vhost-specific config options for the protocol
29      #
30      "ws-protocols": [{
31        "dumb-increment-protocol": {
32          "status": "ok"
33        },
34        "lws-mirror-protocol": {
35          "status": "ok"
36        },
37        "lws-status": {
38          "status": "ok"
39        },
40        "protocol-post-demo": {
41          "status": "ok"
42        },
43        "lws-server-status": {
44          "status": "ok",
45          "update-ms": "5000"
46        }
47      }]
48     }
49   ]
50 }
51