Skip to content

Starting Flare

tago edited this page May 9, 2024 · 10 revisions

How to Start Flare (all services)

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.

For Desktop based Linux systems

Apache Webserver

  1. Open a new terminal
  2. Run your Cloudflare shell command
    sudo systemctl start apache2.service

Cloudflare Docker Container

  1. In the same terminal
  2. Run your Cloudflare shell command
    sudo sh Cloudflare.sh

Discord Bot

  1. Open a new, seperate terminal
  2. CD into the Flare directory
  3. Run the main.js file using node
    sudo node .

Key/Account Watcher

  1. Open a new, seperate terminal
  2. CD into the Flare/assets directory
  3. Run the watcher python script using
    sudo python3 watcher.py

Flask API

  1. Open a new, seperate terminal
  2. CD into the Flare directory, then into the 'api' directory
  3. Start the environment
    source env/bin/activate
  4. Run the API python script
    sudo python3 api.py

For terminal based Linux systems

Install and use TMUX

  1. Install TMUX with the apt command
    sudo apt install tmux
  2. Create a TMUX session
    tmux new -s flare
  3. Split your terminal into 4 panes
  4. Start Apache and run the Cloudflare shell script in one pane
  5. In all other panes, repeat previous steps making sure to run each command in separate panes

TMUX Binds

View Your Webservers

  1. 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!"
  2. 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"

Clone this wiki locally