How to create SMSPLATFORM server for customer (13 Nov 2019)
Posted by Account Administrator on 29 October 2019 11:20 AM
|
|
Description how to create a new Hosted SMS Master for customer <customer_id>. 1. Get Customer ID Go to super.simberry.com -> Customers and get the Customer ID. It will be used in configuration. 2. Setup VM in Google Cloud 2.1 Go to Compute Engine / Images - Select image "debian-10-buster-v20191014" and click "Create instance".
- Set Instance name as smsplatform<customer_id> without spaces, f.e. smsplatform1335 you can click [CREATE] button Wait until VM smsplatform<customer_id> is created 3. Set External IP for smsplatfrom<customer_id>in Google cloud - Go to VPC Networking and select External IP adresses 4. Setup the VM smsplatform<customer_id> from SSH (go to VM instances and click SSH) 4.1 apt repositories: run following commands one by one from prompt sudo -s echo "deb [trusted=yes] http://packages-int.simberry.com/simberry/ stretch main" > /etc/apt/sources.list.d/simberry.list apt update && apt upgrade && apt install aptitude /* Setup disk */ /* Create new folder*/
root@smsplatform1520:/etc#ls -l /dev/disk/by-uuid/ total 0 /* add new entry in /etc/fstab */ f.e. UUID=3d205092-dbbe-4076-a13b-aba6456c5ff6 /var/lib/postgresql ext4 rw,discard,errors=remount-ro 0 0 check with mount -a /dev/sdb /* IMPORTANT, check the /dev/sdb is mounted */ /* just hit ENTER to all question and keep default and/or empty value as is and wait for end of configuration */ echo "host upm upm 0.0.0.0/0 md5" >> /etc/postgresql/11/main/pg_hba.conf 4.2 Set the External IP (if no domain proxy setup required) - For mobius: edit file /var/www/mobius/mobius-api/.env and replace ONLY value of EXTERNAL_IP from loopback IP with external IP (last line of file) 4.3 Record the HSR password (from ssh) - more /etc/upm/config.yml ds: 5. Create Hosted SMS Router IMPORTANT: If Customer has already a SMS Router then you must delete it prior to create the new one Go to Super SIMBERRY, Hosted SMS Router clcik Add new' HSR and fill in the form as: Enable the HSR Click [OK] 6. Set the DNS From Godaddy add new DNS entries: That's it ! the SMS Master should be running under customer account | |
|