Skip to content

Commit

Permalink
feat(nginx): Update nginx-json base image version and add environment…
Browse files Browse the repository at this point in the history
… variables

Co-authored-by: S. Amir Mohammad Najafi <[email protected]>
  • Loading branch information
alimd and njfamirm committed Dec 25, 2023
1 parent fe5e1af commit 2269f67
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ COPY etc/nginx/ /etc/nginx/
# COPY data/ .
RUN set -eux; ls -RlahF /etc/nginx /data

ENV NGINX_OPEN_FILE_CACHE="max=5000 inactive=1h" \
ENV NGINX_DOCUMENT_ROOT=/data \
NGINX_OPEN_FILE_CACHE="max=5000 inactive=1h" \
NGINX_OPEN_FILE_CACHE_VALID=1s \
NGINX_OPEN_FILE_CACHE_MIN_USES=2 \
NGINX_OUTPUT_BUFFERS="8 8k" \
Expand All @@ -16,3 +17,12 @@ ENV NGINX_OPEN_FILE_CACHE="max=5000 inactive=1h" \
NGINX_LIMIT_REQ_RATE=400 \
NGINX_LIMIT_REQ_BURST=1000 \
NGINX_DISABLE_SYMLINKS=if_not_owner

ENV storeApiPrefix="/api/v1" \
storeRegionPublic="p" \
storeRegionSecret="s" \
storeRegionAuthenticated="a" \
storeRegionSuperAdmin="sa" \
storeRegionPerUser="u" \
storeRegionPerDevice="d" \
storeRegionPerToken="t"

0 comments on commit 2269f67

Please sign in to comment.