-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.ini.tmpl
97 lines (76 loc) · 2.29 KB
/
config.ini.tmpl
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
[app:main]
use = egg:pypicloud
pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pypi.fallback = {{ getv "/pypi/fallback" }}
pypi.fallback_url = {{ getv "/pypi/fallback/url" }}
pypi.storage = {{ getv "/pypi/storage" }}
# File storage configs.
storage.dir = {{ getv "/pypi/storage/dir" }}
# S3 storage configs.
# Key and secret pulled from AWS_* variables.
storage.bucket = {{ getv "/pypi/storage/bucket" }}
storage.calling_format = OrdinaryCallingFormat
pypi.auth = {{ getv "/pypi/auth" }}
pypi.default_read = {{ getv "/pypi/default/read" }}
pypi.cache_update = {{ getv "/pypi/cache/update" }}
auth.admins =
admin
user.admin = {{ getv "/pypi/admin/password" }}
db.url = {{ getv "/pypi/db/url" }}
auth.db.url = {{ getv "/pypi/auth/db/url" }}
auth.ldap.url = {{ getv "/pypi/ldap/url" }}
auth.ldap.service_dn = {{ getv "/pypi/ldap/service/dn" }}
auth.ldap.service_password = {{ getv "/pypi/ldap/service/password" }}
auth.ldap.base_dn = {{ getv "/pypi/ldap/basedn" }}
auth.ldap.all_user_search = {{ getv "/pypi/ldap/usersearch" }}
auth.ldap.id_field = {{ getv "/pypi/ldap/idfield" }}
auth.ldap.admin_field = {{ getv "/pypi/ldap/admin/field" }}
auth.ldap.admin_dns = {{ getv "/pypi/ldap/admin/dns" }}
# For beaker
session.encrypt_key = {{ getv "/pypi/session/encrypt/key" }}
session.validate_key = {{ getv "/pypi/session/validate/key" }}
session.secure = {{ getv "/pypi/session/secure" }}
###
# wsgi server configuration
###
[uwsgi]
paste = config:%p
paste-logger = %p
master = true
processes = {{ getv "/pypi/processes" }}
reload-mercy = 15
worker-reload-mercy = 15
max-requests = 1000
{{if getv "/pypi/ssl/key"}}
https = {{ getv "/pypi/http" }},{{ getv "/pypi/ssl/crt" }},{{ getv "/pypi/ssl/key" }}
{{else}}
http = {{ getv "/pypi/http" }}
{{end}}
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
###
[loggers]
keys = root, boto
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_boto]
level = WARN
qualname = boto
handlers =
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(levelname)s %(asctime)s [%(name)s] %(message)s