-
Notifications
You must be signed in to change notification settings - Fork 0
/
sentimentd.yml.example
27 lines (25 loc) · 1.02 KB
/
sentimentd.yml.example
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
log:
# Available values: panic, fatal, error, warn, warning, info, debug, trace
# If omitted or empty then 'warn' level will be used
level: "info"
# Available values: json, text
format: "json"
database:
url: postgres://sentimentd:sentimentd@localhost:5432/sentimentd?sslmode=disable
# Database trying to connect timeout. Actually tries to connect to database (using)
timeout: "10s"
# Default: true. When set to true then each command will try to apply migrations first.
automigrate: true
# Path to DB migrations, default value is "file://schema/postgres"
migrationsPath: "file://schema/postgres"
# The configuration presented bellow runs sentimentd as a daemon which subscribed to messages
# from NATS Streaming server, analyses them though brain "skynet" and pushes the results to the NATS Streaming back.
listen:
url: "nats://127.0.0.1:4222"
clusterId: "test-cluster"
clientId: "sentimentd-listener"
source: "TweetSaved"
target: "TweetAnalysed"
brains:
- "Skynet"
- "Red Queen"