Find our product in the [Digital Ocean marketplace[(https://marketplace.digitalocean.com/apps/varnish-cache) and click “Create Varnish Cache droplet”.
Login to your OCI account and you’ll see a screen where you can click “Launch instance”.
On the Create droplets screen, configure the following before clicking “Create droplets”.
If your server is up and running, you’ll see the a screen with detailed info about your server. The important thing is the Public IP address and username.
The instance is configured so that Varnish answers on port 80 and 443. If you access the instance IP address with a browser, you’ll see a welcome page. This requires that you have the ports open.
The default username for the instance is opc. Using the SSH key you chose when creating the instance, you can login to the server with this command:
ssh -i /PATH/TO/SSHKEY root@IPADDRESS
For Windows users, click here.
The default settings of your Varnish instance suit most Varnish users, but we advise you to have a look and update the configuration according to your needs.
Our documentation site has a reference section with available runtime options. This will help you to properly configure the Varnish process.
To look at system parameters, run this command:
sudo systemctl cat varnish.service
To change runtime options, input the following command on your Varnish instance:
sudo systemctl edit varnish.service
Edit, as needed, and save the file. Now restart Varnish by running the following command:
sudo systemctl restart varnish.service
For info on how to configure Varnish Enterprise, we recommend starting here.