You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added instructions on how to combine varnish with basic-auth (#2526)
* Added instructions on how to combine varnish with basic-auth
* fixup! Added instructions on how to combine varnish with basic-auth
* Apply suggestions from code review
Co-authored-by: Marek Nocoń <[email protected]>
---------
Co-authored-by: Marek Nocoń <[email protected]>
Varnish is enabled by default when using [[= product_name_cloud =]] and the `purge_servers` setting is set automatically.
155
+
To enable Basic Auth on [[= product_name_cloud =]] when using Varnish, specify the credentials using the following environment variables to make sure that Varnish is reachable:
156
+
157
+
```
158
+
env:HTTPCACHE_USERNAME=myuser
159
+
env:HTTPCACHE_PASSWORD=mypasswd
160
+
```
161
+
162
+
If you want to use Basic Auth with Fastly on [[= product_name_cloud =]], please see [Enable basic-auth on Fastly](fastly.md#enable-basic-auth-on-fastly).
163
+
145
164
!!! note "Invalidating Varnish cache using tokens"
146
165
147
166
In setups where the Varnish server IP can change (for example, on [[= product_name_cloud =]]),
0 commit comments