From 29591f85baee0d6bf174186d1ae7a50f0106c6d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Ninivin?= <cedric.leninivin@tiolive.com> Date: Thu, 10 Apr 2014 18:55:54 +0200 Subject: [PATCH] apache-frontend: squid uses disk cache --- software/apache-frontend/common.cfg | 2 +- software/apache-frontend/templates/squid.conf.jinja2 | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/software/apache-frontend/common.cfg b/software/apache-frontend/common.cfg index 6f633426b..fc92961bb 100644 --- a/software/apache-frontend/common.cfg +++ b/software/apache-frontend/common.cfg @@ -139,7 +139,7 @@ mode = 640 [template-squid-configuration] recipe = slapos.recipe.build:download url = ${:_profile_base_location_}/templates/squid.conf.jinja2 -md5sum = 9f70474181372d34c8cd203f24ab546e +md5sum = 484fee19b2ca102f2baf3bd04893dd2c mode = 640 [template-empty] diff --git a/software/apache-frontend/templates/squid.conf.jinja2 b/software/apache-frontend/templates/squid.conf.jinja2 index ee7f8bc77..1c485de94 100644 --- a/software/apache-frontend/templates/squid.conf.jinja2 +++ b/software/apache-frontend/templates/squid.conf.jinja2 @@ -23,6 +23,8 @@ header_replace X-Forwarded-For follow_x_forwarded_for allow all forwarded_for on +cache_dir aufs {{ cache_path }} 5000 16 256 + # Use 1Go of RAM cache_mem 1024 MB # But do not keep big object in RAM -- 2.30.9