-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcontainer.yml
106 lines (104 loc) · 4.39 KB
/
container.yml
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
# The contents of this file can be overriden by container_overrides.yml. See
# container_overrides_example.yml.
parameters:
log.recipients: ['[email protected]', '[email protected]', '[email protected]', '[email protected]']
log.sender: '[email protected]'
log.file: '/var/log/tam.log'
solr.phantom:
endpoint:
localhost:
host: 192.168.50.5
port: 8080
path: /solr/phantomcore
timeout: 30
database.host_name: 192.168.50.05
database.database_name: inspector
database.user_name: inspector
database.password: z31lb00t
phantomjs.executable: /usr/bin/phantomjs
phantomjs.timeout: 60
google_pagespeed.api_url: https://www.googleapis.com/pagespeedonline/v1/runPagespeed
google_pagespeed.api_key: $$$EXAMPLE$$$
google_pagespeed.api_strategy: mobile
google_pagespeed.api_fetch_limit: 10
queue.host: localhost
queue.port: 5672
queue.user: guest
queue.password: guest
testing.flooding_threshold: 3
worker.ttl: 300
tmp_directory: /tmp/accessibilitymonitor
testing.retest_threshold: 21600
testing.max_failed_test_runs: 2
logger.mail.subject: 'Log messages for Gewoon Toegankelijk'
statsd.hostname: graphite.triquanta.nl
statsd.port: 8125
statsd.connection: UdpSocket
statsd.namespace: 'gt.inspector-<no>-<env>.statsd.workers'
services:
worker:
class: \Triquanta\AccessibilityMonitor\Worker
arguments: ['@logger', '@statsd', '@testing.tester', '@testing.result_storage', '@queue', '%worker.ttl%']
queue:
class: \PhpAmqpLib\Connection\AMQPStreamConnection
arguments: ['%queue.host%', '%queue.port%', '%queue.user%', '%queue.password%']
database:
class: \Triquanta\AccessibilityMonitor\Database
arguments: ['%database.host_name%', '%database.database_name%', '%database.user_name%', '%database.password%']
testing.result_storage:
class: \Triquanta\AccessibilityMonitor\Storage
arguments: ['@database', '@solr.client.phantom', '@queue', '@logger', '%testing.flooding_threshold%']
solr.client.phantom:
class: \Triquanta\AccessibilityMonitor\SolariumClient
arguments: ['%solr.phantom%']
calls:
- [setEventDispatcher, ['@event_dispatcher']]
phantomjs:
class: \Triquanta\AccessibilityMonitor\PhantomJs
arguments: ['@logger', '%phantomjs.executable%', '%phantomjs.timeout%', '%root_directory%', '%tmp_directory%']
testing.retester:
class: \Triquanta\AccessibilityMonitor\Testing\ReTester
arguments: ['@logger', '@testing.result_storage', '@queue', '%testing.retest_threshold%']
testing.tester:
class: \Triquanta\AccessibilityMonitor\Testing\StorageBasedTester
arguments: ['@logger', '@statsd', '@testing.tester.grouped', '@testing.result_storage', '%testing.max_failed_test_runs%']
testing.tester.grouped:
class: \Triquanta\AccessibilityMonitor\Testing\GroupedTester
arguments: ['@logger']
calls:
- [addTester, ['@testing.tester.wappalyzer']]
- [addTester, ['@testing.tester.google_pagespeed']]
- [addTester, ['@testing.tester.quail']]
testing.tester.wappalyzer:
class: \Triquanta\AccessibilityMonitor\Testing\WappalyzerTester
arguments: ['@statsd', '@phantomjs']
testing.tester.quail:
class: \Triquanta\AccessibilityMonitor\Testing\QuailTester
arguments: ['@phantomjs', '@logger', '@statsd']
testing.tester.google_pagespeed:
class: \Triquanta\AccessibilityMonitor\Testing\GooglePageSpeedTester
arguments: ['@logger', '@statsd', '@http_client', '%google_pagespeed.api_key%', '%google_pagespeed.api_url%', '%google_pagespeed.api_strategy%']
statsd:
class: \Triquanta\AccessibilityMonitor\StatsD
arguments: ['%statsd.hostname%', '%statsd.port%', '%statsd.connection%', '%statsd.namespace%']
logger:
class: \Monolog\Logger
arguments: ['global']
calls:
- [pushHandler, ['@monolog.handler.console']]
- [pushHandler, ['@monolog.handler.mail']]
- [pushHandler, ['@monolog.handler.file']]
monolog.handler.console:
class: \Symfony\Bridge\Monolog\Handler\ConsoleHandler
monolog.handler.mail:
class: \Monolog\Handler\NativeMailerHandler
arguments: ['%log.recipients%', '%logger.mail.subject%', '%log.sender%', 500]
monolog.handler.file:
class: \Monolog\Handler\StreamHandler
arguments: ['%log.file%', 100]
event_dispatcher:
class: \Symfony\Component\EventDispatcher\EventDispatcher
calls:
- [addSubscriber, ['@monolog.handler.console']]
http_client:
class: GuzzleHttp\Client