adduser app password 12345 apt-get update apt-get install python3-pip

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
adduser app
password: 12345
apt-get update
apt-get install python3-pip python3-dev postgresql-server-dev-all postgresql-common libpq-dev python3-psycopg2 zlib1g-dev libssl-dev zstd pgxnclient uwsgi-plugin-python3 redis-tools
sysctl -w net.core.somaxconn=1024
cd /opt/
git clone https://github.com/jan-LM/Pushcentric.git app
cd /opt/app
pip install -r requirements.txt
add-apt-repository ppa:wireguard/wireguard
apt-get update
apt-get install wireguard
cd ~
umask 077
wg genkey | tee privatekey | wg pubkey > publickey
https://wiki.archlinux.org/index.php/WireGuard
MASTER_HOSTNAME = 'app-internal'