add default config file, dependence midware no password set(es, redis,mongo )

feihu wang
This commit is contained in:
feihu.wang 2020-03-24 18:59:14 +08:00
parent 2d9bc6bc6c
commit 27f4383082
7 changed files with 79 additions and 21 deletions

View File

@ -103,7 +103,6 @@ https://gitee.com/freshday/radar/wikis/manual
通过管理端能够快速了解系统是怎么从风险的定义到风险的量化再到风险的集中管理的整个工作流程。
为了更好的体验,请花一分钟观看 [使用手册](https://gitee.com/freshday/radar/wikis/manual?sort_id=1637446)
[Demo URL](http://radar.pgmmer.top) http://radar.pgmmer.top
账号密码test/123456
建议大家自行注册用户,避免使用同样的测试账号受干扰.
## 未完待续
@ -123,4 +122,4 @@ https://gitee.com/freshday/radar/wikis/manual
提示进群需要捐赠0.1元起
![微信交流群](http://radar.pgmmer.top/radar/wx2.jpg)
Copyright © WangFeiHu 2020
Copyright © 2019-2020 WangFeiHu

View File

@ -34,4 +34,4 @@ sys:
mongo-restore-days: 93 # 事件保存时间默认3个月
workdir: /radar/workdir # 工作目录
server:
port: 18080
port: 6580

View File

@ -0,0 +1,37 @@
spring:
data:
mongodb:
uri: mongodb://localhost:27017/radar
datasource:
url: jdbc:mysql://127.0.0.1:3306/radar?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false
username: root
password: 456132
redis:
host: 127.0.0.1
password:
timeout: 2000ms
database: 1 #默认有16个db(集群模式用hash槽代替)这里配置具体使用的db默认是0
mobile:
info:
path: d:/radar/moble_info.csv #手机号码归属地文件
ip2region:
db:
path: d:/radar/ip2region.db #IP地址库文件
elasticsearch:
ip: 127.0.0.1
port: 9300
pool-size: 5
cluster:
name: elasticsearch
url: http://127.0.0.1:9200
username: # 不存在就留空
password: #
sys:
conf:
app: admin # admin 或者 engine 根据启动的项目名称进行选择
entity-duplicate-insert: false # 事件是否允许重复插入
mongo-restore-days: 93 # 事件保存时间默认3个月
workdir: d:/radar # 工作目录
server:
port: 6580

View File

@ -50,4 +50,4 @@ logging:
org.elasticsearch: info
server:
port: 18080
port: 6580

View File

@ -38,4 +38,4 @@ sys:
mongo-restore-days: 93 # 事件保存时间默认3个月
workdir: /radar/workdir # 工作目录
server:
port: 9090
port: 6581

View File

@ -0,0 +1,37 @@
spring:
data:
mongodb:
uri: mongodb://localhost:27017/radar
datasource:
url: jdbc:mysql://127.0.0.1:3306/radar?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false
username: root
password: 456132
redis:
host: 127.0.0.1
password:
timeout: 2000ms
database: 1 #默认有16个db(集群模式用hash槽代替)这里配置具体使用的db默认是0
mobile:
info:
path: d:/radar/moble_info.csv #手机号码归属地文件
ip2region:
db:
path: d:/radar/ip2region.db #IP地址库文件
elasticsearch:
ip: 127.0.0.1
port: 9300
pool-size: 5
cluster:
name: elasticsearch
url: http://127.0.0.1:9200
username: # 不存在就留空
password: #
sys:
conf:
app: engine # admin 或者 engine 根据启动的项目名称进行选择
entity-duplicate-insert: false # 事件是否允许重复插入
mongo-restore-days: 93 # 事件保存时间默认3个月
workdir: d:/radar # 工作目录
server:
port: 6581

View File

@ -2,9 +2,6 @@ spring:
profiles:
active: @profileActive@
datasource:
url: jdbc:mysql://localhost:3306/radar?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false
username: root
password: 456132
driver-class-name: com.mysql.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
druid:
@ -29,10 +26,6 @@ spring:
login-username: admin
login-password: 123456
redis:
host: 127.0.0.1
#password:
timeout: 2000ms
database: 0 #默认有16个db(集群模式用hash槽代替)这里配置具体使用的db默认是0
lettuce:
pool:
max-active: 30 #最大连接数(使用负值表示没有限制) 默认 8
@ -45,8 +38,6 @@ mapper:
mappers:
- tk.mybatis.mapper.common.Mapper
not-empty: true
mongodb:
url: mongodb://localhost:27017/radar
mobile:
info:
path: D:/radar/moble_info.csv # 手机号码归属地文件
@ -65,11 +56,5 @@ logging:
root: info
com.pgmmers.radar: info
com.pgmmers.radar.mapper: debug
sys:
conf:
app: engine # admin 或者 engine 根据启动的项目名称进行选择
entity-duplicate-insert: false # 事件是否允许重复插入
mongo-restore-days: 93 # 事件保存时间默认3个月
workdir: d:\\radar # 工作目录
server:
port: 9090
port: 6581