-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.py.example
95 lines (78 loc) · 2.38 KB
/
config.py.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# SQL-Alchemy Settings
SQLALCHEMY_DATABASE_URI = "sqlite:////tmp/dudel.db" # DO NOT USE RELATIVE PATHS IF USING MIGRATION!!!
SQLALCHEMY_ECHO = False
# Home button in menu bar
BRAND_TEXT = "Dudel"
HOME_URL = "https://example.com/"
HOME_TEXT = "Home"
FOOTER_LINKS = [
('Imprint', '/imprint')
]
# Debug mode, set to False in productive environment
DEBUG = True
# Secret key, required for cookies etc.
SECRET_KEY = "change me!!!"
# Select which authentication method to use.
LOGIN_PROVIDERS = ["password", "ldap"]
# Used only if "password" in LOGIN_PROVIDERS
REGISTRATIONS_ENABLED = True
# Enable group features (create/edit)
GROUPS_ENABLED = True
# Used only if "ldap" in LOGIN_PROVIDERS
LDAP = dict(
HOST = 'ldap://localhost',
BASE_DN = 'dc=example,dc=com',
GLOBAL = dict(
BIND_DN = 'cn=dudel,dc=example,dc=com',
PASSWORD = '123456'
),
GROUP = dict(
ATTRIBUTES = dict(
IDENTIFIER = 'id',
NAME = 'cn',
MEMBERS = 'members'
),
DN = 'ou=groups,dc=example,dc=com',
FILTER = '(objectClass=posixGroup)'
),
USER = dict(
BIND_DN = 'uid={username},ou=people,dc=example,dc=com',
DN = 'uid={username},ou=people,dc=example,dc=com'
),
REGISTER_URL = "https://example.com/register"
)
# Sentry settings
# The Sentry DSN, if it is not set or False Sentry is disabled
# SENTRY_DSN = "https://user:password@sentry.host.tld/X"
MAIL_SERVER = None
MAIL_PORT = None
MAIL_USE_TLS = False
MAIL_USE_SSL = False
MAIL_DEBUG = True
MAIL_USERNAME = None
MAIL_PASSWORD = None
MAIL_DEFAULT_SENDER = "Dudel <dudel@%s>" % MAIL_SERVER
TESTING = True
# How user's display name is created
# May contain fields: firstname, lastname, username, email
NAME_FORMAT = "%(firstname)s (%(username)s)"
# Allow customization of slugs
ALLOW_CUSTOM_SLUGS = True
# Generate random slugs by default
RANDOM_SLUGS = False
# Usernames of administrators
# e.g. ["13musterm", "14musterf"]
ADMINS = []
# Timezone
DEFAULT_TIMEZONE = "Europe/Berlin"
# Locale
BABEL_DEFAULT_LOCALE = "en"
BABEL_DEFAULT_TIMEZONE = DEFAULT_TIMEZONE
# recaptcha
RECAPTCHA_USE_SSL = True
RECAPTCHA_PUBLIC_KEY = "..."
RECAPTCHA_PRIVATE_KEY = "..."
RECAPTCHA_OPTIONS = {"theme_name": "white"}
# CSRF protection: Should the CSRF token be consumed when checked? This prevents
# sensible actions that are protected against CSRF in multiple tabs.
CSRF_CONSUME = False