Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
- Varnish config can be found in `vendor/ibexa/http-cache/docs/varnish/vcl`:
- use [parameters.vcl](https://github.com/ibexa/http-cache/blob/6.0/docs/varnish/vcl/parameters.vcl) for installation specific settings
- plus one of the `varnish*.vcl` corresponding to your Varnish version
- For example, [varnish7.vcl](https://github.com/ibexa/http-cache/blob/6.0/docs/varnish/vcl/varnish7.vcl) when using Varnish 7
- For example, [varnish9.vcl](https://github.com/ibexa/http-cache/blob/6.0/docs/varnish/vcl/varnish9.vcl) when using Varnish 9

Check notice on line 53 in docs/infrastructure_and_maintenance/cache/http_cache/reverse_proxy.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/infrastructure_and_maintenance/cache/http_cache/reverse_proxy.md#L53 <Ibexa.Lists>

Verify list formatting: Full sentences should start with uppercase and end with a period. Sentence fragments should start with lowercase and have no period.
Raw output
{"message":"Verify list formatting: Full sentences should start with uppercase and end with a period. Sentence fragments should start with lowercase and have no period.","location":{"path":"docs/infrastructure_and_maintenance/cache/http_cache/reverse_proxy.md","range":{"start":{"line":53,"column":1},"end":{"line":53,"column":23}}},"severity":"INFO","code":{"value":"Ibexa.Lists"}}

Check notice on line 53 in docs/infrastructure_and_maintenance/cache/http_cache/reverse_proxy.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/infrastructure_and_maintenance/cache/http_cache/reverse_proxy.md#L53 <Ibexa.ByUsing>

Prefer 'by using' or 'with' to plain 'using'.
Raw output
{"message":"Prefer 'by using' or 'with' to plain 'using'.","location":{"path":"docs/infrastructure_and_maintenance/cache/http_cache/reverse_proxy.md","range":{"start":{"line":53,"column":115},"end":{"line":53,"column":125}}},"severity":"INFO","code":{"value":"Ibexa.ByUsing"}}

Check notice on line 53 in docs/infrastructure_and_maintenance/cache/http_cache/reverse_proxy.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/infrastructure_and_maintenance/cache/http_cache/reverse_proxy.md#L53 <Ibexa.Numerals>

Spell out numbers until 10.
Raw output
{"message":"Spell out numbers until 10.","location":{"path":"docs/infrastructure_and_maintenance/cache/http_cache/reverse_proxy.md","range":{"start":{"line":53,"column":133},"end":{"line":53,"column":135}}},"severity":"INFO","code":{"value":"Ibexa.Numerals"}}
- Fastly config can be found in `vendor/ibexa/fastly/fastly`. You must install the following to use Fastly:
- `ibexa_main.vcl` as the **main** custom VCL
- `ibexa_user_hash.vcl` as another custom VCL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@

The following sequence of commands:

1. Sets a variable with the desired Varnish version, here Varnish 7.1
1. Sets a variable with the desired Varnish version, here Varnish 9.0
2. Copies and customizes `parameters.vcl` file in `.ddev/varnish/` (which is mounted as `/etc/varnish/` into the container):
- sets `web` container as the backend host and an invalidator (so back office can purge cache)
- adds "all IPs" CIDR notation to `debuggers` list to allow debugging from any IP
- on Varnish 7, enable logging of access control list matching for both `invalidators` and `debuggers` lists
(new Varnish 7 syntax, it was enabled by default on previous versions)
- on Varnish 9, enable logging of access control list matching for both `invalidators` and `debuggers` lists

Check notice on line 43 in docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md#L43 <Ibexa.Numerals>

Spell out numbers until 10.
Raw output
{"message":"Spell out numbers until 10.","location":{"path":"docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md","range":{"start":{"line":43,"column":17},"end":{"line":43,"column":19}}},"severity":"INFO","code":{"value":"Ibexa.Numerals"}}
(new Varnish 7+ syntax, it was enabled by default on previous versions)

Check notice on line 44 in docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md#L44 <Ibexa.Numerals>

Spell out numbers until 10.
Raw output
{"message":"Spell out numbers until 10.","location":{"path":"docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md","range":{"start":{"line":44,"column":19},"end":{"line":44,"column":21}}},"severity":"INFO","code":{"value":"Ibexa.Numerals"}}

Check notice on line 44 in docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md#L44 <Ibexa.Passive>

Try to avoid passive tense, when possible.
Raw output
{"message":"Try to avoid passive tense, when possible.","location":{"path":"docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md","range":{"start":{"line":44,"column":34},"end":{"line":44,"column":45}}},"severity":"INFO","code":{"value":"Ibexa.Passive"}}
3. Sets main `varnish*.vcl` file to use and "path to VCL directory" argument name depending on Varnish version
4. Copies the main VCL file to `.ddev/varnish/`
5. Sets the Varnish version to use and its demon starting parameters to use the files
Expand All @@ -50,16 +50,16 @@
8. Restarts the DDEV cluster and clear the [[= product_name =]] cache

```bash
VARNISH_VERSION=7.1
VARNISH_VERSION=9.0
mkdir -p .ddev/varnish
sed 's/.host = "127.0.0.1";/.host = "web";/' vendor/ibexa/http-cache/docs/varnish/vcl/parameters.vcl > .ddev/varnish/parameters.vcl
sed -i '/^acl invalidators {$/a \\ "web";' .ddev/varnish/parameters.vcl
sed -i '/^acl debuggers {$/a \\ "0.0.0.0"/0; \/\/ debug from any IP' .ddev/varnish/parameters.vcl
if [[ $VARNISH_VERSION == 7.* ]]; then
if [[ $VARNISH_VERSION == 9.* ]]; then
sed -i 's/acl invalidators {/acl invalidators +log {/' .ddev/varnish/parameters.vcl
sed -i 's/acl debuggers {/acl debuggers +log {/' .ddev/varnish/parameters.vcl
vcl_path=vcl_path
vcl_file=varnish7.vcl
vcl_file=varnish9.vcl
elif [[ $VARNISH_VERSION == 6.* ]]; then
vcl_path=vcl_dir
vcl_file=varnish6.vcl
Expand Down Expand Up @@ -103,7 +103,7 @@
HTTP/2 200
server: Apache/2.4.65 (Debian)
vary: Origin,X-Editorial-Mode
via: 1.1 varnish (Varnish/7.1)
via: 1.1 varnish (Varnish/9.0)
x-cache: HIT
x-cache-debug: 1
x-cache-hits: 5
Expand Down
Loading