summaryrefslogtreecommitdiff
path: root/user/tipidee/httpsd.run
blob: bfc3eebd043f6091ccae7216bfd6e82c9aa99650 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/execlineb -S1

fdmove -c 2 1
emptyenv -p
fdmove 1 3
envfile /etc/conf.d/tipidee
unexport HTTP
unexport HTTPS
multisubstitute
{
  importas -uSi TIPIDEED_IPv@V@
  importas -uSi TIPIDEED_ROOT
  importas -uSi KEYFILE
  importas -uSi CERTFILE
  importas -uSD1000 TIPIDEED_CONCURRENCY
  importas -uSD10 TIPIDEED_LOCAL_CONCURRENCY
}
s6-envuidgid tipideed
export TLS_UID 65534
export TLS_GID 65534
cd ${TIPIDEED_ROOT}
s6-tlsserver -1 -U -K 5000 -c ${TIPIDEED_CONCURRENCY} -C ${TIPIDEED_LOCAL_CONCURRENCY} -- ${TIPIDEED_IPv@V@} 443
tipideed