aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker/frontend/cmd.sh
blob: 25ea3c7a9267db5f1ec3d4d495d5b5f6725a227a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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/bin/fcgiwrap

exec nginx -g 'daemon off;'