-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbase.cfg
135 lines (120 loc) · 2.95 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
[buildout]
extensions = mr.developer
parts =
scripts
circus
circusd
circusctl
circus.ini
log_dir
redis_db_dir
redis.cfg
dfs_bot.yaml
eggs =
chaussette
pyramid
request_id_middleware
server_cookie_middleware
find-links =
http://op:[email protected]/op/
[remotes]
gh = https://github.com/
gh_push = [email protected]:
opgh = ${remotes:gh}openprocurement/openprocurement
opgh_push = ${remotes:gh_push}openprocurement/openprocurement
itivan = ${remotes:gh}ITVaan/openprocurement
[scripts]
recipe = zc.recipe.egg
eggs = ${buildout:eggs}
interpreter = python
scripts =
chaussette
nosetests
circusd
[sources]
openprocurement_client = git https://github.com/openprocurement/openprocurement.client.python.git
[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
[couchpy]
<=circus
eggs = CouchDB
scripts =
couchpy
couchdb-replicate
[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
service = True
service_port = 6555
service_host = 0.0.0.0
dfs_bot = True
redis = True
endpoint = ipc://${buildout:directory}/var/circus_endpoint
pubsub_endpoint = ipc://${buildout:directory}/var/circus_pubsub
timezone = Europe/Kiev
[log_dir]
recipe = z3c.recipe.mkdir
paths = ${buildout:directory}/var/log
[dfs_bot.yaml]
<= config-from-template
tenders_api_server = http://0.0.0.0:6543
tenders_api_version = 2.3
public_tenders_api_server = http://0.0.0.0:6543
api_token = bot
buffers_size = 500
full_stack_sync_delay = 15
empty_stack_sync_delay = 101
on_error_sleep_delay = 5
delay = 15
increment_step = 1
decrement_step = 1
doc_service_server = http://0.0.0.0
doc_service_port = 6555
doc_service_user = broker
doc_service_password = broker
cache_db_name = 0
cache_host = localhost
cache_port = 6379
time_to_live = 1000
time_to_live_negative = 200
[redis_db_dir]
recipe = z3c.recipe.mkdir
paths = ${buildout:directory}/var/redis
[redis.cfg]
<= config-from-template
port = ${dfs_bot.yaml:cache_port}
dir = ${buildout:directory}/var/redis
logfile = ${buildout:directory}/var/log/redis.log
[logrotate.conf]
<= config-from-template
logs_bucket =
logs_dir =
aws_access_key = ${openprocurement.api.ini:aws_access_key}
aws_secret_key = ${openprocurement.api.ini: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