I’ve written a little lua script that serves up some data over http using the lua socket module. This works well, but I’d like to use this output data in a Progressive Web App running on a locally connected device - frustratingly, browser security rules mean it can only pull in this data via https.
I haven’t found any out-of-the-box solutions for serving TLS pages from lua, and writing one from scratch would be a tall order!
I want to know about the possibility of running a separate webserver, either to pass through the lua output or to serve a file periodically written to by the lua script.
I’ve noticed a couple of processes on the device already serving up webpages, /usr/sbin/acehttp seems to be serving up a 404 on port 8088 and /sbin/ACEmanager is serving up the contents of /www on 9191 (http) and 9443 (https) .
I was hoping to write my file cheekily into the /www directory and let ACEmanager do the heavy lifting for me, but that’s part of a write-only filesystem.
Has anyone here been able to serve up TLS encrypted content from an MP70, either by configuring existing processes to access user-writable filespace or by somehow implementing their own server? I’d be interested to hear any suggestions or ideas. Cheers!