2022-04-16 16:03:30 +00:00
|
|
|
cd /rDrama
|
2022-02-22 13:34:41 +00:00
|
|
|
cp ./env /env
|
|
|
|
. /env
|
2022-02-05 09:36:34 +00:00
|
|
|
sudo apt update
|
|
|
|
sudo apt -y upgrade
|
2022-02-22 13:34:41 +00:00
|
|
|
sudo apt -y install postgresql postgresql-contrib redis-server python3-pip libenchant1c2a ffmpeg
|
2022-02-05 10:17:08 +00:00
|
|
|
cp pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
|
2022-02-05 09:36:34 +00:00
|
|
|
sudo service postgresql restart
|
|
|
|
sudo psql -U postgres -f schema.sql postgres
|
|
|
|
sudo psql -U postgres -f seed-db.sql postgres
|
|
|
|
sudo pip3 install -r requirements.txt
|
|
|
|
mkdir /songs
|
|
|
|
mkdir /images
|
2022-02-18 13:47:17 +00:00
|
|
|
. imei.sh
|
2022-04-16 20:11:19 +00:00
|
|
|
ufw allow ssh
|
|
|
|
ufw allow from 173.245.48.0/20
|
|
|
|
ufw allow from 103.21.244.0/22
|
|
|
|
ufw allow from 103.22.200.0/22
|
|
|
|
ufw allow from 103.31.4.0/22
|
|
|
|
ufw allow from 141.101.64.0/18
|
|
|
|
ufw allow from 108.162.192.0/18
|
|
|
|
ufw allow from 190.93.240.0/20
|
|
|
|
ufw allow from 188.114.96.0/20
|
|
|
|
ufw allow from 197.234.240.0/22
|
|
|
|
ufw allow from 198.41.128.0/17
|
|
|
|
ufw allow from 162.158.0.0/15
|
|
|
|
ufw allow from 104.16.0.0/13
|
|
|
|
ufw allow from 104.24.0.0/14
|
|
|
|
ufw allow from 172.64.0.0/13
|
|
|
|
ufw allow from 131.0.72.0/22
|