Skip to content

Commit

Permalink
feat: Update NGINX configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Nov 10, 2023
1 parent 4adbb58 commit e18f32c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 21 deletions.
29 changes: 15 additions & 14 deletions nginx-core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,30 @@ RUN ls -RlAhF /etc/nginx/
ENV NGINX_ACCESS_LOG="/var/log/nginx/access.log json" \
NGINX_ERROR_LOG_LEVEL=notice \
NGINX_WORKER_CONNECTIONS=2048 \
NGINX_CLIENT_MAX_BODY_SIZE=10m \
NGINX_LIMIT_REQ_ERROR=503 \
NGINX_LIMIT_REQ_LOG=notice \
NGINX_AUTOINDEX=off \
NGINX_DOCUMENT_ROOT=/var/www/html \
NGINX_FORCE_DOMAIN="" \
NGINX_FORCE_DOMAIN_STATUS=302 \
NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE=1 \
NGINX_ENTRYPOINT_QUIET_LOGS=""

ENV NGINX_CLIENT_MAX_BODY_SIZE=10m \
NGINX_SENDFILE=on \
NGINX_SENDFILE_MAX_CHUNK=2m \
NGINX_TCP_NOPUSH=on \
NGINX_TCP_NODELAY=on \
NGINX_OPEN_FILE_CACHE="max=1000 inactive=30m" \
NGINX_OPEN_FILE_CACHE_VALID=1d \
NGINX_OPEN_FILE_CACHE_VALID=1s \
NGINX_OPEN_FILE_CACHE_MIN_USES=2 \
NGINX_OUTPUT_BUFFERS="8 16k" \
NGINX_EXPIRES_DYNAMIC=max \
NGINX_EXPIRES_STATIC=max \
NGINX_EXPIRES_DEFAULT=max \
NGINX_EXPIRES_DYNAMIC=epoch \
NGINX_EXPIRES_STATIC=epoch \
NGINX_EXPIRES_DEFAULT=epoch \
NGINX_LIMIT_REQ_RATE=200 \
NGINX_LIMIT_REQ_BURST=1000 \
NGINX_LIMIT_REQ_ERROR=503 \
NGINX_LIMIT_REQ_LOG=notice \
NGINX_AUTOINDEX=off \
NGINX_DOCUMENT_ROOT=/var/www/html \
NGINX_DISABLE_SYMLINKS=if_not_owner \
NGINX_FORCE_DOMAIN="" \
NGINX_FORCE_DOMAIN_STATUS=302 \
NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE=1 \
NGINX_ENTRYPOINT_QUIET_LOGS=""
NGINX_DISABLE_SYMLINKS=if_not_owner

ARG BUILD_REV
ARG BUILD_DATE
Expand Down
13 changes: 10 additions & 3 deletions nginx-pwa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ COPY etc/nginx/ /etc/nginx/
RUN ls -RlAhF /etc/nginx/

# Default environment for nginx template
ENV NGINX_OPEN_FILE_CACHE="max=1000 inactive=1h" \
ENV NGINX_CLIENT_MAX_BODY_SIZE=1k \
NGINX_SENDFILE=on \
NGINX_SENDFILE_MAX_CHUNK=2m \
NGINX_TCP_NOPUSH=on \
NGINX_TCP_NODELAY=on \
NGINX_OPEN_FILE_CACHE="max=1000 inactive=1h" \
NGINX_OPEN_FILE_CACHE_VALID=1M \
NGINX_OPEN_FILE_CACHE_MIN_USES=2 \
NGINX_OUTPUT_BUFFERS="8 8k" \
NGINX_OUTPUT_BUFFERS="8 16k" \
NGINX_EXPIRES_DYNAMIC=epoch \
NGINX_EXPIRES_STATIC=max \
NGINX_EXPIRES_DEFAULT=epoch \
NGINX_LIMIT_REQ_RATE=400
NGINX_LIMIT_REQ_RATE=400 \
NGINX_LIMIT_REQ_BURST=1000 \
NGINX_DISABLE_SYMLINKS=if_not_owner

ARG BUILD_REV
ARG BUILD_DATE
Expand Down
15 changes: 11 additions & 4 deletions nginx-ws/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ COPY etc/nginx/ /etc/nginx/
RUN ls -RlAhF /etc/nginx/

# Default environment for nginx template
ENV NGINX_OPEN_FILE_CACHE="max=1000 inactive=1h" \
ENV NGINX_CLIENT_MAX_BODY_SIZE=1k \
NGINX_SENDFILE=on \
NGINX_SENDFILE_MAX_CHUNK=2m \
NGINX_TCP_NOPUSH=on \
NGINX_TCP_NODELAY=on \
NGINX_OPEN_FILE_CACHE="max=1000 inactive=1h" \
NGINX_OPEN_FILE_CACHE_VALID=1M \
NGINX_OPEN_FILE_CACHE_MIN_USES=2 \
NGINX_OUTPUT_BUFFERS="8 8k" \
NGINX_OUTPUT_BUFFERS="8 16k" \
NGINX_EXPIRES_DYNAMIC=epoch \
NGINX_EXPIRES_DEFAULT=epoch \
NGINX_EXPIRES_STATIC=max \
NGINX_LIMIT_REQ_RATE=200
NGINX_EXPIRES_DEFAULT=epoch \
NGINX_LIMIT_REQ_RATE=400 \
NGINX_LIMIT_REQ_BURST=1000 \
NGINX_DISABLE_SYMLINKS=if_not_owner

ARG BUILD_REV
ARG BUILD_DATE
Expand Down

0 comments on commit e18f32c

Please sign in to comment.