Modified the varnishram var

This commit is contained in:
Justine Pelletreau 2021-09-21 20:05:22 +02:00
parent 7d1176e773
commit df194be1a0
4 changed files with 3 additions and 6 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.ini

View File

@ -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. 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 TESTED ON Debian 10 with varnish 6.1.1 and apache2 2.4.38
## Vars: ## 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.

View File

@ -1,3 +1,3 @@
[Service] [Service]
ExecStart= 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 }}

View File

@ -40,10 +40,6 @@ sub vcl_backend_response {
} }
} }
sub vcl_hash {
hash_data(req.method);
}
sub vcl_deliver { sub vcl_deliver {
# Happens when we have all the pieces we need, and are about to send the # Happens when we have all the pieces we need, and are about to send the
# response to the client. # response to the client.