-
Notifications
You must be signed in to change notification settings - Fork 0
Installing
Chelsea edited this page Jun 20, 2025
·
2 revisions
sudo apt install python3.12, python3-pip, git, python3-venv
cd /usr/local
git clone https://github.com/foxtrt-com/cdn.git
cd cdn
python3.12 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
flask --app app init-db
deactivate
python3.12 -c 'import secrets; print(secrets.token_hex())'
echo "SECRET_KEY = 'PUT YOUR KEY HERE'" > ./instance/config.py
nano /etc/systemd/system/foxtrtcdn.service
[Unit]
Description=Foxtrt.com CDN application
After=network.target
[Service]
WorkingDirectory=/usr/local/cdn
ExecStart=/usr/local/cdn/venv/bin/waitress-serve --call app:create_app
Restart=always
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable foxtrtcdn