summaryrefslogtreecommitdiffstats
path: root/accounts/default_settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/default_settings.py')
-rw-r--r--accounts/default_settings.py40
1 files changed, 24 insertions, 16 deletions
diff --git a/accounts/default_settings.py b/accounts/default_settings.py
index cf36c6c..98987fa 100644
--- a/accounts/default_settings.py
+++ b/accounts/default_settings.py
@@ -2,33 +2,41 @@ from datetime import timedelta
DEBUG = False
-SECRET_KEY = 'remember to change this to something more random and secret'
+SECRET_KEY = "remember to change this to something more random and secret"
# CHANGE THIS! (e.g. os.urandom(32) )
-SESSION_ENCRYPTION_KEY = b'.\x14\xa7\x1b\xa2:\x1b\xb7\xbck\x1bD w\xab\x87a\xb4\xb7\xca\xf1\x06\xb0\x9f?q\x13\x05\x8dY\xe5<'
+SESSION_ENCRYPTION_KEY = b".\x14\xa7\x1b\xa2:\x1b\xb7\xbck\x1bD w\xab\x87a\xb4\xb7\xca\xf1\x06\xb0\x9f?q\x13\x05\x8dY\xe5<"
-MAIL_DEFAULT_SENDER = 'spline accounts <noreply@accounts.spline.de>'
+MAIL_DEFAULT_SENDER = "spline accounts <noreply@accounts.spline.de>"
MAIL_REGISTER_NOTIFY = None
-DISABLED_ACCOUNT_MAILADDRESS_TEMPLATE = 'noreply-disabledaccount-%s@accounts.spline.de'
+DISABLED_ACCOUNT_MAILADDRESS_TEMPLATE = (
+ "noreply-disabledaccount-%s@accounts.spline.de"
+)
-SENDMAIL_COMMAND = '/usr/sbin/sendmail'
+SENDMAIL_COMMAND = "/usr/sbin/sendmail"
# to make the cookie a session cookie, set this to None
-PERMANENT_SESSION_LIFETIME = timedelta(seconds=600) # 10 minutes
-
-LDAP_HOST = 'ldap://localhost:5678'
-LDAP_BASE_DN = [('dc', 'accounts'), ('dc', 'spline'), ('dc', 'inf'), ('dc', 'fu-berlin'), ('dc', 'de')]
-LDAP_ADMIN_USER = 'admin'
-LDAP_ADMIN_PASS = 'admin'
+PERMANENT_SESSION_LIFETIME = timedelta(seconds=600) # 10 minutes
+
+LDAP_HOST = "ldap://localhost:5678"
+LDAP_BASE_DN = [
+ ("dc", "accounts"),
+ ("dc", "spline"),
+ ("dc", "inf"),
+ ("dc", "fu-berlin"),
+ ("dc", "de"),
+]
+LDAP_ADMIN_USER = "admin"
+LDAP_ADMIN_PASS = "admin"
-PREFERRED_URL_SCHEME = 'https'
+PREFERRED_URL_SCHEME = "https"
-USER_BACKEND = 'accounts.backend.user.dummy'
-MAIL_BACKEND = 'accounts.backend.mail.dummy'
+USER_BACKEND = "accounts.backend.user.dummy"
+MAIL_BACKEND = "accounts.backend.mail.dummy"
ADMIN_USERS = ["admin"]
SERVICES = [
- ('Service1', 'https://service1.spline.de'),
- ('Service2', 'https://service2.spline.de'),
+ ("Service1", "https://service1.spline.de"),
+ ("Service2", "https://service2.spline.de"),
]