mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Remove default values.
This commit is contained in:
parent
7aef3de81d
commit
4d90b552d0
@ -13,16 +13,15 @@ class Config:
|
|||||||
'trigger': 'interval'
|
'trigger': 'interval'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
MAIL_SERVER = os.environ.get('MAIL_SERVER', 'smtp.gmail.com')
|
MAIL_SERVER = os.environ.get('MAIL_SERVER')
|
||||||
MAIL_PORT = int(os.environ.get('MAIL_PORT', '587'))
|
MAIL_PORT = int(os.environ.get('MAIL_PORT'))
|
||||||
MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS', 'true').lower() in \
|
MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS').lower() == 'true'
|
||||||
['true', 'on', '1']
|
|
||||||
MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
|
MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
|
||||||
MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
|
MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
|
||||||
OPAQUE_ADMIN = os.environ.get('OPAQUE_ADMIN')
|
OPAQUE_ADMIN = os.environ.get('OPAQUE_ADMIN')
|
||||||
OPAQUE_STORAGE = os.environ.get('OPAQUE_STORAGE')
|
OPAQUE_STORAGE = os.environ.get('OPAQUE_STORAGE')
|
||||||
OPAQUE_MAIL_SUBJECT_PREFIX = '[Opaque]'
|
OPAQUE_MAIL_SUBJECT_PREFIX = '[Opaque]'
|
||||||
OPAQUE_MAIL_SENDER = 'Opaque Development <dev.opaque@gmail.com>'
|
OPAQUE_MAIL_SENDER = 'Opaque'
|
||||||
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
|
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||||
|
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
|
from dotenv import load_dotenv
|
||||||
|
load_dotenv()
|
||||||
|
|
||||||
from app import create_app, db, socketio
|
from app import create_app, db, socketio
|
||||||
from app.models import Corpus, User, Role, Permission, Job
|
from app.models import Corpus, User, Role, Permission, Job
|
||||||
from dotenv import load_dotenv
|
|
||||||
from flask_migrate import Migrate
|
from flask_migrate import Migrate
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
load_dotenv()
|
|
||||||
|
|
||||||
|
|
||||||
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
|
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
|
||||||
|
Loading…
Reference in New Issue
Block a user