The following summarises what I have done so far:
From what I understand, there are 5 relevant files to the setup of varnish for magento 2.
This file remains unchanged.
In this file under the listen section, there are 2 lines that start with "listen" and end with "80". Both "80"s have been changed to "81"s
This file gets replaced by file (5) later on. However, I am slightly confused after having inspected this file it states that "you should configure apache to run on port 8008". My changes in file (2) have configured apache to run on port 81. After reading the bitnami documentation that seemed like the correct change to make. But since file (3) just gets replaced with (5) later on, I assume that this doesnt really matter anyway.
I am unsure as to the purpose of this file. I can't find any references to it in the bitnami documentation or the magento documentation. Please can someone explain what needs to be done with this file.
This file is exported from the magento admin panel under Stores>developer>system. According to the magento documentation it should be renamed to default.vcl and used to replace the existing file (3) opt/bitnami/varnish/etc/varnish/default.vcl
Would appreciate any support that can be offered.