Skip to content
Snippets Groups Projects
Verified Commit d5041030 authored by nd's avatar nd
Browse files

updated config handling

parent ec4849bf
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,8 @@ def create_app(test_config=None):
# set development default config values
app.config.from_mapping(
TEMPLATES_AUTO_RELOAD=True,
SECRET_KEY=secrets.token_hex(128),
SQLALCHEMY_DATABASE_URI="sqlite:///{}".format(os.path.join(app.instance_path, 'uffd.sqlit3')),
SQLALCHEMY_ECHO=True,
)
app.config.from_pyfile('default_config.cfg')
......
......@@ -7,9 +7,10 @@ LDAP_USER_OBJECTCLASSES=["vmailUser", "top", "inetOrgPerson", "organizationalPer
LDAP_USER_GID=20001
LDAP_USER_MIN_UID=10000
LDAP_USER_MAX_UID=18999
SESSION_LIFETIME_SECONDS=3600
ACL_LDAP_GROUP_USEREDIT="admins"
ACL_LDAP_GROUP_USEREDIT="admins"
ACL_ADMIN_GROUP="admin"
ACL_SELFSERVICE_GROUP="user"
......@@ -19,3 +20,15 @@ MAIL_USERNAME='yourId@gmail.com'
MAIL_PASSWORD='*****'
MAIL_USE_STARTTLS=True
MAIL_FROM_ADDRESS='foo@bar.com'
# do NOT set in production
#TEMPLATES_AUTO_RELOAD=True
#SQLALCHEMY_ECHO=True
#FLASK_ENV=development
# DO set in production
# SECRET_KEY=<long key>
# FLASK_ENV=production
# SQLALCHEMY_DATABASE_URI=<path>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment