-
Notifications
You must be signed in to change notification settings - Fork 5
/
sshkm.conf.example
92 lines (86 loc) · 2.41 KB
/
sshkm.conf.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
# Django settings
# please read Django documentation for details: https://docs.djangoproject.com
# for security reason change this to your hostname/domainname
ALLOWED_HOSTS = ['*']
# set your timezone (example: Europe/Vienna)
TIME_ZONE = 'UTC'
##### RabbitMQ Settings
CELERY_BROKER_URL = 'amqp://'
CELERY_RESULT_BACKEND = 'rpc'
#####
##### Session Settings
#SESSION_EXPIRE_AT_BROWSER_CLOSE = True
#SESSION_COOKIE_AGE = 5 * 60
#####
##### Database Settings
# sqlite
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR + '/sshkm', 'db.sqlite3'),
}
}
#
# MySQL/MariaDB
#DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.mysql',
# 'NAME': 'sshkm',
# 'USER': 'sshkm',
# 'PASSWORD': 'sshkm',
# }
#}
#
# PostgreSQL
#DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
# 'NAME': 'sshkm',
# 'USER': 'sshkm',
# 'PASSWORD': 'sshkm',
# 'HOST': 'localhost',
# 'PORT': '',
# }
#}
#####
##### LDAP Settings (optional)
#import ldap
#from django_auth_ldap.config import LDAPSearch, GroupOfNamesType
#
## Baseline configuration.
#AUTH_LDAP_SERVER_URI = "ldap://FQDN"
#
#AUTH_LDAP_BIND_DN = "CN=sshkm,OU=Users,DC=example,DC=com"
#AUTH_LDAP_BIND_PASSWORD = "PASSWORD"
#AUTH_LDAP_USER_SEARCH = LDAPSearch("OU=Benutzer,DC=example,DC=com", ldap.SCOPE_SUBTREE, "(uid=%(user)s)")
## or perhaps:
## AUTH_LDAP_USER_DN_TEMPLATE = "uid=%(user)s,ou=users,dc=example,dc=com"
#
## Set up the basic group parameters.
#AUTH_LDAP_GROUP_SEARCH = LDAPSearch("OU=Groups,DC=example,DC=com", ldap.SCOPE_SUBTREE, "(objectClass=groupOfNames)")
#AUTH_LDAP_GROUP_TYPE = GroupOfNamesType()
#
## Populate the Django user from the LDAP directory.
#AUTH_LDAP_USER_ATTR_MAP = {
# "first_name": "givenName",
# "last_name": "sn",
# "email": "mail"
#}
#
#AUTH_LDAP_USER_FLAGS_BY_GROUP = {
# "is_staff": "CN=sshkm-staff,OU=Groups,DC=example,DC=com",
#}
#
## Use LDAP group membership to calculate group permissions.
#AUTH_LDAP_FIND_GROUP_PERMS = False
#
## Cache group memberships for an hour to minimize LDAP traffic
#AUTH_LDAP_CACHE_GROUPS = False
#AUTH_LDAP_GROUP_CACHE_TIMEOUT = 3600
#
## Keep ModelBackend around for per-user permissions and maybe a local superuser.
#AUTHENTICATION_BACKENDS = (
# 'django_auth_ldap.backend.LDAPBackend',
# 'django.contrib.auth.backends.ModelBackend',
#)
#####