diff --git a/wordpress/wp-config.php b/wordpress/wp-config.php index a73b714..e9ac4a7 100644 --- a/wordpress/wp-config.php +++ b/wordpress/wp-config.php @@ -19,3 +19,8 @@ $_SERVER['HTTPS'] = 'on'; $_SERVER['SERVER_PORT'] = 443; } + +// Set varnish cache ip for purge plugin +if (getenv('VARNISH_SVC_SERVICE_HOST')) { + define('VHP_VARNISH_IP', getenv('VARNISH_SVC_SERVICE_HOST')); +}