Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.toml template gRPCWeb port conflict fix #1230

Merged
merged 2 commits into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
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
26 changes: 25 additions & 1 deletion contrib/testnets/test_platform/templates/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# The minimum gas prices a validator is willing to accept for processing a
# transaction. A transaction's fees must meet the minimum of any denomination
# specified in this config (e.g. 0.25token1;0.0001token2).
minimum-gas-prices = ""
minimum-gas-prices = "0.25stake"

# default: the last 100 states are kept in addition to every 500th state; pruning at 10 block intervals
# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node)
Expand Down Expand Up @@ -137,6 +137,23 @@ enable = true
# Address defines the gRPC server address to bind to.
address = "<GRPC_APP_ADDR>:<GRPC_APP_ADDR_PORT>"

###############################################################################
### gRPC Web Configuration ###
###############################################################################

[grpc-web]

# GRPCWebEnable defines if the gRPC-web should be enabled.
# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op.
enable = true

# Address defines the gRPC-web server address to bind to.
#address = "0.0.0.0:9091"
address = "<GRPC_WEB_APP_ADDR>:<GRPC_WEB_APP_ADDR_PORT>"

# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk).
enable-unsafe-cors = false

###############################################################################
### State Sync Configuration ###
###############################################################################
Expand All @@ -151,3 +168,10 @@ snapshot-interval = 0

# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all).
snapshot-keep-recent = 2

[wasm]
# This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
query_gas_limit = 300000
# This is the number of wasm vm instances we keep cached in memory for speed-up
# Warning: this is currently unstable and may lead to crashes, best to keep for 0 unless testing locally
lru_size = 0
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ GRPC_LADDR=tcp://0.0.0.0
GRPC_LADDR_PORT=26659
GRPC_APP_ADDR=0.0.0.0
GRPC_APP_ADDR_PORT=9090
GRPC_WEB_APP_ADDR=0.0.0.0
GRPC_WEB_APP_ADDR_PORT=9091
PROMETHEUS_LISTEN_ADDR=
PROMETHEUS_LISTEN_ADDR_PORT=26660
MONIKER=node0
Expand Down