Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luca (strifel)
uffd
Commits
d5041030
Verified
Commit
d5041030
authored
4 years ago
by
nd
Browse files
Options
Downloads
Patches
Plain Diff
updated config handling
parent
ec4849bf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
uffd/__init__.py
+0
-2
0 additions, 2 deletions
uffd/__init__.py
uffd/default_config.cfg
+14
-1
14 additions, 1 deletion
uffd/default_config.cfg
with
14 additions
and
3 deletions
uffd/__init__.py
+
0
−
2
View file @
d5041030
...
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
uffd/default_config.cfg
+
14
−
1
View file @
d5041030
...
...
@@ -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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment