From 47ba59d84fd98642e27cedac772abfd5b68cf082 Mon Sep 17 00:00:00 2001 From: thespad Date: Tue, 17 Dec 2024 19:26:35 +0000 Subject: [PATCH 1/3] Set cache paths --- root/defaults/nginx/nginx.conf.sample | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/root/defaults/nginx/nginx.conf.sample b/root/defaults/nginx/nginx.conf.sample index aa582d6..f873319 100644 --- a/root/defaults/nginx/nginx.conf.sample +++ b/root/defaults/nginx/nginx.conf.sample @@ -1,4 +1,4 @@ -## Version 2024/12/06 - Changelog: https://github.com/linuxserver/docker-baseimage-alpine-nginx/commits/master/root/defaults/nginx/nginx.conf.sample +## Version 2024/12/17 - Changelog: https://github.com/linuxserver/docker-baseimage-alpine-nginx/commits/master/root/defaults/nginx/nginx.conf.sample ### Based on alpine defaults # https://git.alpinelinux.org/aports/tree/main/nginx/nginx.conf?h=3.21-stable @@ -81,6 +81,9 @@ http { uwsgi_temp_path /tmp/nginx-uwsgi; scgi_temp_path /tmp/nginx-scgi; + proxy_cache_path /tmp/nginx-proxy-cache keys_zone=swag-proxy:10m; + fastcgi_cache_path /tmp/nginx-cgi-cache keys_zone=swag-cgi:10m; + # Includes virtual hosts configs. include /etc/nginx/http.d/*.conf; include /config/nginx/site-confs/*.conf; From b3226045197daf1d663fd45c133c80a9760873a1 Mon Sep 17 00:00:00 2001 From: thespad Date: Tue, 17 Dec 2024 21:00:16 +0000 Subject: [PATCH 2/3] Include all caches --- root/defaults/nginx/nginx.conf.sample | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/root/defaults/nginx/nginx.conf.sample b/root/defaults/nginx/nginx.conf.sample index f873319..91eab91 100644 --- a/root/defaults/nginx/nginx.conf.sample +++ b/root/defaults/nginx/nginx.conf.sample @@ -82,7 +82,9 @@ http { scgi_temp_path /tmp/nginx-scgi; proxy_cache_path /tmp/nginx-proxy-cache keys_zone=swag-proxy:10m; - fastcgi_cache_path /tmp/nginx-cgi-cache keys_zone=swag-cgi:10m; + fastcgi_cache_path /tmp/nginx-fcgi-cache keys_zone=swag-fcgi:10m; + scgi_cache_path /tmp/nginx-scgi-cache keys_zone=swag-scgi:10m; + uwsgi_cache_path /tmp/nginx-uwsgi-cache keys_zone=swag-uwsgi:10m; # Includes virtual hosts configs. include /etc/nginx/http.d/*.conf; From f96a9523daf0c97267eb540a51b10d2e780f980d Mon Sep 17 00:00:00 2001 From: thespad Date: Tue, 17 Dec 2024 21:38:11 +0000 Subject: [PATCH 3/3] Fix zone names --- root/defaults/nginx/nginx.conf.sample | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/root/defaults/nginx/nginx.conf.sample b/root/defaults/nginx/nginx.conf.sample index 91eab91..ff9b9d3 100644 --- a/root/defaults/nginx/nginx.conf.sample +++ b/root/defaults/nginx/nginx.conf.sample @@ -81,10 +81,10 @@ http { uwsgi_temp_path /tmp/nginx-uwsgi; scgi_temp_path /tmp/nginx-scgi; - proxy_cache_path /tmp/nginx-proxy-cache keys_zone=swag-proxy:10m; - fastcgi_cache_path /tmp/nginx-fcgi-cache keys_zone=swag-fcgi:10m; - scgi_cache_path /tmp/nginx-scgi-cache keys_zone=swag-scgi:10m; - uwsgi_cache_path /tmp/nginx-uwsgi-cache keys_zone=swag-uwsgi:10m; + proxy_cache_path /tmp/nginx-proxy-cache keys_zone=lsio-proxy:10m; + fastcgi_cache_path /tmp/nginx-fcgi-cache keys_zone=lsio-fcgi:10m; + scgi_cache_path /tmp/nginx-scgi-cache keys_zone=lsio-scgi:10m; + uwsgi_cache_path /tmp/nginx-uwsgi-cache keys_zone=lsio-uwsgi:10m; # Includes virtual hosts configs. include /etc/nginx/http.d/*.conf;