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 +```