mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-11-20 04:46:20 +00:00
3ff2fdf11b
* Refactor common code in uni-watcher and uni-info-watcher. * Implement client.ts in uni-info-watcher for queries and use in smoke-test. * Disable cache in graphql client. Co-authored-by: nabarun <nabarun@deepstacksoft.com>
46 lines
1.1 KiB
TOML
46 lines
1.1 KiB
TOML
[server]
|
|
host = "127.0.0.1"
|
|
port = 3004
|
|
|
|
[database]
|
|
type = "postgres"
|
|
host = "localhost"
|
|
port = 5432
|
|
database = "uni-info-watcher"
|
|
username = "postgres"
|
|
password = "postgres"
|
|
synchronize = true
|
|
logging = false
|
|
|
|
entities = [ "src/entity/**/*.ts" ]
|
|
migrations = [ "src/migration/**/*.ts" ]
|
|
subscribers = [ "src/subscriber/**/*.ts" ]
|
|
|
|
[database.cli]
|
|
entitiesDir = "src/entity"
|
|
migrationsDir = "src/migration"
|
|
subscribersDir = "src/subscriber"
|
|
|
|
[upstream]
|
|
[upstream.ethServer]
|
|
gqlApiEndpoint = "http://127.0.0.1:8082/graphql"
|
|
gqlPostgraphileEndpoint = "http://127.0.0.1:5000/graphql"
|
|
|
|
[upstream.cache]
|
|
name = "requests"
|
|
enabled = false
|
|
deleteOnStart = false
|
|
|
|
[upstream.uniWatcher]
|
|
gqlEndpoint = "http://127.0.0.1:3003/graphql"
|
|
gqlSubscriptionEndpoint = "http://127.0.0.1:3003/graphql"
|
|
|
|
[upstream.tokenWatcher]
|
|
gqlEndpoint = "http://127.0.0.1:3001/graphql"
|
|
gqlSubscriptionEndpoint = "http://127.0.0.1:3001/graphql"
|
|
|
|
[jobQueue]
|
|
dbConnectionString = "postgres://postgres:postgres@localhost/uni-info-watcher-job-queue"
|
|
maxCompletionLagInSecs = 300
|
|
jobDelayInMilliSecs = 1000
|