-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.cfg
116 lines (101 loc) · 2.69 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
[buildout]
extensions = mr.developer
package-name =
openprocurement.documentservice
openprocurement.storage.s3
auto-checkout = ${:package-name}
parts =
scripts
circus
circusd
circusctl
circus.ini
service.ini
eggs =
chaussette
request_id_middleware
server_cookie_middleware
${:package-name}
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
[sources]
openprocurement.documentservice = git ${remotes:opgh}.documentservice.git pushurl=${remotes:opgh_push}.documentservice.git
openprocurement.storage.s3 = git ${remotes:opgh}.storage.s3.git pushurl=${remotes:opgh_push}.storage.s3.git
[config-from-template]
recipe = collective.recipe.template[genshi]:genshi
input = ${buildout:directory}/templates/${:_buildout_section_name_}
output = ${buildout:directory}/etc/${:_buildout_section_name_}
[scripts]
recipe = zc.recipe.egg
eggs = ${buildout:eggs}
interpreter = python
scripts = chaussette
[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
service = True
statsd = True
service_port = 6543
service_host = 0.0.0.0
endpoint = ipc://${buildout:directory}/var/circus_endpoint
pubsub_endpoint = ipc://${buildout:directory}/var/circus_pubsub
timezone = Europe/Kiev
[service.ini]
<= config-from-template
debug = false
auth_file = ${buildout:directory}/auth.ini
exc_logger = 1
storage = s3
s3.bucket =
s3.access_key =
s3.secret_key =
[awscli]
recipe = zc.recipe.egg
scripts = aws
[logrotate.conf]
<= config-from-template
logs_bucket =
logs_dir =
aws_access_key = ${service.ini:s3.access_key}
aws_secret_key = ${service.ini:s3.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
[autostart]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:directory}/bin/circusd --daemon --pidfile ${buildout:directory}/circus.pid
[docs]
recipe = collective.recipe.sphinxbuilder
eggs =
${buildout:package-name}
sphinxcontrib-httpdomain
sphinx_rtd_theme
source =
${buildout:directory}/src/openprocurement.documentservice/docs/source