-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.sh
More file actions
25 lines (25 loc) · 865 Bytes
/
config.sh
File metadata and controls
25 lines (25 loc) · 865 Bytes
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
sudo apt update && sudo apt upgrade -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.12 python3.12-venv -y
python3.12 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install python-socketio
sudo apt update
sudo apt install supervisor -y
sudo cp config/supervisor.conf /etc/supervisor/conf.d/zvms.conf
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start zvms
sudo supervisorctl status
sudo apt install supervisor -y
sudo cp config/nginx.conf /etc/nginx/sites-available/zvms
sudo ln -s /etc/nginx/sites-available/zvms /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx
sudo apt install certbot python3-certbot-nginx -y
sudo certbot --nginx -d api.zvms.site
sudo certbot renew --dry-run
sudo tail -f /var/log/zvms.out.log
sudo tail -f /var/log/nginx/zvms.log