about summary refs log tree commit diff
path: root/examples/s6-rc/httpsd-4/run
blob: efd6012fbc821c1de9bb8a80ace6aa6835a25a6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/execlineb -P

fdmove -c 2 1
backtick -E ip { pipeline { s6-dnsip4 example.com } head -n 1 }
s6-envuidgid www
export KEYFILE /etc/ssl/acme/private/example.com/key.pem
export CERTFILE /etc/ssl/acme/example.com/cert.pem
cd /home/www
fdmove 1 3
s6-tlsserver -1 -U -c 512 -K 30000 -- $ip 443
tipideed