Skip to content

Commit

Permalink
feat(slic-stack.yml) control the WP_HTTP_BLOCK_EXTERNAL const
Browse files Browse the repository at this point in the history
Use the SLIC_WP_HTTP_BLOCK_EXTERNAL env var.
  • Loading branch information
lucatume committed Nov 20, 2023
1 parent b98954c commit cc8e4f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .env.slic
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,7 @@ WORDPRESS_HTTP_PORT=8888

# Directory the host machine's cache directory will be mapped to.
COMPOSER_CACHE_DIR=./.cache

# This value will be assigned to the WP_HTTP_BLOCK_EXTERNAL constant defined in the wp-config.php file.
# Set to `true` to block all external HTTP requests from WordPress, set to `false` to allow all requests.
SLIC_WP_HTTP_BLOCK_EXTERNAL=true
2 changes: 1 addition & 1 deletion slic-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ services:
define( 'WP_DEBUG_DISPLAY', true );
define( 'WP_DEBUG_LOG', true );
define( 'DISABLE_WP_CRON', true );
define( 'WP_HTTP_BLOCK_EXTERNAL', true );
define( 'WP_HTTP_BLOCK_EXTERNAL', ${SLIC_WP_HTTP_BLOCK_EXTERNAL:-true} );
# Configure this to debug the tests with XDebug.
# Map the `_wordpress` directory to `/var/www/html' directory in your IDE of choice.
# Map the `_plugins` directory to `/plugins` directory in your IDE of choice.
Expand Down

0 comments on commit cc8e4f1

Please sign in to comment.