probo icon indicating copy to clipboard operation
probo copied to clipboard

Provide for Drupal 8's trusted_hosts setting

Open tizzo opened this issue 8 years ago • 3 comments

In Drupal 8 there's a new setting called trusted_hosts. This is interfering with probo builds. We should consider having the Drupal plugin append a snippet in settings.php for Drupal 8 sites like:

$settings['trusted_host_patterns'] = array(
  '^localhost$',
  '^.+\.probo\.build$',
);

tizzo avatar Apr 22 '16 20:04 tizzo

If you do what platform.sh does, you can reference & include a settings.probo.php based on the existence of an environment variable. Then insert the hostname dynamically as well.

heddn avatar Jul 22 '16 19:07 heddn

See https://github.com/platformsh/platformsh-example-drupal8/blob/master/scripts/platformsh/dist.settings.php#L35.

sk33lz avatar Jun 29 '17 20:06 sk33lz

For anyone else who finds this, a potential solution today is using the settingsAppend feature of the Drupal plugin:

    settingsAppend: |
      $settings['trusted_host_patterns'] = array(
        '^localhost$',
        '^.+\.probo\.build$',
      );

greggles avatar Nov 06 '18 19:11 greggles