summaryrefslogtreecommitdiff
path: root/bin/taler-deployment-auditor
diff options
context:
space:
mode:
Diffstat (limited to 'bin/taler-deployment-auditor')
-rwxr-xr-xbin/taler-deployment-auditor23
1 files changed, 23 insertions, 0 deletions
diff --git a/bin/taler-deployment-auditor b/bin/taler-deployment-auditor
new file mode 100755
index 0000000..f90c7fb
--- /dev/null
+++ b/bin/taler-deployment-auditor
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# serve landing page via uwsgi
+
+base=$HOME
+
+export PATH="$base/deployment":$PATH
+
+ulimit -c $((100 * 1024))
+
+mkdir -p $HOME/sockets
+
+
+# redirect / to index.html,
+# serve static files from $HOME/auditor
+exec uwsgi \
+ --mimefile /etc/mime.types \
+ --socket $HOME/sockets/auditor.uwsgi \
+ --chmod-socket=660 \
+ --route "^/?$ redirect:index.html" \
+ --route "^/(.+) addvar:FILE=$HOME/auditor/\$1" \
+ --route-if "exists:\${FILE} static:\${FILE}" \
+ --route "^/(.+) break:404 not found"