From 22ee95eee1df524683155c7a7dcc5e570979ff2d Mon Sep 17 00:00:00 2001
From: Stefan Haun <tux@netz39.de>
Date: Sun, 30 Apr 2023 20:04:37 +0200
Subject: [PATCH 1/2] :sparkles: Add forward discord.netz39.de to discord
 invite link

The URI https://discord.netz39.de will be on our printed flyers.
---
 host-tau.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/host-tau.yml b/host-tau.yml
index 7910fd7..1a74eed 100644
--- a/host-tau.yml
+++ b/host-tau.yml
@@ -16,6 +16,8 @@
     # with backwards compatibility within the same tag!
     dokuwiki_image: "bitnami/dokuwiki:20220731@sha256:989ab52cf2d2e0f84166e114ca4ce88f59546b8f6d34958905f8d81c18cbd759"
 
+    discord_invite_domain: discord.netz39.de
+
   roles:
     # role 'docker_setup' applied through group 'docker_host'
     - role: apache
@@ -45,6 +47,8 @@
             deploy_challenge_hook: "/bin/systemctl restart apache2"
           - name: "{{ dokuwiki_domain }}"
             deploy_challenge_hook: "/bin/systemctl restart apache2"
+          - name: "{{ discord_invite_domain }}"
+            deploy_challenge_hook: "/bin/systemctl restart apache2"
 
     - name: Setup proxy site testredmine.netz39.de
       include_role:
@@ -172,3 +176,10 @@
           - "53:53/udp"
         env:
           TZ: "{{ timezone }}"
+
+    - name: Setup forwarding for Discord invite
+      include_role:
+        name: setup-http-site-forward
+      vars:
+        site_name: "{{ discord_invite_domain }}"
+        forward_to: "https://discord.com/invite/8FcDvAf"

From 93e513df2f370243ac300ee89945a5474e074960 Mon Sep 17 00:00:00 2001
From: Stefan Haun <tux@netz39.de>
Date: Mon, 1 May 2023 14:00:37 +0200
Subject: [PATCH 2/2] :wrench: Use share-link for discord forward to gather
 some statistics

---
 host-tau.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/host-tau.yml b/host-tau.yml
index 1a74eed..6defba2 100644
--- a/host-tau.yml
+++ b/host-tau.yml
@@ -182,4 +182,6 @@
         name: setup-http-site-forward
       vars:
         site_name: "{{ discord_invite_domain }}"
-        forward_to: "https://discord.com/invite/8FcDvAf"
+        # forward_to: "https://discord.com/invite/8FcDvAf"
+        forward_to: "https://sl.n39.eu/discord"
+