Added new welcome email
This commit is contained in:
parent
d51c7c825e
commit
c5a114286e
236
lib/functions.sh
236
lib/functions.sh
@ -1,7 +1,8 @@
|
||||
# Federated Computer functions
|
||||
|
||||
# Define all services
|
||||
SERVICES=("pdnsmysql" "pdns" "pdnsadmin" "traefik" "postgresql" "ldap" "mail" "collabora" "nextcloud" "matrix" "element" "listmonk" "vaultwarden" "panel" "wireguard" "jitsi" "baserow" "gitea" "caddy" "autodiscover" "castopod" "wordpress")
|
||||
#SERVICES=("pdnsmysql" "pdns" "pdnsadmin" "traefik" "postgresql" "ldap" "mail" "collabora" "nextcloud" "matrix" "element" "listmonk" "vaultwarden" "panel" "wireguard" "jitsi" "baserow" "gitea" "caddy" "autodiscover" "castopod" "wordpress")
|
||||
SERVICES=("gitea")
|
||||
|
||||
fail() {
|
||||
echo -ne "FAILED\n\n$1\n\n"
|
||||
@ -266,6 +267,234 @@ start_service() {
|
||||
done
|
||||
fi
|
||||
}
|
||||
print_details_new() {
|
||||
cat > /federated/apps/mail/data/root/certs/mailfile <<EOF
|
||||
<html>
|
||||
<img src="https://www.federated.computer/images/logo.png" alt="" /><br>
|
||||
Dear Federated Customer,
|
||||
<p>
|
||||
Please read this note in its entirety since it has some important information for you to get the best use
|
||||
out of your Federated Core. If you ever get stuck for whatever reason, please reach out to us for support:
|
||||
<p>
|
||||
Website: https://support.federated.computer<br>
|
||||
Phone: 970-722-8715<br>
|
||||
Email: support@federated.computer<br>
|
||||
<p>
|
||||
We are here to help you, the Customer, get the most out of your Federated Core.
|
||||
<p>
|
||||
All documentation for your Federated Core can be found at https://documentation.federated.computer.
|
||||
There you'll find tips for how to use your Core and the various open source applications bundled with
|
||||
your Core.
|
||||
<p>
|
||||
<h4>Domain Information</h4>
|
||||
This is your domain: <b>$DOMAIN</b>
|
||||
<p>
|
||||
If you just signed up for Federated Core, your domain is a temporary domain (example: starts with F...). Please do not change the admin password (see below) until you switch to your own domain name (example: mustache.com). We use the admin account and password for your temporary domain to re-configure all the software for your new/permanent domain. If you have a question about this, send us an email to support@federated.computer.
|
||||
<p>
|
||||
When you are ready to switch over to your own domain.com send us an e-mail at support@federated.computer and let us know you are done migrating your data, have pointed DNS correctly, and ready for us to switch. We also need to know the domain.com you will be using.
|
||||
<p>
|
||||
For setting DNS records you will need to set your glue records for your own domain.com to be:
|
||||
<p>
|
||||
ns1.domain.com - $EXTERNALIP<br>
|
||||
ns2.domain.com - $EXTERNALIP<br>
|
||||
<p>
|
||||
And your authoritative:
|
||||
<p>
|
||||
ns1.domain.com<br>
|
||||
ns2.domain.com<br>
|
||||
<p>
|
||||
If you have questions about DNS records, please send us an email at support@federated.computer so that we can help you.
|
||||
<p>
|
||||
<h4>Admin and Listmonk User</h4>
|
||||
<p>
|
||||
There is an "admin" or administrative use that has access to everything on your Federated Core.
|
||||
Here are the credentials for that user.
|
||||
<p>
|
||||
Username = "admin@$DOMAIN"<br>
|
||||
Password = "$ADMINPASS"
|
||||
<p>
|
||||
Listmonk is a single user system and the credentials are below.
|
||||
<p>
|
||||
Username = "listmonk"<br>
|
||||
Password = "$LISTMONKPASS"
|
||||
<p>
|
||||
<p>
|
||||
<h4>Applications</h4>
|
||||
<style type="text/css">
|
||||
.tg {border-collapse:collapse;border-spacing:0;}
|
||||
.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
|
||||
overflow:hidden;padding:10px 5px;word-break:normal;}
|
||||
.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
|
||||
font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
|
||||
.tg .tg-cul6{border-color:inherit;color:#340096;text-align:left;text-decoration:underline;vertical-align:top}
|
||||
.tg .tg-acii{background-color:#FFF;border-color:inherit;color:#333;text-align:left;vertical-align:top}
|
||||
.tg .tg-0hty{background-color:#000000;border-color:inherit;color:#ffffff;font-weight:bold;text-align:left;vertical-align:top}
|
||||
.tg .tg-kwiq{border-color:inherit;color:#000000;text-align:left;vertical-align:top}
|
||||
.tg .tg-0pky{border-color:inherit;text-align:left;vertical-align:top}
|
||||
</style>
|
||||
<table class="tg" style="undefined;table-layout: fixed; width: 996px">
|
||||
<colgroup>
|
||||
<col style="width: 101.333333px">
|
||||
<col style="width: 203.333333px">
|
||||
<col style="width: 172.333333px">
|
||||
<col style="width: 221.333333px">
|
||||
<col style="width: 77.333333px">
|
||||
<col style="width: 220.333333px">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="tg-0hty">Service</th>
|
||||
<th class="tg-0hty">Link</th>
|
||||
<th class="tg-0hty">User / Pass</th>
|
||||
<th class="tg-0hty">Access</th>
|
||||
<th class="tg-0hty">Docs</th>
|
||||
<th class="tg-0hty">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Panel</td>
|
||||
<td class="tg-kwiq"><a href="https://panel.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">panel.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">All users added in panel can access panel with their own user@$DOMAIN</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/panel" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">Use panel to create user accounts for your team and change passwords</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Email</td>
|
||||
<td class="tg-kwiq"><a href="https://nextcloud.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">nextcloud.$DOMAIN</span></a><br>WebMail application</td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">All users added in panel can access their own mail accounts through Nextcloud or mail client using user@$DOMAIN</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/getting_started/welcome" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">This is your own private e-mail service accessed through Nextcloud webmail or configure a mail client with SMTP mail.$DOMAIN (port 465), and IMAP mail.$DOMAIN (port 993)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Nextcloud</td>
|
||||
<td class="tg-kwiq"><a href="https://nextcloud.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">nextcloud.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">All users added in panel can access Nextcloud / Email with their own user@$DOMAIN account</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/nextcloud" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">The Nextcloud Suite replaces google workspace which provides mail, calendar, contacts, notes, tasks, files, word processing, spreadsheets, project management, slides, and pictures</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Jitsi</td>
|
||||
<td class="tg-kwiq"><a href="https://jitsi.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">jitsi.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">admin<br>admin password above</td>
|
||||
<td class="tg-kwiq">All users added in panel can access Jitsi with their own user account using 'username'</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/jitsi" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">Jitsi is a zoom replacement video conferencing solution</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Element</td>
|
||||
<td class="tg-kwiq"><a href="https://element.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">element.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">All users added in panel can access element / matrix with their own user@$DOMAIN account</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/element" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">Element (a Slack replacement) provides you the ability to chat with those on your team and outside of your team</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Listmonk</td>
|
||||
<td class="tg-kwiq"><a href="https://listmonk.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">listmonk.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">listmonk<br>listmonk password above</td>
|
||||
<td class="tg-kwiq">User access is separate from panel. There is only the listmonk user</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/listmonk" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">Listmonk is (a replacement for Mailchimp) is used to create e-mail subscription lists</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Baserow</td>
|
||||
<td class="tg-kwiq"><a href="https://baserow.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">baserow.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">User access is separate from panel. Use the admin account to login and then invite other users</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/baserow" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">Baserow (Air table replacement) allows you to create and customize databases without writing any code</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Vaultwarden</td>
|
||||
<td class="tg-kwiq"><a href="https://vaultwarden.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">vaultwarden.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">Create your own user</td>
|
||||
<td class="tg-kwiq">User access is separate from panel. Create your own initial user</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/vaultwarden" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">Vaultwarden is a password manager</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Gitea</td>
|
||||
<td class="tg-kwiq"><a href="https://gitea.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">gitea.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">User access is separate from panel</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/gitea" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">Gitea is a code repository system similar to GitHub</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">PowerDNS</td>
|
||||
<td class="tg-kwiq"><a href="https://powerdns.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">powerdns.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">User access is separate from panel</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/powerdns" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">PowerDNS is a powerful tool for managing DNS of your domain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-0pky">Castopod</td>
|
||||
<td class="tg-0pky"><a href="https://castopod.$DOMAIN/cp-auth/login" target="_blank" rel="noopener noreferrer"><span style="color:#340096">castopod.$DOMAIN/cp-auth/login</span></a></td>
|
||||
<td class="tg-0pky">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-0pky">User access is separate from panel</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/getting_started/welcome" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-0pky">Castopod is a full platform for hosting and delivering podcasts to your audience</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-0pky">Wordpress</td>
|
||||
<td class="tg-0pky"><a href="https://www.$DOMAIN/login" target="_blank" rel="noopener noreferrer"><span style="color:#340096">www.$DOMAIN/login</span></a></td>
|
||||
<td class="tg-0pky">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-0pky">User access is separate from panel</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/getting_started/welcome/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-0pky">Wordpress is a dynamic content management solution used by 10s of millions of websites around the globe</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-0pky">Autodiscovery</td>
|
||||
<td class="tg-0pky"><a href="https://autodiscover.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">autodiscover.$DOMAIN</span></a></td>
|
||||
<td class="tg-0pky">No login</td>
|
||||
<td class="tg-0pky">No user access</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/getting_started/welcome/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-acii"><span style="color:#333;background-color:#FFF">Auto discovery is a service to provide automatic mail configurations for mail clients</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<h4>VPN</h4>
|
||||
<p>
|
||||
Your core comes with a very powerful VPN solution built using Wireguard. The following information is
|
||||
needed by your users so that they can use the VPN. Please treat this information as a very important
|
||||
secret. There are two important parts of the VPN:
|
||||
<p>
|
||||
Here is your VPN configuration:<br>
|
||||
<code>
|
||||
|
||||
EOF
|
||||
sed "s/$/<br>/" /federated/apps/wireguard/data/config/peer1/peer1.conf >> /federated/apps/mail/data/root/certs/mailfile
|
||||
|
||||
cat >> /federated/apps/mail/data/root/certs/mailfile <<EOF
|
||||
|
||||
</code>
|
||||
<h4>Thanks for your support!</h4>
|
||||
<p>
|
||||
Thank you for your support of Federated Computer. We really appreciate it and hope you have a very successful
|
||||
time with Federated Core.
|
||||
<p>
|
||||
Again, if we can be of any assistance, please don't hesitate to get in touch. Don't hesitate.
|
||||
<p>
|
||||
Support: https://support.federated.computer<br>
|
||||
Phone: (970) 722-8715<br>
|
||||
Email: support@federated.computer<br>
|
||||
<p>
|
||||
It's <b>your</b> computer. Let's make it work for you!
|
||||
</html>
|
||||
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 \"Welcome to Federated\" admin@$DOMAIN < /root/certs/mailfile"
|
||||
docker exec mail bash -c "mail -r admin@$DOMAIN -a \"Content-type: text/html\" -s \"Welcome to Federated\" $EMAIL < /root/certs/mailfile"
|
||||
cat /federated/apps/mail/data/root/certs/mailfile
|
||||
rm /federated/apps/mail/data/root/certs/mailfile
|
||||
}
|
||||
print_details() {
|
||||
cat > /federated/apps/mail/data/root/certs/mailfile <<EOF
|
||||
<html>
|
||||
@ -485,6 +714,11 @@ User administration is done in Castopod, but you set up users using the admin us
|
||||
<p>
|
||||
<h4>Wordpress: <a href="https://www.$DOMAIN/login">https://www.$DOMAIN/login</a></h4>
|
||||
Wordpress provides a dynamic content-management-solution used by 10s of millions of websites around the globe. Federated
|
||||
# Send out e-mail from mail container with details
|
||||
docker exec mail bash -c "mail -r admin@$DOMAIN -a \"Content-type: text/html\" -s \"Welcome to Federated\" admin@$DOMAIN < /root/certs/mailfile"
|
||||
docker exec mail bash -c "mail -r admin@$DOMAIN -a \"Content-type: text/html\" -s \"Welcome to Federated\" $EMAIL < /root/certs/mailfile"
|
||||
cat /federated/apps/mail/data/root/certs/mailfile
|
||||
rm /federated/apps/mail/data/root/certs/mailfile
|
||||
has included it as one of the two (and default) solutions for hosting your domain's website.
|
||||
<p>
|
||||
Simply go to the wordpress link above and enter the admin name and password for access to Wordpress for your domain.
|
||||
|
Loading…
x
Reference in New Issue
Block a user