-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yml
65 lines (55 loc) · 2.25 KB
/
config.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
default:
daemon:
# user: "www"
# group: "www"
# silent: true
cwd: '/var/www'
logger:
error_log: 'logs/filelog-error.log'
info_log: 'logs/filelog-info.log'
connections:
default:
host: 'localhost'
port: 5672
user: 'guest'
password: 'guest'
vhost: '/'
consumers:
mail_sender:
connection: default
queue_options: {name: 'mail-queue', durable: true, autoDelete: false}
execute:
# Command to be executed
# Placeholders:
# - {content} - will be replaced with base64 encoded message body
# - {file} - will be replaced with file with stored {content}
command: 'php console.php app:consumer --compression gzdeflate {content}'
# command: 'cat {file} | php console.php amqp:mail-sender --compression gzdeflate'
# Directory within command will be executed
cwd: '/var/www/php-consumer'
# Enable compression for passed argument (default: no compression)
# allowed options are:
# - gzcompress - decode with gzuncompress in php
# - gzdeflate - decode with gzinflate in php
compression: gzdeflate # [ gzcompress, gzdeflate ]
# Pass also message properties in {content}
properties: true
# Optional log files dedicated for this consumer
error_log: 'logs/mail-sender-error.log'
info_log: 'logs/mail-sender-info.log'
endpoint:
connection: default
queue_options: {name: 'endpoint', durable: true, autoDelete: false}
# Pass message to endpoint
# Request will contain POST payload with 'body' and 'properties'
endpoint: 'http://localhost:8011'
# You may provide environment based config
# All environment configs are inherited from default
production:
connections:
default:
host: 'rabbitmq.example.com'
port: 5672
user: 'user'
password: 'pass'
vhost: '/'