An API built with Flask used to serve content for mythril.io.
Setup your virtual environment and install required packages with pipenv.
pipenv shell
Create a .env file in the root folder
# Flask SQLAlchemy
SQLALCHEMY_DATABASE_URI= "mysql+mysqlconnector://username:password@localhost:port/database"
SQLALCHEMY_TRACK_MODIFICATIONS = False
# Flask Praetorian
PRAETORIAN_SECRET_KEY = "top secret"
PRAETORIAN_CONFIRMATION_SENDER = "[email protected]"
PRAETORIAN_CONFIRMATION_URI = "http://localhost/verify"
# Flask Mail
# A free service such as Mailtrap can be used for email testing
MAIL_SERVER = "smtp.mailtrap.io"
MAIL_PORT = port
MAIL_USERNAME = "username"
MAIL_PASSWORD = "password"
# S3/Digital Ocean Spaces
DO_SPACES_REGION = region
DO_SPACES_KEY = key
DO_SPACES_SECRET = secret
DO_SPACES_BUCKET= bucket
Run your Flask application.
flask run
Instructions coming soon.