aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/docker/frontend/cmd.sh
blob: 0795d4c3de75764aa5719f914aa19ff6d025c179 (plain) (tree)
1
2
3
4
5
6
7



                                     


                                                                     








                           
#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail

# Honestly, I have no idea how this works, I just copy-pasted it from
# somewhere.

spawn-fcgi \
    -u nginx \
    -g nginx \
    -M 0755 \
    -F 10 \
    -s /run/fcgiwrap.sock \
    /usr/sbin/fcgiwrap

exec nginx -g 'daemon off;'