diff options
author | Andy Green <andy@warmcat.com> | 2016-03-28 10:12:37 +0800 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2016-03-28 10:49:57 +0800 |
commit | cd0c696a0d879f66c8142ace0619b944efd08915 (patch) | |
tree | 028a82dbaf27cb849ee74767b67ef42145171cea /changelog | |
parent | d526c50c2227ab3daf43d8651c9ea82c26f84aec (diff) | |
download | libwebsockets-cd0c696a0d879f66c8142ace0619b944efd08915.tar.gz |
lwsws Libwebsockets Web Server
This makes a start on the LibWebSockets WebServer.
The app cmake build support and JSON config parsing are implemented and
the app can start, create the vhosts, listen and serve file:// mounts on
them.
Signed-off-by: Andy Green <andy@warmcat.com>
Diffstat (limited to 'changelog')
-rw-r--r-- | changelog | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -185,6 +185,49 @@ LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS. If you give this, non-ssl connections to the server listen port are accepted and receive a 301 redirect to / on the same host and port using https:// +New application lwsws +--------------------- + +A libwebsockets-based general webserver is built by default now, lwsws. + +It's configured by JSON, by default in + + /etc/lwsws/conf + +which contains global lws context settings like this + +{ + "global": { + "uid": "99", + "gid": "99", + "interface": "eth0", + "count-threads": "1" + } +} + + /etc/lwsws/conf.d/* + +which contains zero or more files describing vhosts, like this + +{ + "vhosts": [ + { "name": "warmcat.com", + "port": "443", + "host-ssl-key": "/etc/pki/tls/private/warmcat.com.key", + "host-ssl-cert": "/etc/pki/tls/certs/warmcat.com.crt", + "host-ssl-ca": "/etc/pki/tls/certs/warmcat.com.cer", + "mounts": [ + { "/": [ + { "home": "file:///var/www/warmcat.com" }, + { "default": "index.html" } + ] + } + ] + } + ] +} + + v1.7.0 ====== |