Skip to content

Commit

Permalink
Merge pull request #40 from gelatodigital/gelato/fix-environment
Browse files Browse the repository at this point in the history
Fix environment variables
  • Loading branch information
teddyknox authored Jun 18, 2024
2 parents 322002e + aac016f commit 9246f4f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
20 changes: 13 additions & 7 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,28 @@ EIGENDA_PROXY_ADDR=127.0.0.1
EIGENDA_PROXY_PORT=3100

# Directory path to SRS tables
EIGENDA_PROXY_EIGENDA_CACHE_PATH=
EIGENDA_PROXY_TARGET_CACHE_PATH=

# Directory path to g1.point file
EIGENDA_PROXY_EIGENDA_KZG_G1_PATH=
EIGENDA_PROXY_TARGET_KZG_G1_PATH=

# Directory path to g2.point.powerOf2 file
EIGENDA_PROXY_EIGENDA_G2_TAU_PATH=
EIGENDA_PROXY_TARGET_G2_TAU_PATH=

# RPC endpoint of the EigenDA disperser
EIGENDA_PROXY_EIGENDA_RPC=
EIGENDA_PROXY_RPC=

# Wait time between retries of EigenDA blob status queries (default: 5s)
EIGENDA_PROXY_EIGENDA_STATUS_QUERY_INTERVAL=5s
EIGENDA_PROXY_STATUS_QUERY_INTERVAL=5s

# Maximum size in string representation (e.g. "10mb", "4 KiB") of blobs to be dispersed and verified using this proxy (default: 2MiB)
EIGENDA_PROXY_MAX_BLOB_LENGTH=2MiB

# Timeout for aborting an EigenDA blob dispersal (default: 25m0s)
EIGENDA_PROXY_EIGENDA_STATUS_QUERY_TIMEOUT=25m0s
EIGENDA_PROXY_STATUS_QUERY_TIMEOUT=25m0s

# Use TLS when connecting to the EigenDA disperser (default: true)
EIGENDA_PROXY_EIGENDA_GRPC_USE_TLS=true
EIGENDA_PROXY_GRPC_USE_TLS=true

# Color the log output if in terminal mode (default: false)
EIGENDA_PROXY_LOG_COLOR=false
Expand All @@ -43,3 +46,6 @@ EIGENDA_PROXY_METRICS_ENABLED=false

# Metrics listening port (default: 7300)
EIGENDA_PROXY_METRICS_PORT=7300

# Private key for signing EigenDA blobs
EIGENDA_PROXY_SIGNER_PRIVATE_KEY_HEX=
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ go.work
e2e/resources/kzg/SRSTables/

## Vscode
/.vscode
/.vscode

## Idea
.idea
2 changes: 1 addition & 1 deletion eigenda/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func CLIFlags(envPrefix string) []cli.Flag {
&cli.StringFlag{
Name: MaxBlobLengthFlagName,
Usage: "Maximum size in string representation (e.g. \"10mb\", \"4 KiB\") of blobs to be dispersed and verified using this proxy. This impacts the number of SRS points loaded into memory.",
EnvVars: prefixEnvVars("TARGET_KZG_G1_PATH"),
EnvVars: prefixEnvVars("MAX_BLOB_LENGTH"),
Value: "2MiB",
},
&cli.StringFlag{
Expand Down

0 comments on commit 9246f4f

Please sign in to comment.