Skip to content

Commit f6d5e24

Browse files
committed
updated nginx caching templates
1 parent 75b9030 commit f6d5e24

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

install/rhel/nginx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ http {
8383
# Cache
8484
proxy_cache_path /var/cache/nginx levels=2 keys_zone=cache:10m inactive=60m max_size=512m;
8585
proxy_temp_path /var/cache/nginx/temp;
86+
proxy_cache_key "$host$request_uri $cookie_user";
8687
proxy_ignore_headers Expires Cache-Control;
8788
proxy_cache_use_stale error timeout invalid_header http_502;
8889
proxy_cache_valid any 3d;

install/rhel/templates/web/nginx/caching.stpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ server {
1010
proxy_pass http://%ip%:%web_port%;
1111

1212
proxy_cache cache;
13-
proxy_cache_valid 10m;
13+
proxy_cache_valid 15m;
1414
proxy_cache_valid 404 1m;
1515
proxy_no_cache $no_cache;
1616
proxy_cache_bypass $no_cache;

install/rhel/templates/web/nginx/caching.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ server {
77
proxy_pass http://%ip%:%web_port%;
88
99
proxy_cache cache;
10-
proxy_cache_valid 10m;
10+
proxy_cache_valid 15m;
1111
proxy_cache_valid 404 1m;
1212
proxy_no_cache $no_cache;
1313
proxy_cache_bypass $no_cache;

0 commit comments

Comments
 (0)