Raflyarya / flask_panel

Just like a Cpanel. but, for python flask.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

img

Just like a CPanel. but it's for python Flask only. The reason I make this is because my personal problem that I always manually deploy my app to my server.

Feature

  • MySQL Database
  • phpMyAdmin
  • File Manager
  • Backup
  • Git
  • SLL Let's encrypt

note: the unchecked will added soon

then, How?


Requirements

  • Ubuntu server with sudo
  • python3
  • screen
  • a domain that already add A record to public server IP Note: Disable proxy, for certbot installation. you can enable it after installation done

Step 1

Clone or download or anything this repo and put to your server. I recomended here

root
 ┗ 📦flask_panel
    ┣ 📂 flask_panel
    ┣ 📜config.json
    ┣ 📜flask_panel.py
    ┣ 📜flask_panel.sql
    ┗ 📜README.md

Step 2

Set up the config file in config.json

{
    "admin":{
        "username":"admin",
        "password":".Admin1234"
    },

    "server_name": {
        "flask_panel": "panel.example.com",
        "phpmyadmin":"database.example.com"
    },

    "phpver": "8.1"
}
  • the admin is login access to your flask panel
  • the server_name is a domain with A record to your public server IP.

Example setting DNS A record img

Step 3

get into flask_panel directory

$cd flask_panel

and run the installation

$python3 flask_panel.py

if this appear, just hit enter and enter img Note: do not restart it

if this appear, press tab until the red box hit <Ok> and press enter img it because flask_panel use nginx. so you don't need apache2 and lighttpd

if this appear, just hit yes and input whatever you want. img

if the email input appear, just input your email. it's for certbot installation then y,y,y

if the App running.. apperear, thats mean installation done. access your panel with flask_panel server_name

Explore it by yourself and feel free to contact me :3

About

Just like a Cpanel. but, for python flask.

License:MIT License


Languages

Language:Python 100.0%