conversion to lighttpd for cors and mosquitto