diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d2127d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.ini diff --git a/README.md b/README.md index 9861c5e..21c73a2 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ Installs Varnish in a simple manner, in front of an Apache Server. The Varnish cache runs on port 80 and Apache goes to port 8080. TESTED ON Debian 10 with varnish 6.1.1 and apache2 2.4.38 ## Vars: -* varnishram : in megabytes, RAM allocated to Varnish. Used in the template "customexec.conf.j2". +* varnishram : RAM allocated to Varnish. Used in the template "customexec.conf.j2". Unit is in m,g, etc. Example : 2g. diff --git a/templates/customexec.conf.j2 b/templates/customexec.conf.j2 index aaefdf1..ca4ad0b 100644 --- a/templates/customexec.conf.j2 +++ b/templates/customexec.conf.j2 @@ -1,3 +1,3 @@ [Service] ExecStart= -ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s default,{{ varnishram }}m +ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s default,{{ varnishram }} diff --git a/templates/default.vcl.j2 b/templates/default.vcl.j2 index 9ef3a6d..d0714a4 100644 --- a/templates/default.vcl.j2 +++ b/templates/default.vcl.j2 @@ -40,10 +40,6 @@ sub vcl_backend_response { } } -sub vcl_hash { - hash_data(req.method); -} - sub vcl_deliver { # Happens when we have all the pieces we need, and are about to send the # response to the client.