From 1fb8df8e8bc347fbf324ea64fdfe60675dcb25ed Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Wed, 29 Sep 2010 08:45:44 +0200 Subject: [PATCH] openwrt: add a fluksorest LuciWebPublisher and restful daemon to lucid config file --- mote/v1/openwrt/files/etc/config/lucid | 65 ++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 mote/v1/openwrt/files/etc/config/lucid diff --git a/mote/v1/openwrt/files/etc/config/lucid b/mote/v1/openwrt/files/etc/config/lucid new file mode 100644 index 0000000..8d63ccc --- /dev/null +++ b/mote/v1/openwrt/files/etc/config/lucid @@ -0,0 +1,65 @@ +config lucid main + option pollinterval 15000 + option threadlimit 10 + option daemonize 1 + option debug 0 + list supports tcpserver + list supports server + +config DirectoryPublisher webroot + option name 'Webserver Share' + option physical /www + option home 1 + option virtual '' + option domain '' + +config LuciWebPublisher luciweb + option name 'LuCI Webapplication' + option physical '' + list virtual /cgi-bin/luci + option domain '' + +config LuciWebPublisher fluksorest + option name 'Flukso JSON/REST API' + option physical '' + list virtual /sensor + option domain '' + +config tcpserver httpd + option entrypoint "luci.lucid.http" + list supports DirectoryPublisher + list supports LuciWebPublisher + +config daemon http + option slave httpd + list address 80 + list publisher webroot + list publisher luciweb + option nokeepalive 1 + option memlimit 1572864 + option enabled 1 + +config daemon restful + option slave httpd + list address 8080 + list publisher fluksorest + option nokeepalive 1 + option memlimit 1572864 + option enabled 1 + +config daemon https + option slave httpd + list address 443 + list publisher webroot + list publisher luciweb + option nokeepalive 1 + option memlimit 1572864 + option enabled 0 + option tls maincert + option encryption enable + +config tls maincert + option key /etc/nixio/rsa_main.der + option cert /etc/nixio/cert_main.der + option type asn1 + option generate 1