diff --git a/lib/functions.sh b/lib/functions.sh index 80bb49d..e6a5364 100644 --- a/lib/functions.sh +++ b/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 < +
+Dear Federated Customer, +

+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: +

+Website: https://support.federated.computer
+Phone: 970-722-8715
+Email: support@federated.computer
+

+We are here to help you, the Customer, get the most out of your Federated Core. +

+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. +

+

Domain Information

+This is your domain: $DOMAIN +

+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. +

+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. +

+For setting DNS records you will need to set your glue records for your own domain.com to be: +

+ns1.domain.com - $EXTERNALIP
+ns2.domain.com - $EXTERNALIP
+

+And your authoritative: +

+ns1.domain.com
+ns2.domain.com
+

+If you have questions about DNS records, please send us an email at support@federated.computer so that we can help you. +

+

Admin and Listmonk User

+

+There is an "admin" or administrative use that has access to everything on your Federated Core. +Here are the credentials for that user. +

+Username = "admin@$DOMAIN"
+Password = "$ADMINPASS" +

+Listmonk is a single user system and the credentials are below. +

+Username = "listmonk"
+Password = "$LISTMONKPASS" +

+

+

Applications

+ + ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ServiceLinkUser / PassAccessDocsDescription
Panelpanel.$DOMAINadmin@$DOMAIN
admin password above
All users added in panel can access panel with their own user@$DOMAINClick hereUse panel to create user accounts for your team and change passwords
Emailnextcloud.$DOMAIN
WebMail application
admin@$DOMAIN
admin password above
All users added in panel can access their own mail accounts through Nextcloud or mail client using user@$DOMAINClick hereThis 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)
Nextcloudnextcloud.$DOMAINadmin@$DOMAIN
admin password above
All users added in panel can access Nextcloud / Email with their own user@$DOMAIN accountClick hereThe Nextcloud Suite replaces google workspace which provides mail, calendar, contacts, notes, tasks, files, word processing, spreadsheets, project management, slides, and pictures
Jitsijitsi.$DOMAINadmin
admin password above
All users added in panel can access Jitsi with their own user account using 'username'Click hereJitsi is a zoom replacement video conferencing solution
Elementelement.$DOMAINadmin@$DOMAIN
admin password above
All users added in panel can access element / matrix with their own user@$DOMAIN accountClick hereElement (a Slack replacement) provides you the ability to chat with those on your team and outside of your team
Listmonklistmonk.$DOMAINlistmonk
listmonk password above
User access is separate from panel. There is only the listmonk userClick hereListmonk is (a replacement for Mailchimp) is used to create e-mail subscription lists
Baserowbaserow.$DOMAINadmin@$DOMAIN
admin password above
User access is separate from panel. Use the admin account to login and then invite other usersClick hereBaserow (Air table replacement) allows you to create and customize databases without writing any code
Vaultwardenvaultwarden.$DOMAINCreate your own userUser access is separate from panel. Create your own initial userClick hereVaultwarden is a password manager
Giteagitea.$DOMAINadmin@$DOMAIN
admin password above
User access is separate from panelClick hereGitea is a code repository system similar to GitHub
PowerDNSpowerdns.$DOMAINadmin@$DOMAIN
admin password above
User access is separate from panelClick herePowerDNS is a powerful tool for managing DNS of your domain
Castopodcastopod.$DOMAIN/cp-auth/loginadmin@$DOMAIN
admin password above
User access is separate from panelClick hereCastopod is a full platform for hosting and delivering podcasts to your audience
Wordpresswww.$DOMAIN/loginadmin@$DOMAIN
admin password above
User access is separate from panelClick hereWordpress is a dynamic content management solution used by 10s of millions of websites around the globe
Autodiscoveryautodiscover.$DOMAINNo loginNo user accessClick hereAuto discovery is a service to provide automatic mail configurations for mail clients
+
+

VPN

+

+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: +

+Here is your VPN configuration:
+ + +EOF +sed "s/$/
/" /federated/apps/wireguard/data/config/peer1/peer1.conf >> /federated/apps/mail/data/root/certs/mailfile + +cat >> /federated/apps/mail/data/root/certs/mailfile < +

Thanks for your support!

+

+Thank you for your support of Federated Computer. We really appreciate it and hope you have a very successful +time with Federated Core. +

+Again, if we can be of any assistance, please don't hesitate to get in touch. Don't hesitate. +

+Support: https://support.federated.computer
+Phone: (970) 722-8715
+Email: support@federated.computer
+

+It's your computer. Let's make it work for you! + +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 < @@ -485,6 +714,11 @@ User administration is done in Castopod, but you set up users using the admin us

Wordpress: https://www.$DOMAIN/login

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.

Simply go to the wordpress link above and enter the admin name and password for access to Wordpress for your domain.