Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
config
.lando.yml
README.md
index.html
python.py

README.md

Varnish Example

This example exists primarily to test the following documentation:

Start up tests

Run the following commands to get up and running with this example.

# Should start up successfully
lando poweroff
lando start

Verification commands

Run the following commands to validate things are rolling as they should.

# Should use varnish 4 by default
lando ssh -s defaults -c "curl -I localhost | grep Via | grep varnish-v4"

# Should backend from appserver by default
lando ssh -s defaults -c "curl localhost | grep sophisticated"

# Should also serve over https if specified
lando ssh -s custom_ssl -c "curl -k https://localhost | grep sophisticated"

# Shoule use a custom vcl file if specified
lando ssh -s custom -c "cat /etc/varnish/conf.d/lando.vcl | grep LANDOVARNISH"

# Should use a custom backend port when specified
lando ssh -s customport -c "curl http://localhost | grep SAW"

# Should use a custom backend port with SSL if specified
lando ssh -s customport_ssl -c "curl -k https://localhost | grep SAW"

Destroy tests

Run the following commands to trash this app like nothing ever happened.

# Should be destroyed with success
lando destroy -y
lando poweroff