-
Notifications
You must be signed in to change notification settings - Fork 1
Creating an API Checkpoint
Flare and AKoD now use an API instead of pip package for security, and flexibility. Flask API is a type of web API and is designed to make it easy and quick to start building web applications. This API will be used to send a check requests to your auth servers, which should be local, and then return a valid or invalid text.
- In the Flare directory, cd into the 'api' folder
cd ./api - Activate the environment
source env/bin/activate - Install the necessary modules if they aren't already included
sudo pip3 install -r requirements.txt
- Leave the API virtual environment
deactivate
- Head back to Cloudflare Zero Trust dashboard
- Select "Networks" then "Tunnels"
- Click on the menu for the tunnel you have active (assuming your running the API on the same server)
- Configure, then select the "Public Hostname" tab
- Add a public host name
- Choose a name for the subdomain and select your domain
- Select HTTP type and the internal server IP for your Linux server, along with the port 5000 (it should look like
HTTP://10.11.32.121:5000) - Save the hostname
Once your services are online, you can finally implement your license checking in your code!
You have actually completely setup Flare! I think... unless you didnt ant your just on this wiki page and reading this... I don't know who is doing this or who ever would I'm just kinda creating and fixing and writing. The more I think about it, I'm just one of those weirdos who's obsessed with art and posts it all over my page but luckily I don't make it my entire personality, and I barely post about it because no one I know (less than 5 people) likes to or is even slightly into coding. I've been very dedicated to this project and I even got a raspberry pi 5 to use with! hopefully soon I make a video with it to try and get Flare out there more. Who are you writing this to? Why are you still typing? Are you talking to yourself right now...?
~ tago