Skip to content

Commit

Permalink
Merge pull request #2547 from rajatjindal/listen-env-var
Browse files Browse the repository at this point in the history
allow overriding listen addr using env variable
  • Loading branch information
lann authored Jun 6, 2024
2 parents bf4225a + 8ecba16 commit 31c0398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/trigger-http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub struct HttpTrigger {
#[derive(Args)]
pub struct CliArgs {
/// IP address and port to listen on
#[clap(long = "listen", default_value = "127.0.0.1:3000", value_parser = parse_listen_addr)]
#[clap(long = "listen", env = "SPIN_HTTP_LISTEN_ADDR", default_value = "127.0.0.1:3000", value_parser = parse_listen_addr)]
pub address: SocketAddr,

/// The path to the certificate to use for https, if this is not set, normal http will be used. The cert should be in PEM format
Expand Down

0 comments on commit 31c0398

Please sign in to comment.