Skip to content

Commit

Permalink
Update wp-config.php to include varnish host ip for purge plugin (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdijk authored Oct 24, 2024
1 parent 9719b65 commit f105054
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wordpress/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

0 comments on commit f105054

Please sign in to comment.