summaryrefslogtreecommitdiff
path: root/server/Readme.org
diff options
context:
space:
mode:
authorstuebinm2021-04-05 00:50:35 +0200
committerstuebinm2021-04-05 00:53:23 +0200
commit0f8b78c0b7e2aca94a14b36af020d0f7d8301cc5 (patch)
treeeebc14b5dbe7e5af541ffaa3efa4fd397c5f671d /server/Readme.org
parentef1624f645b53cf60c89b2caabc3087883ad7dbd (diff)
add simple server which takes POST requests
The idea is that it can accept surveys sent to it. Note that in an actual deployment it should have at least some rate-limiting, since actual validation of input is impossible if they are encrypted – i.e. this is bascially a pastbin. It may, however, be possible to require signing answers for survey with access restrictions, or do a challange/response type thing before allowing submission.
Diffstat (limited to 'server/Readme.org')
-rw-r--r--server/Readme.org14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/Readme.org b/server/Readme.org
new file mode 100644
index 0000000..1242159
--- /dev/null
+++ b/server/Readme.org
@@ -0,0 +1,14 @@
+#+TITLE: Simple Server that accepts survey answers
+
+Run with:
+#+BEGIN_SRC
+guile server.scm
+#+END_SRC
+
+Will listen to localhost:8080, and accept files sent via POST with
+mimetypes of either ~text/plain~ (which will be appended to a single
+file in the working directory) or ~text/age~ (which will be kept as a
+single file).
+
+Expects a custom header ~X-Survey~ in these requests to know which survey
+the answer belongs to.