-
Notifications
You must be signed in to change notification settings - Fork 61
/
.env-template
125 lines (95 loc) · 4.49 KB
/
.env-template
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
124
125
# Logging.
# Log level. Default is info, but if you want to debug this is a magic setup, to skip payment driver overwhelming logs.
# RUST_LOG=debug,tokio_core=info,tokio_reactor=info,hyper=info,reqwest=info
# Configuration of dealing with log file history.
# How many uncompressed logs to keep (do note that there's an additional yagna_rCURRENT.log).
LOG_FILES_UNCOMPRESSED=1
# How many compressed logs to keep.
LOG_FILES_COMPRESSED=10
# How often to rotate logs, either DAY or HOUR (case insensitive).
LOG_ROTATE_AGE=day
# How big of a log to rotate (even if younger than LOG_ROTATE_AGE). Size in bytes (the default below is 1GiB). Unset do disable.
LOG_ROTATE_SIZE=1073741824
# Application working directory path.
YAGNA_DATADIR="."
## Golem Service Bus (GSB)
# Host and port where the internal Service Bus (aka GSB) will be bound.
#GSB_URL=tcp://127.0.0.1:7464
# number of seconds between GSB heartbeats
#GSB_PING_TIMEOUT=60
## REST API
# Default HOST:PORT for all REST APIs.
#YAGNA_API_URL=http://127.0.0.1:7465
# Specific API URLs
# (default values are derived from YAGNA_API_URL)
#YAGNA_MARKET_URL=http://127.0.0.1:7465/market-api/v1/
#YAGNA_ACTIVITY_URL=http://127.0.0.1:7465/activity-api/v1/
#YAGNA_PAYMENT_URL=http://127.0.0.1:7465/payment-api/v1/
# Decentralized Market
# Grace time (in days) for cleaning up agreements in DB
#YAGNA_MARKET_AGREEMENT_STORE_DAYS=90
# Grace time (in days) for cleaning up events in DB
#YAGNA_MARKET_EVENT_STORE_DAYS=1
## Payments Service
#ACCOUNT_LIST="${YAGNA_DATADIR}/accounts.json"
#PAYMENT_SHUTDOWN_TIMEOUT_SECS=10
### All drivers
## Set list of Ethereum nodes used by payment driver for specified networks.
## By default payment driver will query nodes addresses from DNS record `{network_name}.rpc-node.dev.golem.network`.
## Setting any of these variables will disable DNS lookup mechanism and use custom list of nodes instead for chosen network.
#MAINNET_GETH_ADDR=https://geth.golem.network:55555
#GOERLI_GETH_ADDR=https://rpc.ankr.com/eth_goerli
#HOLESKY_GETH_ADDR=https://rpc.ankr.com/eth_holesky
#POLYGON_GETH_ADDR=https://bor.golem.network,https://polygon-rpc.com
#MUMBAI_GETH_ADDR=https://matic-mumbai.chainstacklabs.com
## T/GLM contract addresses
#HOLESKY_TGLM_CONTRACT_ADDRESS=0xd94e3DC39d4Cad1DAd634e7eb585A57A19dC7EFE
#MAINNET_GLM_CONTRACT_ADDRESS=0x7DD9c5Cba05E151C895FDe1CF355C9A1D5DA6429
## ERC20 driver.
#ERC20_SENDOUT_INTERVAL_SECS=10
#ERC20_HOLESKY_REQUIRED_CONFIRMATIONS=3
#ERC20_MAINNET_REQUIRED_CONFIRMATIONS=5
## Activity Service
# Threshold of inactivity period in seconds.
# If activity state nor usage was not reported for more than that, ActivityDestroy event is send.
# Minimum is 2s.
#INACTIVITY_LIMIT_SECONDS=10
# If activity state nor usage was not reported for more than that, Activity is marked as Unresponsive.
# Minimum is 2s.
#UNRESPONSIVE_LIMIT_SECONDS=5
# Grace period for killing exe-unit ie. delay between SIGTERM and SIGKILL is send.
# Minimum is 1s.
#PROCESS_KILL_TIMEOUT_SECONDS=5
## Metrics Service
# The URL where the Yagna Metrics will be pushed periodically
# Metrics can be also pulled via `curl "${YAGNA_API_URL}/metrics-api/v1/expose"`
#YAGNA_METRICS_URL = "http://metrics.golem.network:9091/"
## Agents
# Descriptor file (JSON) for available ExeUnits.
EXE_UNIT_PATH=../exe-unit/resources/local-debug-exeunits-descriptor.json
# Subnetwork identifier. You can set this value to filter nodes
# with other identifiers than selected. Useful for test purposes.
# Can be any arbitrary string, not only a number.
#SUBNET=testnet
# Your human readable identity in the network.
NODE_NAME=__YOUR_NODE_NAME_GOES_HERE__
# Yagna service REST API application key token.
YAGNA_APPKEY=__GENERATED_APP_KEY__
# Choose NET type to use. Central NET is used by default, but will be removed
# in future version to use more decentralized solutions.
#YA_NET_TYPE=hybrid
YA_NET_TYPE=central
## Central Net configuration.
#CENTRAL_NET_HOST=3.249.139.167:7464
## Hybrid NET configuration
# ya-net p2p client will listen on this address.
YA_NET_BIND_URL=udp://0.0.0.0:11500
# Address of relay server.
YA_NET_RELAY_HOST=127.0.0.1:7464
# Provider cleanup settings when running golemsp
# Uncomment these to not remove provider logs regarding activity and agreements
# This can cause logs to take up a lot of disk space with time.
# Useful when you are debugging issues with provider/exe-unit and need these logs.
#DISABLE_AUTO_CLEANUP=true
# AUTO_CLEANUP_ACTIVITY and AUTO_CLEANUP_AGREEMENT do not work when running from golemsp
# when running ya-provider directly, auto cleanup is not run by default