Skip to content

kd7lxl/aprs2net-backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aprs2.net backend code, model 2

Here's a little bit of code to poll aprs2.net servers and verify their availability.

License

This code is released under the BSD license, which can be found in the file LICENSE.

Installation

Install dependencies:

apt-get install git redis-server python python-redis python-lxml
apt-get install supervisor nodejs nginx

Prepare:

sudo adduser --system --disabled-login --group t2poll
cd /opt

Download:

sudo git clone -b release https://github.com/hessu/aprs2net-backend.git

Adjust nginx config:

rm /etc/nginx/sites-enabled/default
cd /etc/nginx/sites-enabled
ln -s /opt/aprs2net-backend/conf-poller/nginx-vhost.conf t2poll.conf
# edit /opt/aprs2net-backend/conf-poller/nginx-vhost.conf to fix the server hostname
service nginx restart

Adjust poller config:

cd /opt/aprs2net-backend
sudo mkdir logs
sudo chown t2poll:t2poll logs
cd /opt/aprs2net-backend/poller
cp poller-example.conf poller.conf
# edit poller conf

Set up supervisord:

cd /etc/supervisor/conf.d
sudo ln -s /opt/aprs2net-backend/conf-poller/poller-supervisor.conf
supervisorctl reload

Upgrading:

cd /opt/aprs2net-backend
sudo git fetch
sudo git rebase

# restart nginx, if changes were made to its config
service nginx restart

# restart poller and status web app
service supervisor restart

Other operations:

# to restart just the poller
supervisorctl restart a2poller

# to restart just the status web app
supervisorctl restart a2web

Logs:

/opt/aprs2net-backend/logs contains log files for the web app and the poller. /var/log/nginx contains logs of the nginx web server. supervisord, which keeps the poller and web app processes running, logs in /var/log/supervisor.

About

aprs2.net backend, model 2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.6%
  • JavaScript 1.3%
  • CSS 0.1%