This Flask-based web application provides a secure interface for deploying updates and checking the status of the Financio server. It uses Python for backend development and ensures security through password-based authentication.
- Deployment Endpoint: Securely run deployment scripts with password authentication.
- Status Check Endpoint: Retrieve server status, including nginx, CPU, and RAM usage, with password protection.
- Python 3.x
- Flask
- Access to the server where the application is hosted.
- Clone the repository to your local machine/server.
- Install Flask: pip install Flask
- Place your API password in api_password.txt in the root directory.
- Copy the provided apiForDeploy.service file to /etc/systemd/system/.
To run the API as a service:
- Copy the named apiForDeploy.service to the /etc/systemd/system/ directory.
- Enable the service:
sudo systemctl enable apiForDeploy
- Start the service:
sudo systemctl start apiForDeploy
- Check the service status:
sudo systemctl status apiForDeploy
- Make sure to
chmod +x
the python script and bash scripts - Also add permissions
chmod +r
(orchmod 600
if you have multiple users)