Skip to content

Commit 9557058

Browse files
committed
sentry - cli - add --certificates & --privateKeys
1 parent 032624e commit 9557058

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

sentry/src/main.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ use primitives::{
1111
use sentry::{
1212
db::{postgres_connection, redis_connection, setup_migrations, CampaignRemaining},
1313
platform::PlatformApi,
14+
// tls::{load_certs, load_keys, tls_acceptor},
1415
Application,
1516
};
1617
use slog::info;
17-
use std::{env, net::SocketAddr};
18+
use std::{env, net::SocketAddr /* , path::PathBuf */};
1819

1920
#[tokio::main]
2021
async fn main() -> Result<(), Box<dyn std::error::Error>> {
@@ -49,6 +50,18 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
4950
.help("the identity to use with the dummy adapter")
5051
.takes_value(true),
5152
)
53+
.arg(
54+
Arg::new("certificates")
55+
.long("certificates")
56+
.help("Certificates file for TLS")
57+
.takes_value(true),
58+
)
59+
.arg(
60+
Arg::new("privateKeys")
61+
.long("privateKeys")
62+
.help("The Private keys file for TLS")
63+
.takes_value(true),
64+
)
5265
.get_matches();
5366

5467
let env_config = sentry::application::EnvConfig::from_env()?;

0 commit comments

Comments
 (0)