-
Notifications
You must be signed in to change notification settings - Fork 2
/
application.conf
123 lines (99 loc) · 3.17 KB
/
application.conf
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
117
118
119
120
121
122
123
# https://www.playframework.com/documentation/latest/Configuration
play.i18n.langs = ["en"]
play.filters.hosts {
allowed = ["localhost", "localhost:9000", "127.0.0.1:9000"]
allowed += ${?APP_HOST}
}
play.http {
secret.key="changeme"
secret.key=${?PLAY_APPLICATION_SECRET}
}
play.filters.enabled += play.filters.cors.CORSFilter
play.filters.disabled += "play.filters.csrf.CSRFFilter"
play.modules.enabled += "io.stakenet.eth.explorer.modules.ETHServiceModule"
play.modules.enabled += "io.stakenet.eth.explorer.modules.ExecutorsModule"
play.modules.enabled += "io.stakenet.eth.explorer.modules.PollerSynchronizerModule"
play.modules.enabled += "io.stakenet.eth.explorer.modules.ConfigurationModule"
play.modules.enabled += "io.stakenet.eth.explorer.modules.RepositoriesModule"
play.modules.enabled += "io.stakenet.eth.explorer.modules.ETHClientModule"
play.modules.enabled += "io.stakenet.eth.explorer.modules.CurrencyServiceModule"
play.modules.enabled += "io.stakenet.eth.explorer.modules.RetryableFutureModule"
play.modules.enabled += "io.stakenet.eth.explorer.modules.CurrencySynchronizerModule"
play.modules.enabled += "io.stakenet.eth.explorer.modules.ActorsModule"
# play.modules.enabled += "io.stakenet.eth.explorer.modules.TransactionStatusSynchronizerModule"
db.default {
driver = "org.postgresql.Driver"
host = "localhost:5432"
database = "eth_blockchain"
username = "postgres"
password = "postgres"
host = ${?ETH_PSQL_HOST}
database = ${?ETH_PSQL_DATABASE}
username = ${?ETH_PSQL_USERNAME}
password = ${?ETH_PSQL_PASSWORD}
url = "jdbc:postgresql://"${db.default.host}"/"${db.default.database}
}
play.evolutions {
autoApply = true
db.default {
enabled = true
autocommit = true
}
}
# Number of database connections
# See https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
fixedConnectionPool = 9
play.db {
prototype {
hikaricp.minimumIdle = ${fixedConnectionPool}
hikaricp.maximumPoolSize = ${fixedConnectionPool}
}
}
# Job queue sized to HikariCP connection pool
database.dispatcher {
executor = "thread-pool-executor"
throughput = 1
thread-pool-executor {
fixed-pool-size = ${fixedConnectionPool}
}
}
blocking.dispatcher {
executor = "thread-pool-executor"
throughput = 1
thread-pool-executor {
// very high bound to process lots of blocking operations concurrently
fixed-pool-size = 5000
}
}
externalService.dispatcher {
executor = "thread-pool-executor"
throughput = 1
thread-pool-executor {
fixed-pool-size = 50
}
}
eth {
url = "https://mainnet.infura.io/v3/f110376574c54d6fb6caeb30f82a8e73"
url = ${?ETH_NODE_URL}
}
synchronizer {
syncTransactionsFromBlock = 0
syncTransactionsFromBlock = ${?ETH_SYNC_TRANSACTIONS_FROM_BLOCK}
}
coinMarketCap {
host = "https://pro-api.coinmarketcap.com"
key = "REPLACE_ME"
ethCoinId = "1027"
wethCoinId = "2396"
usdtCoinId = "825"
host = ${?ETH_COIN_MARKET_CAP_HOST}
key = ${?ETH_COIN_MARKET_CAP_KEY}
ethCoinId = ${?ETH_COIN_MARKET_CAP_COIN_ID}
usdtCoinId = ${?USDT_COIN_MARKET_CAP_COIN_ID}
}
currencySynchronizer {
enabled = false
initialDelay = "10 seconds"
highPriorityInterval = "45 minutes"
lowPriorityInterval = "24 hours"
}