Skip to content
Snippets Groups Projects
Commit b1b49f3b authored by GitLab CI's avatar GitLab CI
Browse files

Merge branch 'develop' into 'main'

Merging develop into main

See merge request !114
parents 2a7392ed be1e25fe
No related branches found
No related tags found
1 merge request!114Merging develop into main
Pipeline #1294104 passed
......@@ -78,9 +78,11 @@ projectrootfiles
projectrootinvoiceninja
projectrootmailpit
projectrootredis
publicdomain
qtbase
recipientallowlist
redirectregex
redirectregexpublic
relatedprojectdomains
remoterepo
responseheader
......
......@@ -178,15 +178,19 @@ services:
{% if basicauth.enable %}
traefik.http.middlewares.{{ webserver.type }}-{{ projectname }}-auth.basicauth.users: {{ basicauth.code }}
{% endif %}
traefik.http.routers.{{ webserver.type }}-{{ projectname }}.rule: Host(`{{ projectdomain }}`){% for domain in extradomains|default([]) %} || Host(`{{ domain }}`){% endfor %}
traefik.http.routers.{{ webserver.type }}-{{ projectname }}.rule: {% if publicdomain is defined %}Host(`{{ publicdomain }}`) || {% endif %}Host(`{{ projectdomain }}`){% for domain in extradomains|default([]) %} || Host(`{{ domain }}`){% endfor %}
{% if drupal.live|default(0) or traefik.usessl %}
traefik.http.routers.{{ webserver.type }}-{{ projectname }}.tls: 'true'
traefik.http.routers.{{ webserver.type }}-{{ projectname }}.tls.certresolver: lakedrops
{% endif %}
{% if publicdomain is defined %}
traefik.http.middlewares.{{ webserver.type }}-{{ projectname }}-redirectregexpublic.redirectRegex.regex: "^https://{{ projectdomain }}/(.*)"
traefik.http.middlewares.{{ webserver.type }}-{{ projectname }}-redirectregexpublic.redirectRegex.replacement: "https://{{ publicdomain }}/$${1}"
{% endif %}
{% for domain in extradomains|default([]) %}
traefik.http.middlewares.{{ webserver.type }}-{{ projectname }}-redirectregex{{ loop.index }}.redirectRegex.regex: "^https://{{ domain }}/(.*)"
traefik.http.middlewares.{{ webserver.type }}-{{ projectname }}-redirectregex{{ loop.index }}.redirectRegex.replacement: "https://{{ projectdomain }}/$${1}"
traefik.http.middlewares.{{ webserver.type }}-{{ projectname }}-redirectregex{{ loop.index }}.redirectRegex.replacement: "https://{{ publicdomain|default(projectdomain) }}/$${1}"
{% endfor %}
{% if varnish.enable %}
......
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