File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,13 @@ echo "${NGX_HTPASSWD}" > /etc/nginx/htpasswd
7
7
8
8
/usr/local/bin/confd -onetime -backend env
9
9
10
+ if [[ -z " ${NGX_SPECIFIC_CACHE} " ]]
11
+ then
12
+ echo " CREATE empty /etc/nginx/specific_cache.conf"
13
+ touch /etc/nginx/specific_cache.conf
14
+ else
15
+ echo " OVERRIDE /etc/nginx/specific_cache.conf"
16
+ echo " ${NGX_SPECIFIC_CACHE} " > /etc/nginx/specific_cache.conf
17
+ fi
18
+
10
19
exec " $@ "
Original file line number Diff line number Diff line change 77
77
proxy_max_temp_file_size 2048m;
78
78
proxy_temp_file_write_size 64k;
79
79
80
- proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:10m inactive=60m;
80
+ proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:100m inactive=60m;
81
81
82
82
include /etc/nginx/proxy_headers.conf;
83
83
@@ -148,6 +148,8 @@ http {
148
148
try_files =404 @cached;
149
149
}
150
150
151
+ include /etc/nginx/specific_cache.conf;
152
+
151
153
# warning: /web/content reads ir.attachment, it would not be safe to
152
154
# cache other files than .js / .css which can depend on users rights
153
155
location ~* ^/web/content/.+\.(js|css)$ {
You can’t perform that action at this time.
0 commit comments