From e6fdef21d83f17a02b3d0360313d873da021958e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Michon?= Date: Thu, 23 Jan 2025 15:42:57 +0100 Subject: [PATCH] docs: add page about Varnish deployment --- src/_posts/platform/app/2000-01-01-varnish.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/_posts/platform/app/2000-01-01-varnish.md diff --git a/src/_posts/platform/app/2000-01-01-varnish.md b/src/_posts/platform/app/2000-01-01-varnish.md new file mode 100644 index 000000000..34b0709c1 --- /dev/null +++ b/src/_posts/platform/app/2000-01-01-varnish.md @@ -0,0 +1,21 @@ +--- +layout: page +title: Deploy Varnish to Cache Application Responses +nav: Varnish +modified_at: 2025-01-23 00:00:00 +tags: app varnish +index: 130 +--- + +## Introduction + +- multi-buildpacks + - apt buildpack with package `varnish` +- mkdir /tmp/varnish +- Start Varnish: + +```sh +varnishd -a :80 -T localhost:6082 -f /app/varnish/default.vcl -S /tmp/varnish_secret -s default,256m -n /tmp/varnish +varnishd -a :8080 -f /app/varnish/default.vcl -s default,256m -n /tmp/varnish +varnishd -a :8080 -f /app/varnish/default.vcl -n /tmp/varnish +```