From 9c83eb123c58365a7b9fed48e91f9284e39a645b Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 11 Dec 2023 12:49:28 +0100 Subject: [PATCH] Added multi domain support for discourse --- playbook-servers.yml | 3 ++- roles/docker-discourse/tasks/main.yml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/playbook-servers.yml b/playbook-servers.yml index f3ea0144..786926ec 100644 --- a/playbook-servers.yml +++ b/playbook-servers.yml @@ -208,7 +208,8 @@ roles: - role: docker-discourse vars: - domain: discourse.{{top_domain}} + domain: forum.{{top_domain}} + domains: "{{discourse_domains}}" http_port: 8020 - name: setup akaunting hosts diff --git a/roles/docker-discourse/tasks/main.yml b/roles/docker-discourse/tasks/main.yml index 3639e09a..9e7b8642 100644 --- a/roles/docker-discourse/tasks/main.yml +++ b/roles/docker-discourse/tasks/main.yml @@ -1,6 +1,9 @@ --- - name: "include tasks nginx-docker-proxy-domain.yml" include_tasks: nginx-docker-proxy-domain.yml + loop: "{{ domains }}" + loop_control: + loop_var: domain - name: "create {{docker_compose_instance_directory}}" file: