From 18bd47ebc98dc0cf0b5bac66d72bdf953f68a0aa Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Mon, 11 Nov 2024 12:10:44 +0330 Subject: [PATCH] fix(nginx): update base image to version 3.3.5 and modify CORS methods --- packages/nginx/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nginx/Dockerfile b/packages/nginx/Dockerfile index c32ea6fb..55b5bd93 100644 --- a/packages/nginx/Dockerfile +++ b/packages/nginx/Dockerfile @@ -1,6 +1,6 @@ -FROM ghcr.io/alwatr/nginx-json:3.3.3 +FROM ghcr.io/alwatr/nginx-json:3.3.5 -LABEL org.opencontainers.image.base.name="ghcr.io/alwatr/nginx-json:3.3.3" +LABEL org.opencontainers.image.base.name="ghcr.io/alwatr/nginx-json:3.3.5" HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --start-interval=1s --retries=3 CMD curl -fso /dev/null --header 'authorization: Alwatr healthcheck:healthcheck' http://localhost/server-info || exit 1 @@ -22,7 +22,7 @@ ENV NGINX_DOCUMENT_ROOT=/data \ NGINX_DISABLE_SYMLINKS=if_not_owner \ NGINX_CORS_ENABLE="" \ NGINX_CORS_ORIGIN="*" \ - NGINX_CORS_METHODS="GET" \ + NGINX_CORS_METHODS="GET, OPTIONS" \ NGINX_CORS_HEADERS="*" \ NGINX_CORS_MAXAGE=86400