Skip to content
Snippets Groups Projects
Commit 441fbb60 authored by jurgenhaas's avatar jurgenhaas
Browse files

Add support for extra domains in the webserver container

parent 4e905200
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ services:
labels:
traefik.backend: '{{ projectname }}_{{ webserver.type }}_1'
traefik.port: '80'
traefik.frontend.rule: 'Host:{{ projectname }}.docker.localhost'
traefik.frontend.rule: 'Host:{{ projectname }}.docker.localhost{% for domain in extradomains|default([]) %},{{ domain }}{% endfor %}'
{% if varnish.enable %}
varnish:
......
......@@ -4,6 +4,9 @@
$settings['trusted_host_patterns'] = array(
'^{{ projectname }}\.docker\.localhost$',
'^{{ webserver.type }}$',
{% for domain in extradomains|default([]) %}
'^{{ domain|replace({".": "\\."}) }}$',
{% endfor %}
);
$databases = array(
'default' => array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment