Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 15 additions & 60 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,66 +1,21 @@
# WALLET [Optional] for Engine Version below `v0.0.3`
# If you want, you can configure AWS KMS
AWS_KMS_KEY_ID=<your_aws_kms_key_id>
AWS_ACCESS_KEY_ID=<your_aws_access_key_id>
AWS_SECRET_ACCESS_KEY=<your_aws_secret_access_key>
AWS_REGION=<your_aws_region>
# =====[ Required Configuration ]=====

# Or GOOGLE KMS for Engine Version below `v0.0.3`
# Required for Google Auth
GOOGLE_APPLICATION_CREDENTIAL_EMAIL=<client_email_from_download_service_account_json>
GOOGLE_APPLICATION_CREDENTIAL_PRIVATE_KEY=<private_key_from_download_service_account_json>
# Required for Google KMS
GOOGLE_APPLICATION_PROJECT_ID=<google_project_id>
GOOGLE_KMS_KEY_RING_ID=<key_ring_id>
GOOGLE_KMS_LOCATION_ID=<location_of_key_ring>
GOOGLE_KMS_CRYPTO_KEY_ID=<kms_key_id> # If created on Google Console


# THIRDWEB SDK SECRET KEY [Required]
# -----------------------
# Obtain an Secret Key from thirdweb.com/dashboard
# this enables you to use the default RPCs and extra features
THIRDWEB_API_SECRET_KEY=<your_thirdweb_api_secret_key>

# DATABASE OPTIONS [Required]
# ----------------
# Get your api secret key from the thirdweb dashboard - https://thirdweb.com/dashboard
THIRDWEB_API_SECRET_KEY="<your-thirdweb-api-secret-key>"
# The connection url for your running postgres instance, defaults to localhost postgres
POSTGRES_CONNECTION_URL="postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable"
# The admin wallet that will be able to connect to engine from the dashboard
ADMIN_WALLET_ADDRESS="<your-admin-wallet-address>"

# SERVING OPTIONS [Optional]
# ---------------
# Defaults PORT to 3005
# Defaults HOST to 0.0.0.0
# ---------------
PORT=3005
HOST="0.0.0.0"
# =====[ Optional Configuration ]=====

# CONFIGURATION OPTIONS [Optional]
# ----------------------
# Override default RPCs for any chain.
# Can be a URL or file path to a json config file or JSON object
# See example config file: chain-overrides.example.json
CHAIN_OVERRIDES=<path_or_url_to_file>
# Optional configuration to override server host and port
# PORT="3005"
# HOST="0.0.0.0"

# CORS OPTIONS [Optional]
# ------------
# Configures the Access-Control-Allow-Origin CORS header. Defaults to * (Allow All)
# The value of origin could be of different types:
# String - set origin to a specific origin. For example if you set it to "http://example.com" only
# requests from "http://example.com" will be allowed. The special * value (default) allows any origin.
# RegExp - set origin to a regular expression pattern that will be used to test the request origin.
# If it is a match, the request origin will be reflected. For example, the pattern *.example.com
# will reflect any request that is coming from an origin ending with "example.com".
# Array - set origin to an array of valid origins. Each origin can be a String or a RegExp.
# Needs to be comma separated. For example "http://example1.com,/\.example2\.com$/" will accept any request
# from "http://example1.com" or from a subdomain of "example2.com".
ACCESS_CONTROL_ALLOW_ORIGIN=*
# Optional configuration to enable cors, defaults to allow all
# ACCESS_CONTROL_ALLOW_ORIGIN="*"

# benchmark vars [Optional]
BENCHMARK_HOST='http://localhost:3005'
BENCHMARK_URL_PATH='/contract/mumbai/0xc8be6265C06aC376876b4F62670adB3c4d72EABA/write'
BENCHMARK_POST_BODY='{
"function_name": "transfer",
"args": ["0x1946267d81Fb8aDeeEa28e6B98bcD446c8248473", 100000]
}'
BENCHMARK_CONCURRENCY=10
BENCHMARK_REQUESTS=10
# Optional configuration to enable https usage for localhost
# ENABLE_HTTPS="false"
# HTTPS_PASSPHRASE="..."