summaryrefslogblamecommitdiff
path: root/user/apaste/apastesd.run
blob: a1205ed4c53a5dcddbe053fc81d98575d98f4da7 (plain) (tree)
1
2
3
4
5
6
7
8







                           








                                            





                                                                                                                                         
#!/bin/execlineb -S1

fdmove -c 2 1
emptyenv -p
fdmove 1 3
envfile /etc/conf.d/apasted
multisubstitute
{
  importas -uSi APASTED_IPv@V@
  importas -uSi APASTED_TLS_PORT
  importas -uSi APASTED_ROOT
  importas -uSD "" APASTED_PREFIX
  importas -uSD10 APASTED_MAXFILES
  importas -uSD1048576 APASTED_MAXSIZE
  importas -uSD10485760 APASTED_MAXTOTALSIZE
  importas -uSi KEYFILE
  importas -uSi 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}