Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
129 lines (91 sloc) 2.9 KB

Setup Notifications for version AtomJump Appliance 0.8.0

This is a 1st draft, but it has been confirmed to work. Please replace 127.0.0.1 with your own IP address of the server, or domain, below.

MedImage Install Steps

As aj_customer user:

sudo npm install pm2@latest -g
sudo npm install medimage -g
cd "$(npm prefix -global)/lib/node_modules/medimage/" 
sudo cp config-original/linORIGINALconfig.json config.json
sudo cp addons/configORIGINAL.json addons/config.json
sudo pm2 start npm --name "medimage-server" -- start ./medimage-server.sh; cd ~
sudo pm2 save
sudo pm2 startup


sudo ufw allow 5566/tcp

Add another port MedImage Host: TCP 127.0.0.1 Port: 5566 Guest IP 10.0.2.15 Port:5566

App

git clone https://src.atomjump.com/atomjump/messaging app
cd app
git checkout browser-production


sudo npm install -g cordova
sudo cordova platform add browser
Usage statistics q: Y

sudo cordova run browser

sudo ufw allow 8000/tcp

Add another port Cordova Host: TCP 127.0.0.1 Port: 8000 Guest IP 10.0.2.15 Port:8000

sudo pm2 start 'sudo cordova run browser'
sudo pm2 save

Notifications

cd ~

sudo git -C /jet/www/default/vendor/atomjump/loop-server/plugins/notifications pull

sudo /jet/bin/php /jet/www/default/vendor/atomjump/loop-server/plugins/notifications/install.php

sudo chmod 777 /jet/www/default/vendor/atomjump/loop-server/plugins/notifications/outgoing

sudo cp /jet/www/default/vendor/atomjump/loop-server/plugins/notifications/config/config.json /jet/www/default/vendor/atomjump/loop-server/plugins/notifications/config/config-old.json 
sudo cp /jet/www/default/vendor/atomjump/loop-server/plugins/notifications/config/configORIGINAL.json /jet/www/default/vendor/atomjump/loop-server/plugins/notifications/config/config.json 
"serverPath": "\/jet\/www\/default\/vendor\/atomjump\/loop-server\/",
"streamingAppLink": "http:\/\/127.0.0.1:8000",
"androidNotifications": {
	"use": false,
	"apiKey": ""
},
"iosNotifications": {
	"use": false,
	"apiKeyFile": ""    
},
"atomjumpNotifications": {
	"use": true,
	"serverPool": {
		"Default": [
			"http:\/\/127.0.0.1:5566"
		]
	}
},

"countryServerResidingIn": {
	"Default": "New Zealand"	
}

Email will need to be set up to confirm you account

Worth getting the latest loop-server, for nicer link

sudo git  -C /jet/www/default/vendor/atomjump/loop-server/pull

Edit your config. You will need an smtp account. e.g. smtp2go.com

sudo nano /jet/www/default/vendor/atomjump/loop-server/config/config.json

Set "staging":

    "email" : {
      "adminEmail" : "youremail@yourcompany.com",
      "webmasterEmail" : "youremail@yourcompany.com",
      "noReplyEmail" : "noreply@yourcompany.com",
      "sending" : {
        "use" : "smtp",
        "smtp" : "mail.smtp2go.com",
        "user" : "youremail@yourcompany.com",
        "pass" : "yourpassword",
        "port" : "2525"
      }
    },