Commit 441fbb60 authored by Jürgen Haas's avatar Jürgen Haas

Add support for extra domains in the webserver container

parent 4e905200
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment