From 9cb7984941e693048df9ec5fb358f52eab660314 Mon Sep 17 00:00:00 2001 From: Javier Evans Date: Fri, 23 Feb 2024 14:04:41 -0800 Subject: [PATCH] small fixes --- common/etc/nginx/nginx.conf | 2 +- common/etc/nginx/templates/default.conf.template | 2 +- .../nginx/templates/gateway/s3_location_common.conf.template | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/etc/nginx/nginx.conf b/common/etc/nginx/nginx.conf index 6163901d..cd938089 100644 --- a/common/etc/nginx/nginx.conf +++ b/common/etc/nginx/nginx.conf @@ -46,7 +46,7 @@ http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for" "$sliced"'; + '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; diff --git a/common/etc/nginx/templates/default.conf.template b/common/etc/nginx/templates/default.conf.template index a60ec4b1..faa1e492 100644 --- a/common/etc/nginx/templates/default.conf.template +++ b/common/etc/nginx/templates/default.conf.template @@ -114,7 +114,7 @@ server { proxy_cache_valid 200 302 206 ${PROXY_CACHE_VALID_OK}; proxy_cache_key "$request_method$host$uri$slice_range"; - slice 1m; + slice ${PROXY_CACHE_SLICE_SIZE}; proxy_set_header Range $slice_range; include /etc/nginx/conf.d/gateway/s3_location_common.conf; } diff --git a/common/etc/nginx/templates/gateway/s3_location_common.conf.template b/common/etc/nginx/templates/gateway/s3_location_common.conf.template index 1475bd85..f65f9987 100644 --- a/common/etc/nginx/templates/gateway/s3_location_common.conf.template +++ b/common/etc/nginx/templates/gateway/s3_location_common.conf.template @@ -41,4 +41,4 @@ error_page 404 @trailslashControl; proxy_pass ${S3_SERVER_PROTO}://storage_urls$s3uri; -include /etc/nginx/conf.d/gateway/s3_location.conf; \ No newline at end of file +include /etc/nginx/conf.d/gateway/s3_location.conf;