This repository has been archived by the owner on Mar 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
base.cfg
193 lines (170 loc) · 3.75 KB
/
base.cfg
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
[buildout]
newest = true
package-name = openprocurement.medicines.registry
parts =
scripts
test
circus
circusd
circusctl
log_dir
circus.ini
openprocurement.medicines.registry.ini
redis_db_dir
redis.cfg
tests_requirments
s3cmd
logrotate.conf
logrotate-hourly
autostart
eggs =
gevent
mock
chaussette
pyramid
pyramid_exclog
restkit
retrying
request_id_middleware
requests
webtest
pytz
redis
redis-py-cluster
bottle
develop = .
extensions = mr.developer
show-picked-versions = true
find-links = https://repo.prozorro.gov.ua/repos/dist.quintagroup.com/prozorro/
[scripts]
recipe = zc.recipe.egg
eggs = ${buildout:eggs}
interpreter = python_interpreter
scripts =
chaussette
nosetests
circusd
[test]
recipe = zc.recipe.egg:scripts
dependent-scripts = true
eggs =
openprocurement.medicines.registry [test]
nose
pyramid
pytz
[log_dir]
recipe = z3c.recipe.mkdir
paths = ${buildout:directory}/var/log
[config-from-template]
recipe = collective.recipe.template[genshi]:genshi
input = ${buildout:directory}/templates/${:_buildout_section_name_}
output = ${buildout:directory}/etc/${:_buildout_section_name_}
[circus]
recipe = zc.recipe.egg
eggs =
circus
circus-web
interpreter =
scripts =
circusd-stats
circus-top
circus-plugin
circushttpd
[circusd]
<= circus
initialization =
sys.argv[1:1] = ('${buildout:directory}/etc/circus.ini').split()
scripts = circusd
[circusctl]
<= circus
initialization =
sys.argv[1:1] = ('--endpoint ${circus.ini:endpoint}').split()
scripts = circusctl
[circus.ini]
<= config-from-template
statsd = True
webapp = True
medicines_registry = True
endpoint = ipc://${buildout:directory}/var/circus_endpoint
pubsub_endpoint = ipc://${buildout:directory}/var/circus_pubsub
timezone = Europe/Kiev
web_host = 0.0.0.0
web_port = 8008
redis = True
[redis_db_dir]
recipe = z3c.recipe.mkdir
paths = ${buildout:directory}/var/redis
[redis.cfg]
<= config-from-template
port = ${openprocurement.medicines.registry.ini:cache_port}
dir = ${buildout:directory}/var/redis
logfile = ${buildout:directory}/var/log/redis.log
[openprocurement.medicines.registry.ini]
<= config-from-template
debug = false
auth_file = ${buildout:directory}/auth.ini
web_host = 0.0.0.0
web_port = 8008
redis = true
cache_db_name = 0
cache_host = 127.0.0.1
cache_port = 6379
proxy_host = 127.0.0.1
proxy_user =
proxy_password =
proxy_port = 8008
proxy_version = 1.0
# Time format hh:mm:ss
time_update_at = 5:30:00
# Seconds
delay = 60
registry_delay = 60
json_files_delay = 10
file_cleaner_delay = 10
cache_monitoring_delay = 10
cache_backend = redis-cluster
# Redis cluster
node1_host = 127.0.0.1
node1_port = 6379
node2_host = 127.0.0.1
node2_port = 6379
node3_host = 127.0.0.1
node3_port = 6370
node4_host = 127.0.0.1
node4_port = 7003
node5_host = 127.0.0.1
node5_port = 7004
node6_host = 127.0.0.1
node6_port = 7005
source_registry = http://www.drlz.com.ua/reestr.xml
source = ${buildout:directory}/src/openprocurement.medicines.registry/docs/source
[tests_requirments]
recipe = zc.recipe.egg:script
dependent-scripts = true
eggs =
pylint
pep8
nose
sphinx
coverage
${buildout:eggs}
[logrotate.conf]
<= config-from-template
uploader =
host =
region =
logs_bucket =
logs_dir =
aws_access_key =
aws_secret_key =
[logrotate-hourly]
recipe = z3c.recipe.usercrontab
times = @hourly
command = /usr/sbin/logrotate --state ${buildout:directory}/var/logrotate.status ${logrotate.conf:output} >>${buildout:directory}/var/log/logrotate.log 2>&1
[s3cmd]
recipe = zc.recipe.egg
scripts = s3cmd
[autostart]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:directory}/bin/circusd --daemon --pidfile ${buildout:directory}/circus.pid