Repository navigation
Starting Flare
tago edited this page May 9, 2024
·
10 revisions
Flare depends on all 5 services in order to validate, add, and update user data. These services include the Cloudflare Docker container, the Discord bot, the key watcher/encryptor, the Apache webserver and the Flask API. This page will show you how to start all these services assuming you saved the Cloudflare command.
- Open a new terminal
- Run your Cloudflare shell command
sudo systemctl start apache2.service
- In the same terminal
- Run your Cloudflare shell command
sudo sh Cloudflare.sh
- Open a new, seperate terminal
- CD into the Flare directory
- Run the main.js file using node
sudo node .
- Open a new, seperate terminal
- CD into the Flare/assets directory
- Run the watcher python script using
sudo python3 watcher.py
- Open a new, seperate terminal
- CD into the Flare directory, then into the 'api' directory
- Start the environment
source env/bin/activate - Run the API python script
sudo python3 api.py
- Install TMUX with the apt command
sudo apt install tmux
- Create a TMUX session
tmux new -s flare
- Split your terminal into 4 panes
- Start Apache and run the Cloudflare shell script in one pane
- In all other panes, repeat previous steps making sure to run each command in separate panes
- Open a web browser and enter your Cloudflare link for WebDAV (port 80). (For example, https://auth.yourdomain.com/).
- You should see "Your Auth Server Is Up!"
- Open a web browser and enter your Cloudflare link for the API (port 5000). (For example, https://api.yourdomain.com/).
- You should see "Not Found"
