Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure trusted host settings in Docker container environment #34

Open
geerlingguy opened this issue Jun 3, 2020 · 2 comments
Open

Comments

@geerlingguy
Copy link
Owner

geerlingguy commented Jun 3, 2020

From the Status report page (https://www.pidramble.com/admin/reports/status):

Not enabled
The trusted_host_patterns setting is not configured in settings.php. This can lead to security vulnerabilities. It is highly recommended that you configure this. See Protecting against HTTP HOST Header attacks for more information.

I should add a setting for www.pidramble.com in production, or localhost locally.

@dcwestra
Copy link

dcwestra commented May 8, 2023

Trying to figure this out myself. Tried passing it as a "command:" in docker-compose.yml, but due to the square brackets contained in the code, docker-compose did not like it. It will not allow [] to be passed as a string. Need to try adding it as a .txt file and cat the file to settings.php.

@dcwestra
Copy link

dcwestra commented May 9, 2023

Nevermind. The instructions are in the drupal docs. Justus tested and it works.

https://www.drupal.org/docs/getting-started/installing-drupal/trusted-host-settings#s-advanced-instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants