on utilise linux-image-cloud-amd64 sur les VMs

This commit is contained in:
Gregory Colpart 2022-10-27 18:21:50 +02:00
parent 474318687e
commit 1d8134f2d6
2 changed files with 16 additions and 0 deletions

View file

@ -293,3 +293,11 @@ ADMIN ALL=NOPASSWD: MAINT
~~~
trap "sudo /usr/share/scripts/evomaintenance.sh" 0
~~~
* Si l'on est sur une machine virtuelle (VM), on remplace le kernel par défaut par un kernel « Cloud » :
~~~
# apt install linux-image-cloud-amd64
# apt remove linux-image-amd64
# reboot
~~~

View file

@ -178,6 +178,14 @@ sub vcl_backend_response {
set beresp.ttl = 3600s;
}
}
sub vcl_deliver {
if (resp.http.X-Varnish ~ "[0-9]+ +[0-9]+") {
set resp.http.X-Cache = "HIT";
} else {
set resp.http.X-Cache = "MISS";
}
}
~~~