Add nginx (closes #11)

Install nginx from apt and check nginx -t in the smoke test.

Model: deepseek-v4-pro
This commit was merged in pull request #13.
This commit is contained in:
2026-11-05 15:45:26 +00:00
parent 574c5cdbce
commit 8f976e38e0
3 changed files with 52 additions and 46 deletions
+7 -3
View File
@@ -32,7 +32,8 @@ apt-get -y install --no-install-recommends \
libvips-dev libvips-tools libheif-dev libheif-plugin-aomenc \
imagemagick ghostscript \
ruby ruby-dev bundler \
valkey-server valkey-tools postgresql
valkey-server valkey-tools postgresql \
nginx
# Link the PostgreSQL server binaries onto PATH. They live under a versioned
# directory (/usr/lib/postgresql/*/bin); the client psql is already on PATH.
@@ -145,8 +146,9 @@ rm -rf /usr/share/doc /usr/share/man /usr/share/info /usr/share/lintian
find /usr/share/locale -mindepth 1 -maxdepth 1 ! -name 'en*' ! -name 'locale.alias' -exec rm -rf {} +
rm -rf /root/.cache /root/.npm /root/.config /root/go /tmp/* /var/tmp/*
# Valkey opens its log file at startup; recreate the log directory the
# cleanup above removed, with its package owner.
# nginx and Valkey open their log files at startup; recreate the log
# directories the cleanup above removed, with their package owners.
install -d -o root -g adm /var/log/nginx
install -d -o valkey -g adm -m 2750 /var/log/valkey
# --- sanity ------------------------------------------------------------------
@@ -170,6 +172,7 @@ ok=; for i in $(seq 1 50); do if valkey-cli ping 2>/dev/null | grep -q PONG; the
valkey-cli shutdown nosave
psql --version
postgres --version
nginx -t
hugo version
node --version
npm --version
@@ -190,5 +193,6 @@ test -d /etc/service
# The checks above leave caches and log files behind.
rm -rf /tmp/* /var/tmp/* /root/.cache /root/.npm /root/.config
rm -f /var/log/valkey/*
rm -f /var/log/nginx/*
install -d -o valkey -g adm -m 2750 /var/log/valkey
rm -f "$0"