@@ -6,7 +6,6 @@ FLASK_RUN_HOST=0.0.0.0 | |||
FLASK_ENV=development | |||
SECRET_KEY= | |||
DATABASE_URL=sqlite:///db.sqlite | |||
SERVER_NAME= | |||
# MariaDB variables (for production only) | |||
MYSQL_ROOT_PASSWORD= |
@@ -20,8 +20,7 @@ db = SQLAlchemy() | |||
moment = Moment() | |||
def create_app(): | |||
app = Flask(__name__, subdomain_matching=True) | |||
app.config['SERVER_NAME'] = os.environ.get('SERVER_NAME') | |||
app = Flask(__name__) | |||
# get config variables from OS environment variables: set in env file passed through Docker Compose | |||
app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY') |
@@ -12,7 +12,7 @@ from flask_login import login_user, logout_user, login_required | |||
from .models import User | |||
from . import db | |||
auth = Blueprint('auth', __name__, subdomain="toolkit") | |||
auth = Blueprint('auth', __name__) | |||
# routes for login page | |||
@auth.route('/login') |