Refactored and solved matomo variable bug

This commit is contained in:
2025-02-17 11:04:40 +01:00
parent 62f9bab052
commit 326f048639
10 changed files with 31 additions and 34 deletions

View File

@@ -3,8 +3,8 @@
include_role:
name: docker-central-database
- name: "include tasks create-proxy-with-domain-replace.yml"
include_tasks: create-proxy-with-domain-replace.yml
- name: "include tasks setup-domain.yml with {{domain}}"
include_tasks: setup-domain.yml
loop: "{{ mybb_domains + [source_domain] }}"
loop_control:
loop_var: domain

View File

@@ -0,0 +1,13 @@
# Recieves https certificate and setup proxy with domain replace
- name: "include role receive certbot certificate"
include_role:
name: nginx-https-recieve-certificate
- name: configure {{domain}}.conf
template:
src: "roles/nginx-docker-reverse-proxy/templates/domain.conf.j2"
dest: "{{nginx.directories.http.servers}}{{domain}}.conf"
notify: restart nginx
vars:
nginx_docker_reverse_proxy_extra_configuration: "sub_filter '{{source_domain}}' '{{domain}}';"