Skip to content

Commit 8ecba16

Browse files
committed
allow overriding listen addr using env variable
Signed-off-by: Rajat Jindal <[email protected]>
1 parent bf4225a commit 8ecba16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/trigger-http/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub struct HttpTrigger {
7676
#[derive(Args)]
7777
pub struct CliArgs {
7878
/// IP address and port to listen on
79-
#[clap(long = "listen", default_value = "127.0.0.1:3000", value_parser = parse_listen_addr)]
79+
#[clap(long = "listen", env = "SPIN_HTTP_LISTEN_ADDR", default_value = "127.0.0.1:3000", value_parser = parse_listen_addr)]
8080
pub address: SocketAddr,
8181

8282
/// 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

0 commit comments

Comments
 (0)