diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-26 12:44:29 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-26 12:44:31 +0300 |
commit | 0f5dbcc3bdeb401f00c1cdcb7b0ef826003b5bd7 (patch) | |
tree | d6d591ba8845d6cda37c756a44f9c92605c7df09 /docker/frontend/cmd.sh | |
parent | docker: run once at startup, even when in cron (diff) | |
download | cgitize-0f5dbcc3bdeb401f00c1cdcb7b0ef826003b5bd7.tar.gz cgitize-0f5dbcc3bdeb401f00c1cdcb7b0ef826003b5bd7.zip |
docker: add a frontend nginx image
At first, I built a custom image at https://egort.name/. It had a rather
long development history, and I just copied the files from there.
Diffstat (limited to 'docker/frontend/cmd.sh')
-rwxr-xr-x | docker/frontend/cmd.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docker/frontend/cmd.sh b/docker/frontend/cmd.sh new file mode 100755 index 0000000..4a769f6 --- /dev/null +++ b/docker/frontend/cmd.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail + +spawn-fcgi \ + -u nginx \ + -g nginx \ + -M 0755 \ + -F 10 \ + -s /run/fcgiwrap.sock \ + /usr/sbin/fcgiwrap + +exec nginx -g 'daemon off;' |