Skip to content

Commit

Permalink
Merge pull request #30928 from MaterializeInc/push-pqumsmkuyssq
Browse files Browse the repository at this point in the history
allow specifying listen args more than once
  • Loading branch information
alex-hunt-materialize authored Jan 2, 2025
2 parents 76df095 + daa62c8 commit ace7379
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/environmentd/src/environmentd/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ pub struct Args {
long,
env = "SQL_LISTEN_ADDR",
value_name = "HOST:PORT",
default_value = "127.0.0.1:6875"
default_value = "127.0.0.1:6875",
action = ArgAction::Set,
)]
sql_listen_addr: SocketAddr,
/// The address on which to listen for untrusted HTTP connections.
Expand All @@ -122,7 +123,8 @@ pub struct Args {
long,
env = "HTTP_LISTEN_ADDR",
value_name = "HOST:PORT",
default_value = "127.0.0.1:6876"
default_value = "127.0.0.1:6876",
action = ArgAction::Set,
)]
http_listen_addr: SocketAddr,
/// The address on which to listen for trusted SQL connections.
Expand All @@ -135,7 +137,8 @@ pub struct Args {
long,
value_name = "HOST:PORT",
env = "INTERNAL_SQL_LISTEN_ADDR",
default_value = "127.0.0.1:6877"
default_value = "127.0.0.1:6877",
action = ArgAction::Set,
)]
internal_sql_listen_addr: SocketAddr,
/// The address on which to listen for trusted HTTP connections.
Expand All @@ -147,7 +150,8 @@ pub struct Args {
long,
value_name = "HOST:PORT",
env = "INTERNAL_HTTP_LISTEN_ADDR",
default_value = "127.0.0.1:6878"
default_value = "127.0.0.1:6878",
action = ArgAction::Set,
)]
internal_http_listen_addr: SocketAddr,
/// The address on which to listen for Persist PubSub connections.
Expand All @@ -159,7 +163,8 @@ pub struct Args {
long,
value_name = "HOST:PORT",
env = "INTERNAL_PERSIST_PUBSUB_LISTEN_ADDR",
default_value = "127.0.0.1:6879"
default_value = "127.0.0.1:6879",
action = ArgAction::Set,
)]
internal_persist_pubsub_listen_addr: SocketAddr,
/// Enable cross-origin resource sharing (CORS) for HTTP requests from the
Expand Down

0 comments on commit ace7379

Please sign in to comment.