From ea13098beb91b8946505dc7bcf3dc2fd0b238621 Mon Sep 17 00:00:00 2001 From: houseme Date: Tue, 22 Apr 2025 23:06:43 +0800 Subject: [PATCH] fix: modify webhook port --- crates/event-notifier/examples/full.rs | 2 +- crates/event-notifier/examples/simple.rs | 2 +- scripts/run.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/event-notifier/examples/full.rs b/crates/event-notifier/examples/full.rs index 14231c73..23e858fb 100644 --- a/crates/event-notifier/examples/full.rs +++ b/crates/event-notifier/examples/full.rs @@ -11,7 +11,7 @@ async fn setup_notification_system() -> Result<(), NotifierError> { store_path: "./deploy/logs/event_store".into(), channel_capacity: 100, adapters: vec![AdapterConfig::Webhook(WebhookConfig { - endpoint: "http://127.0.0.1:3000/webhook".into(), + endpoint: "http://127.0.0.1:3020/webhook".into(), auth_token: Some("your-auth-token".into()), custom_headers: Some(HashMap::new()), max_retries: 3, diff --git a/crates/event-notifier/examples/simple.rs b/crates/event-notifier/examples/simple.rs index eac37181..93005f0a 100644 --- a/crates/event-notifier/examples/simple.rs +++ b/crates/event-notifier/examples/simple.rs @@ -21,7 +21,7 @@ async fn main() -> Result<(), Box> { store_path: "./events".to_string(), channel_capacity: 100, adapters: vec![AdapterConfig::Webhook(WebhookConfig { - endpoint: "http://127.0.0.1:3000/webhook".to_string(), + endpoint: "http://127.0.0.1:3020/webhook".to_string(), auth_token: Some("secret-token".to_string()), custom_headers: Some(HashMap::from([("X-Custom".to_string(), "value".to_string())])), max_retries: 3, diff --git a/scripts/run.sh b/scripts/run.sh index 2cbd115a..96463c91 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -59,7 +59,7 @@ export RUSTFS__LOGGER__QUEUE_CAPACITY=10 # 事件消息配置 export RUSTFS_EVENT_CONFIG="./deploy/config/event.example.toml" - +export RUST_LOG="rustfs=debug,ecstore=debug,s3s=debug,iam=debug" if [ -n "$1" ]; then export RUSTFS_VOLUMES="$1" fi