summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Procfile2
-rw-r--r--src/bin/cli.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/Procfile b/Procfile
index 8062bf67..39bbbeaf 100644
--- a/Procfile
+++ b/Procfile
@@ -1,2 +1,2 @@
-authzd: ./bin/authzd
+authzd: ./bin/authzd server
envoy: ./bin/envoy -c ./etc/envoy/envoy.yaml --base-id 1 --log-level warn --component-log-level admin:warn,connection:warn,grpc:warn,http:warn,http2:warn,router:warn,upstream:warn
diff --git a/src/bin/cli.rs b/src/bin/cli.rs
index 7b18cc3b..6f089353 100644
--- a/src/bin/cli.rs
+++ b/src/bin/cli.rs
@@ -40,7 +40,7 @@ enum Commands {
},
Server {
/// Address to bind to
- #[arg(short, long, env = "BIND_ADDR")]
+ #[arg(short, long, env = "BIND_ADDR", default_value = "127.0.0.1:50051")]
addr: String,
},
}
@@ -82,9 +82,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.init();
tracing::info!(address = %addr, "Starting authorization server");
- let cedar = authzd::authorization::CedarAuthorizer::default();
- let server = authzd::authorization::Server::new(cedar)?;
- server.serve(addr.parse().unwrap()).await?;
+ authzd::authorization::Server::new(authzd::authorization::CedarAuthorizer::default())?
+ .serve(addr.parse().unwrap())
+ .await?;
}
}