summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangwei <[email protected]>2023-03-08 11:46:03 +0800
committerwangwei <[email protected]>2023-03-08 11:46:03 +0800
commit7a773dbb2e15ebdb9f42138e3fafbcb5765d1e64 (patch)
tree0fa8f534f684cfab3bcd4fceda3600e57b01389a
parentae76f304c149aa0c86377243c87420cfabcff693 (diff)
fix(cfg):修改默认配置,定时任务全部关闭
-rw-r--r--src/main/resources/application.yml26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 2ce7ebe..29fc4a8 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -9,17 +9,17 @@ spring:
ip:
filePath: /data/tsg/olap/galaxy/volumes/PsiphonSlokIP.txt
upperLimit: 100000
- #指定排除的IP. 1.如果没有可不写值,2.若有多个用英文逗号,分隔如: 127.0.0.1,127.0.0.2
- excludeValue: 0.0.0.0
+ #指定排除的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 * * ?
- enable: true
+ enable: false
# TSG 账号
tsg:
system:
- url: http://192.168.45.51:8080/
- username: admin
- password: aSdvVT7Fg81kJBuT7T7T7g==
- token: 4628529e-f349-4634-99ed-03efd83e0e5a&1339&
+ url: http://192.168.44.29:8083/
+ username: galaxy
+ password: ozcQzjngV8A2C34NuW9KCQ==
+ token:
# http 超时时间
httpTimeOut: 3600000
ipObjectId: 157
@@ -29,18 +29,18 @@ tsg:
fqdnObjectId: 159
fqdnObjectName: sg-test
entity:
- ipObjectId: 8831
- ipObjectName: ww_test
+ ipObjectId: 8878
+ ipObjectName: 0217Psiphon_Client_IP
update:
cron: 0 0/1 * * * ?
- enable: true
+ 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 * * * ?
- enable: true
+ enable: false
#偏移秒数,正数向未来偏移,负数向历史偏移
offset: -600
batch:
@@ -62,11 +62,11 @@ entity:
ipObjectName: Subscriber_IP_5
update:
cron: 0 0/2 * * * ?
- enable: true
+ 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 * * * ?
- enable: true
+ enable: false
offset: -600
## ClickhHouse configuration, timeout: milliseconds read and connection
clickhouse: