summaryrefslogtreecommitdiff
path: root/user/apaste/apastesd.run
diff options
context:
space:
mode:
Diffstat (limited to 'user/apaste/apastesd.run')
-rw-r--r--user/apaste/apastesd.run23
1 files changed, 23 insertions, 0 deletions
diff --git a/user/apaste/apastesd.run b/user/apaste/apastesd.run
new file mode 100644
index 000000000..b5d0813f6
--- /dev/null
+++ b/user/apaste/apastesd.run
@@ -0,0 +1,23 @@
+#!/bin/execlineb -S1
+
+fdmove -c 2 1
+emptyenv -p
+fdmove 1 3
+envfile /etc/conf.d/apasted
+multisubstitute
+{
+ importas -ui APASTED_IPv@V@ APASTED_IPv@V@
+ importas -ui APASTED_TLS_PORT APASTED_TLS_PORT
+ importas -ui APASTED_ROOT APASTED_ROOT
+ importas -uD "" APASTED_PREFIX APASTED_PREFIX
+ importas -uD 10 APASTED_MAXFILES APASTED_MAXFILES
+ importas -uD 1048576 APASTED_MAXSIZE APASTED_MAXSIZE
+ importas -uD 10485760 APASTED_MAXTOTALSIZE APASTED_MAXTOTALSIZE
+ importas -ui KEYFILE KEYFILE
+ importas -ui CERTFILE CERTFILE
+}
+s6-envuidgid apasted
+export TLS_UID 65534
+export TLS_GID 65534
+s6-tlsserver -1 -U -H -l0 -K 5000 -- ${APASTED_IPv@V@} ${APASTED_TLS_PORT}
+apasted -r 10000 -w 10000 -d ${APASTED_ROOT} -p ${APASTED_PREFIX} -n ${APASTED_MAXFILES} -s ${APASTED_MAXSIZE} -S ${APASTED_MAXTOTALSIZE}