|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
|
from secrets import token_urlsafe
|
|
|
|
|
from datetime import timedelta
|
|
|
|
|
from os import getenv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -29,5 +30,10 @@ DB_PASS = getenv('DB_PASS')
|
|
|
|
|
REDIS_HOST = getenv('REDIS_HOST', 'localhost')
|
|
|
|
|
REDIS_PORT = getenv('REDIS_PORT', 6379)
|
|
|
|
|
|
|
|
|
|
# Sessions
|
|
|
|
|
SESSION_LENGTH = int(getenv('SESSION_LENGTH', 30))
|
|
|
|
|
PERMANENT_SESSION_LIFETIME = timedelta(minutes=SESSION_LENGTH)
|
|
|
|
|
MAX_CONTENT_LENGTH = 50 * 1024 * 1024
|
|
|
|
|
|
|
|
|
|
# Development
|
|
|
|
|
TEMPLATES_AUTO_RELOAD = True
|
|
|
|
|