My oracle server setup script!
Must have a domain in cloudflare. After that go to tunnels & make a tunnel and setup it in the server ( follow the on screen steps.). Take the url use paste it in url of webhook of bot. Now do screen then set port for ex. 443 in the bot which has been provided in the local host url of cloudflare tunnel. Then
sudo su
then activate virtual env then cd then must dogit config --global --add safe.directory /home/ubuntu/folder
for git pull support and now run it and deattach the screen. Dosudo chown -R ubuntu /home/ubuntu/venv/
after deattaching the screen pip3 workings.
sudo apt install firewalld
sudo firewall-cmd --zone=public --permanent --add-port=443/tcp
sudo firewall-cmd --reload
sudo iptables -I INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT
sudo netfilter-persistent save
Then open in the protal!