summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormburakov <mburakov@mailbox.org>2021-11-01 14:41:42 +0100
committerGitHub <noreply@github.com>2021-11-01 14:41:42 +0100
commitd6cf9f612c472d054632ef2937bc40da455be03b (patch)
treeaa445bfd71eec90294bf46be4dc37c405348f092
parent2cf64544d9f300119aa50fd77e5f03a5a0d38ccb (diff)
Create README.md
-rw-r--r--README.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..28a5c3e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,34 @@
+# MQhTTp
+
+This is a lightweight lua-scriptable http gateway to mosquitto.
+
+## Building on Linux
+
+MQhTTp depends on libmosquitto and luajit. Once you have these installed, just
+```
+make
+```
+
+## Building anywhere else
+
+I don't care about any other platforms except Linux, so you are on your own.
+
+## Running
+
+Provide host and port of your mosquitto server on the commandline, i.e.
+```
+./mqhttp localhost 1883
+```
+
+After starting, HTTP server listens for incoming connections on localhost, port 8080.
+If you are not happy with these defaults, you can change them by adjusting environment variables:
+```
+export HTTP_PORT=8080
+export HTTP_ADDR=0.0.0.0
+```
+
+During the start up, MQhTTp sources all the lua files in the current directory (if any).
+
+## Bugs
+
+Yes.