Skip to content

Commit

Permalink
[Docker] Set SYMFONY_TRUSTED_PROXIES to trust all IP addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Oct 26, 2020
1 parent 76fcce8 commit f495faa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/docker/varnish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ services:
app:
environment:
- SYMFONY_HTTP_CACHE=0
- SYMFONY_TRUSTED_PROXIES=varnish
# Never do this in production if the app container is accesible for the public as well
# See https://ezplatform.com/security-advisories/ezsa-2020-002-unauthorised-cache-purge-with-misconfigured-fastly for more details how it could be abused
- SYMFONY_TRUSTED_PROXIES=TRUST_REMOTE
- HTTPCACHE_PURGE_SERVER=http://varnish
- HTTPCACHE_PURGE_TYPE=varnish

Expand Down

0 comments on commit f495faa

Please sign in to comment.