-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevelopment.ini
113 lines (92 loc) · 2.21 KB
/
development.ini
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[app:main]
use = egg:plone.oauth
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pyramid.includes =
aiopyramid
pyramid_mailer
valid_password = plone.oauth.password.valid_password
password_policy = plone.oauth.password.password_policy
jwtsecret = secret
#backend = LDAP
backend = LDAPADMIN
redis.host = 127.0.0.1
redis.port = 6379
ldap.user_profile = ["person","inetOrgPerson"]
ldap.server = 127.0.0.1:10389
ldap.root_pw = secret
ldap.root_dn = uid=admin,ou=system
ldap.user_filter = mail={username},ou=users,dc=example,dc=com
ldap.base_dn = dc=example,dc=com
ldap.config_server = 127.0.0.1:10389
ldap.config_dn = ou=config,dc=example,dc=com
ldap.config_root_pw = secret
ldap.config_root_dn = uid=admin,ou=system
debug = True
cors = http://localhost:4200,https://example.com
manager = [email protected]
# Mailer config
mail.host = ---
mail.port = 587
mail.username = ---
mail.password = ---
mail.tls = true
mail.ssl = false
# for py3
logging.config = %(here)s/development.ini
[uwsgi]
http-socket = 0.0.0.0:6543
workers = 1
plugins =
asyncio = 50 ;number of workers
greenlet
[server:main]
use = egg:gunicorn#main
host = 0.0.0.0
port = 6543
workers = 3
worker_class = aiopyramid.gunicorn.worker.AsyncGunicornWorker
[loggers]
keys = root, plone.oauth, gunicorn.error, gunicorn.access
[handlers]
keys = console, error_file, access_file
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_asyncio]
level = WARN
handlers =
qualname = asyncio
[logger_gunicorn.access]
level = INFO
handlers = access_file
propagate = 1
qualname = gunicorn.access
[logger_gunicorn.error]
level = INFO
handlers = error_file
propagate = 1
qualname = gunicorn.error
[logger_plone.oauth]
level = DEBUG
handlers =
qualname = plone.oauth
[handler_console]
class = StreamHandler
args = (sys.stderr,)
formatter = generic
[handler_error_file]
class=logging.FileHandler
formatter=generic
args=('/tmp/gunicorn.error.log',)
[handler_access_file]
class=logging.FileHandler
formatter=generic
args=('/tmp/gunicorn.access.log',)
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s