Skip to content

Commit f6e79f2

Browse files
feat(entrypoint): allow defining worker_processes (#32)
1 parent cd0cbc6 commit f6e79f2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Diff for: Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ ENV DEBUG_HUB="false"
7777
ENV DEBUG_NGINX="false"
7878
# Enable slow caching tier; this allows caching in a secondary cache path on e.g a larger slower disk; for known URIs defined in SLOW_TIER_URIS
7979
ENV SLOW_TIER_ENABLED="false"
80+
# Statically define worker_processes; defaults to auto
81+
ENV WORKER_PROCESSES="auto"
8082

8183
# Manifest caching tiers. Disabled by default, to mimick 0.4/0.5 behaviour.
8284
# Setting it to true enables the processing of the ENVs below.

Diff for: entrypoint.sh

+3
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,9 @@ else
374374
echo "Upstream SSL certificate verification is DISABLED."
375375
fi
376376

377+
# Set worker processes if provided
378+
sed -i "s/worker_processes auto;/worker_processes ${WORKER_PROCESSES};/g" /etc/nginx/nginx.conf
379+
377380
echo "Testing nginx config..."
378381
${NGINX_BIN} -t
379382

0 commit comments

Comments
 (0)