2020-04-29 00:19:34 +00:00
|
|
|
from cryptography.fernet import Fernet
|
2020-01-21 20:26:49 +00:00
|
|
|
from flask import Flask
|
|
|
|
import os
|
|
|
|
|
|
|
|
app = Flask(__name__, static_folder=os.path.dirname(os.path.abspath(__file__)) + '/static')
|
2020-04-29 00:19:34 +00:00
|
|
|
app.secret_key = Fernet.generate_key()
|
2020-05-22 22:08:47 +00:00
|
|
|
app.config['VERSION_NUMBER'] = '0.1.4'
|
2020-05-20 17:02:30 +00:00
|
|
|
app.config['APP_ROOT'] = os.getenv('APP_ROOT', os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
app.config['STATIC_FOLDER'] = os.getenv('STATIC_FOLDER', os.path.join(app.config['APP_ROOT'], 'static'))
|
|
|
|
app.config['CONFIG_PATH'] = os.getenv('CONFIG_VOLUME', app.config['STATIC_FOLDER']) + '/config.json'
|
2020-01-21 20:26:49 +00:00
|
|
|
|
|
|
|
from app import routes
|