summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangwei <[email protected]>2023-03-08 14:26:05 +0800
committerwangwei <[email protected]>2023-03-08 14:26:05 +0800
commit966a255194e176255ad6f581a78b6b8e536d279d (patch)
tree8b5440224039d0190d80b29a94830b46f318e24c
parent7a773dbb2e15ebdb9f42138e3fafbcb5765d1e64 (diff)
fix(cfg):默认设置定时任务每天执行一次,对外只暴露需要的定时任务配置
-rw-r--r--src/main/resources/application.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 29fc4a8..8bdf668 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -11,7 +11,7 @@ ip:
upperLimit: 100000
#指定排除的IP. 1.如果没有可不写值,2.若有多个用英文逗号,分隔如: 127.0.0.1,127.0.0.2,3.可适用IP段匹配,如:127.*
excludeValue: 0.0.0.0,255.255.255.255,127.*,8.8.8.8,1.1.1.1
- cron: 0 0 0/1 * * ?
+ cron: 0 0 1 * * ?
enable: false
# TSG 账号
tsg:
@@ -32,14 +32,14 @@ entity:
ipObjectId: 8878
ipObjectName: 0217Psiphon_Client_IP
update:
- cron: 0 0/1 * * * ?
+ cron: 0 0 1 * * ?
enable: false
#Plan B sql: SELECT common_client_ip as client_ip, count(DISTINCT common_server_ip) as num FROM security_event WHERE common_recv_time > now() - 10 * 60 AND common_recv_time <= now() AND notEmpty(common_client_ip) AND common_policy_id = '97810' GROUP BY client_ip HAVING num >= 10
sql: SELECT DISTINCT client_ip FROM psiphon_client_detection_event WHERE event_time >= now()-600 AND event_time < now() AND notEmpty(client_ip)
delete:
# DELETE、PUT
option: DELETE
- cron: 0 0/5 * * * ?
+ cron: 0 0 1 * * ?
enable: false
#偏移秒数,正数向未来偏移,负数向历史偏移
offset: -600
@@ -61,11 +61,11 @@ entity:
ipObjectId: 8975
ipObjectName: Subscriber_IP_5
update:
- cron: 0 0/2 * * * ?
+ cron: 0 0 1 * * ?
enable: false
sql: SELECT cflow_post_nat_source_ipv4_addr AS ip, cflow_port_range_start AS start_port, cflow_port_range_end AS end_port FROM cflow_record cr WHERE common_recv_time > now() - 60 * 2 AND common_recv_time <= now() AND cflow_data_flowset_id = '265'AND cflow_ipv4_src_addr IN (SELECT DISTINCT radius_framed_ip FROM radius_record rr WHERE common_recv_time > now() - 60 * 2 AND common_recv_time <= now() AND radius_calling_station_id IN ('{}'))
delete:
- cron: 0 0/10 * * * ?
+ cron: 0 0 1 * * ?
enable: false
offset: -600
## ClickhHouse configuration, timeout: milliseconds read and connection