Commit ef7e768b authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Añade zona de caché para cliente web de redmic

parent d325b840
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
map $http_host $proxy_cache_zone {
	hostnames;
	atlas.* atlas_cache;
	redmic.* redmic_cache;
	default off;
}

@@ -25,6 +26,7 @@ map $http_host $proxy_cache_bypass_value {
map $http_host $cache_control_value {
	hostnames;
	atlas.* "max-age=864000";
	redmic.* "max-age=86400";
	default "no-cache";
}

@@ -33,3 +35,9 @@ proxy_cache_path /var/nginx/atlas_cache
	keys_zone=atlas_cache:100m
	inactive=24h
	max_size=5g;

proxy_cache_path /var/nginx/redmic_cache
	levels=1:2
	keys_zone=redmic_cache:50m
	inactive=24h
	max_size=1g;