fix: modify webhook port

This commit is contained in:
houseme
2025-04-22 23:06:43 +08:00
parent 52a1f9b8a7
commit ea13098beb
3 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -21,7 +21,7 @@ async fn main() -> Result<(), Box<dyn error::Error>> {
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,

View File

@@ -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