mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 13:16:28 +00:00
fix: modify webhook port
This commit is contained in:
@@ -11,7 +11,7 @@ async fn setup_notification_system() -> Result<(), NotifierError> {
|
|||||||
store_path: "./deploy/logs/event_store".into(),
|
store_path: "./deploy/logs/event_store".into(),
|
||||||
channel_capacity: 100,
|
channel_capacity: 100,
|
||||||
adapters: vec![AdapterConfig::Webhook(WebhookConfig {
|
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()),
|
auth_token: Some("your-auth-token".into()),
|
||||||
custom_headers: Some(HashMap::new()),
|
custom_headers: Some(HashMap::new()),
|
||||||
max_retries: 3,
|
max_retries: 3,
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ async fn main() -> Result<(), Box<dyn error::Error>> {
|
|||||||
store_path: "./events".to_string(),
|
store_path: "./events".to_string(),
|
||||||
channel_capacity: 100,
|
channel_capacity: 100,
|
||||||
adapters: vec![AdapterConfig::Webhook(WebhookConfig {
|
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()),
|
auth_token: Some("secret-token".to_string()),
|
||||||
custom_headers: Some(HashMap::from([("X-Custom".to_string(), "value".to_string())])),
|
custom_headers: Some(HashMap::from([("X-Custom".to_string(), "value".to_string())])),
|
||||||
max_retries: 3,
|
max_retries: 3,
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ export RUSTFS__LOGGER__QUEUE_CAPACITY=10
|
|||||||
|
|
||||||
# 事件消息配置
|
# 事件消息配置
|
||||||
export RUSTFS_EVENT_CONFIG="./deploy/config/event.example.toml"
|
export RUSTFS_EVENT_CONFIG="./deploy/config/event.example.toml"
|
||||||
|
export RUST_LOG="rustfs=debug,ecstore=debug,s3s=debug,iam=debug"
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
export RUSTFS_VOLUMES="$1"
|
export RUSTFS_VOLUMES="$1"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user