From 2269f67f07bfd0eb0207584a27a3fc8663cece8c Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Thu, 14 Dec 2023 16:59:48 +0330 Subject: [PATCH] feat(nginx): Update nginx-json base image version and add environment variables Co-authored-by: S. Amir Mohammad Najafi --- packages/nginx/Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/nginx/Dockerfile b/packages/nginx/Dockerfile index ccd829ab..1ebcae41 100644 --- a/packages/nginx/Dockerfile +++ b/packages/nginx/Dockerfile @@ -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" \ @@ -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"