From 4786988bcbafdd50b529b492b1fe7dc59d6fa33f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 19 Nov 2024 16:28:22 +0000 Subject: [PATCH] Added email_authelia to authelia.sh --- lib/authelia.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/lib/authelia.sh b/lib/authelia.sh index e26bd33..2356e02 100644 --- a/lib/authelia.sh +++ b/lib/authelia.sh @@ -215,6 +215,49 @@ start_authelia() { echo -ne "done.\n" } +email_authelia() { + echo -ne "* Sending email to customer.." + +cat > /federated/apps/mail/data/root/certs/mailfile < +
+

+

Authelia (SSO) is now installed on $DOMAIN, Your Federated Computer Single Sign On

+

+Dear Customer,
+We’re excited to introduce your new Single Sign-On (SSO) for Federated Core. +
+
+Your Single Sign On is called Authelia. With Authelia, a single login grants you seamless access to multiple Federated applications.
+Authelia provides single sign-on (SSO) access to the following Federated applications:
+Nextcloud, Element/Matrix, Bookstack, Jitsi, Gitea, RoundCube (Web Mail), EspoCRM, PowerDNS, and WordPress
+
+How to use Authelia
+• Click on any application in your Federated Dashboard and login by clicking, “Login with Authelia”
+• Look for a pop up that will be labeled “https://authelia.YOUR.DOMAIN”
+• Enter your panel Username and Password, then click, “Sign In”
+• That’s It! You can now access all of the Applications listed above.
+
+Using EspoCRM or Gitea?
+These applications need extra configuration to work with SSO.
+Reply to support@federated.computer, and we’ll send you step-by-step instructions to set up SSO for them.
+
+As always, We are here to make the process simple and straightforward. Reply now if you have any questions about Authelia and we will respond promptly. +
+Thank you for choosing Federated Computer. We’re committed to improving your experience every step of the way. +
+
+Best regards,
+Federated Computer Support Team +
+EOF + + # Send out e-mail from mail container with details + docker exec mail bash -c "mail -r admin@$DOMAIN -a \"Content-type: text/html\" -s \"Authelia (SSO) is now installed on $DOMAIN\" $EMAIL < /root/certs/mailfile" + rm /federated/apps/mail/data/root/certs/mailfile + + echo -ne "done.\n" +} uninstall_authelia() { echo -ne "* Uninstalling authelia container.."