#!/bin/bash # # MSP Service PATH=$HOME/.docker/cli-plugins:/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin config_msp() { echo -ne "\n* Configuring msp container.." spin & SPINPID=$! if [ ! -d "/federated/apps/msp" ]; then mkdir -p /federated/apps/msp/data fi EXTERNALIP=$(get_externalip); ADMINPASS=`cat /federated/apps/panel/.env | grep SMTP_PASSWORD | awk -F= '{ print $2 }'` TRAEFIK_HTTPAUTH_STRING_MSP=$(echo `htpasswd -nb admin@$DOMAIN $ADMINPASS` | sed -e s/\\$/\\$\\$/g) cat > /federated/apps/msp/docker-compose.yml < /federated/apps/msp/.env < /dev/null echo -ne "done.\n" } start_msp() { # Start service with command to make sure it's up before proceeding start_service "msp" "nc -z 172.99.0.38 3000 &> /dev/null" "7" docker exec pdns pdnsutil add-record $DOMAIN msp A 86400 $EXTERNALIP &> /dev/null [ $? -ne 0 ] && fail "Couldn't add dns record for msp" kill -9 $SPINPID &> /dev/null echo -ne "done.\n" } email_msp() { echo -ne "* Sending email to customer.." spin & SPINPID=$! cat > /federated/apps/mail/data/root/certs/mailfile <

MSP (Music Side Project) is now installed on $DOMAIN

Here is your applications chart with on how to access this service:

Applications

Service Link User / Pass Access Docs Description
Music Side Project msp.$DOMAIN admin@$DOMAIN
$ADMINPASS
User access is separate from panel Click here Music Side Project Studio enables you to harness the potential of RSS feeds and the Lightning Network, allowing you to self-host your music and receive direct payment from your fans

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.

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 \"Application installed on $DOMAIN\" $EMAIL < /root/certs/mailfile" rm /federated/apps/mail/data/root/certs/mailfile kill -9 $SPINPID &> /dev/null echo -ne "done.\n" }