Explorar el Código

1st commit bird properties

milo hace 1 año
padre
commit
d6b54a264b

+ 97 - 0
code/SW_BIRD_MS/01.Docs/DEFAULT_GROUP/bmp-gateway-dynamic

@@ -0,0 +1,97 @@
+[
+	{
+		"id":"bmpWebRoute",
+		"uri":"lb://bmp-web",
+		"order":0,
+		"predicates":[{
+			"name":"Path",
+			"args":{"pattern":"/BMP-WEB/**"}
+		}],
+		"filters":[
+			{
+			"name":"StripPrefix",
+			"args":{"_genkey_0":"1"}
+			},
+			{
+			"name":"RewritePath",
+			"args":{"_genkey_0":"/BMP-WEB/(?<path>.*)","_genkey_1":"/$\\{path}"}
+			}
+		]
+    },
+	{
+		"id":"bmpNettyRoute",
+		"uri":"lb://bmp-netty",
+		"order":0,
+		"predicates":[{
+			"name":"Path",
+			"args":{"pattern":"/BMP-NETTY/**"}
+		}],
+		"filters":[
+			{
+			"name":"StripPrefix",
+			"args":{"_genkey_0":"1"}
+			},
+			{
+			"name":"RewritePath",
+			"args":{"_genkey_0":"/BMP-NETTY/(?<path>.*)","_genkey_1":"/$\\{path}"}
+			}
+		]
+	},
+	{
+		"id":"bmpBirdRoute",
+		"uri":"lb://bmp-bird",
+		"order":0,
+		"predicates":[{
+			"name":"Path",
+			"args":{"pattern":"/BMP-BIRD/**"}
+		}],
+		"filters":[
+			{
+			"name":"StripPrefix",
+			"args":{"_genkey_0":"1"}
+			},
+			{
+			"name":"RewritePath",
+			"args":{"_genkey_0":"/BMP-BIRD/(?<path>.*)","_genkey_1":"/$\\{path}"}
+			}
+		]
+	},
+	{
+		"id":"bmpKcglRoute",
+		"uri":"lb://bmp-kcgl",
+		"order":0,
+		"predicates":[{
+			"name":"Path",
+			"args":{"pattern":"/BMP-KCGL/**"}
+		}],
+		"filters":[
+			{
+			"name":"StripPrefix",
+			"args":{"_genkey_0":"1"}
+			},
+			{
+			"name":"RewritePath",
+			"args":{"_genkey_0":"/BMP-KCGL/(?<path>.*)","_genkey_1":"/$\\{path}"}
+			}
+		]
+	},
+	{
+		"id":"bmpNginxflvRoute",
+		"uri":"lb://bmp-nginxflv",
+		"order":0,
+		"predicates":[{
+			"name":"Path",
+			"args":{"pattern":"/BMP-NGINXFLV/**"}
+		}],
+		"filters":[
+			{
+			"name":"StripPrefix",
+			"args":{"_genkey_0":"1"}
+			},
+			{
+			"name":"RewritePath",
+			"args":{"_genkey_0":"/BMP-NGINXFLV/(?<path>.*)","_genkey_1":"/$\\{path}"}
+			}
+		]
+	}
+]

+ 59 - 0
code/SW_BIRD_MS/01.Docs/DEFAULT_GROUP/bmp-global-config-dev.properties

@@ -0,0 +1,59 @@
+# 设置token生成秘钥与过期时间,此处单位为秒
+jwt.secret=aaa
+jwt.expiration=86400
+
+# 设置redis存储登录用户信息的过期时间,此处单位为秒
+redis.user.expiration=90000
+
+# 设定特殊用户redis及token信息不过期,一次登录永久有效,值为userId,多个逗号隔开
+redis.user.notexpired.userIds=1,2,3
+
+# 是否通过ping来检测设备在线,默认true,是
+checkDeviceIpByPing=true
+# 工控机下载鸟情视频文件nginx端口配置,不配置,则默认为80
+birdVideoPort=80
+# 如果是单机部署,可以配置指定appId,0表示不指定
+default.appId=0
+# netty用户登录,配置私有key
+system.privateKey=mwWAH2eUAAHodlRt
+# 是否使用simCode关联工控机开关,默认为1,1为是,0否
+isSimCodeSwitch=1
+# ROMA空侧飞行管理系统服务器ip,"_"后面为appId,区分不同机场,多个逗号隔开
+ROMA.server.ip=
+# ROMA空侧飞行管理系统APPKEY,"_"后面为appId,区分不同机场,多个逗号隔开;另外APPID固定为airport_saiwei_app不需要配置
+ROMA.app.key=
+# ROMA空侧飞行管理系统APPSecret,"_"后面为appId,区分不同机场,多个逗号隔开;另外APPID固定为airport_saiwei_app不需要配置
+ROMA.app.secret=
+
+# 定时任务执行,指定服务名称、ip及指定端口(例子:bmp-web_localhost_8870),防止多次执行;多个逗号隔开
+system.task.appNameAndIpAndPort=bmp-web_localhost_8871,bmp-bird_localhost_8831,bmp-netty_localhost_8841,bmp-nginxflv_localhost_8821
+
+# 创建下载文件时的临时保存路径
+system.dowload.path=/home/yuqing/download
+# 鸟情历史回放视频下载文件时保存路径
+system.dowload.bird.warning.path=/home/yuqing/video
+
+# 海康摄像机设备sdk需加载模型路径
+system.device.general.models.path=D:\\java\\hksdk
+system.device.general.models.linux.path=/home/project/deviceSDKdll/lib
+
+# 驱鸟检测算法sdk需加载模型路径
+system.bird.detector.models.path=E:\\birdSDK
+system.bird.detector.models.linux.path=/home/project/birdSDK
+
+# 设置fastdfs对象参数
+fastdfs.fileAccessUrl = http://47.112.106.146:8009
+fastdfs.filePath = /home/yuqing/fastdfs/data
+fastdfs.connect_timeout = 30
+fastdfs.network_timeout = 60
+fastdfs.charset = utf-8
+fastdfs.http_tracker_http_port = 8009
+fastdfs.http_anti_steal_token = no
+fastdfs.http_secret_key = FastDFS1234567890
+fastdfs.tracker_server = 47.112.106.146:22122
+
+# 视频播放转发地址、实时视频转发地址
+play.config.realPlayAddress=rtmp://localhost:1935/live/
+play.config.liveRealPlayAddress=http://localhost/live?port=1935&app=live&stream=
+
+

+ 78 - 0
code/SW_BIRD_MS/01.Docs/DEFAULT_GROUP/facerec-gateway-dynamic

@@ -0,0 +1,78 @@
+[
+	{
+		"id":"facerecSystemRoute",
+		"uri":"lb://facerec-system",
+		"order":0,
+		"predicates":[{
+			"name":"Path",
+			"args":{"pattern":"/FACEREC-SYSTEM/**"}
+		}],
+		"filters":[
+			{
+			"name":"StripPrefix",
+			"args":{"_genkey_0":"1"}
+			},
+			{
+			"name":"RewritePath",
+			"args":{"_genkey_0":"/FACEREC-SYSTEM/(?<path>.*)","_genkey_1":"/$\\{path}"}
+			}
+		]
+    },
+	{
+		"id":"facerecDeviceRoute",
+		"uri":"lb://facerec-device",
+		"order":0,
+		"predicates":[{
+			"name":"Path",
+			"args":{"pattern":"/FACEREC-DEVICE/**"}
+		}],
+		"filters":[
+			{
+			"name":"StripPrefix",
+			"args":{"_genkey_0":"1"}
+			},
+			{
+			"name":"RewritePath",
+			"args":{"_genkey_0":"/FACEREC-DEVICE/(?<path>.*)","_genkey_1":"/$\\{path}"}
+			}
+		]
+    },
+	{
+		"id":"facerecNginxflvRoute",
+		"uri":"lb://facerec-nginxflv",
+		"order":0,
+		"predicates":[{
+			"name":"Path",
+			"args":{"pattern":"/FACEREC-NGINXFLV/**"}
+		}],
+		"filters":[
+			{
+			"name":"StripPrefix",
+			"args":{"_genkey_0":"1"}
+			},
+			{
+			"name":"RewritePath",
+			"args":{"_genkey_0":"/FACEREC-NGINXFLV/(?<path>.*)","_genkey_1":"/$\\{path}"}
+			}
+		]
+	},
+	{
+		"id":"facerecStationDeviceRoute",
+		"uri":"lb://facerec-station-device",
+		"order":0,
+		"predicates":[{
+			"name":"Path",
+			"args":{"pattern":"/FACEREC-STATION-DEVICE/**"}
+		}],
+		"filters":[
+			{
+			"name":"StripPrefix",
+			"args":{"_genkey_0":"1"}
+			},
+			{
+			"name":"RewritePath",
+			"args":{"_genkey_0":"/FACEREC-STATION-DEVICE/(?<path>.*)","_genkey_1":"/$\\{path}"}
+			}
+		]
+    }
+]

+ 47 - 0
code/SW_BIRD_MS/01.Docs/DEFAULT_GROUP/facerec-global-config-dev.properties

@@ -0,0 +1,47 @@
+# 设置token生成秘钥与过期时间,此处单位为秒
+jwt.secret=aaa
+jwt.expiration=86400
+
+# 默认应用id,0表示不指定,其他为指定
+default.appId=0
+
+# 设置redis存储登录用户信息的过期时间,此处单位为秒
+redis.user.expiration=90000
+
+# 设定特殊用户redis及token信息不过期,一次登录永久有效,值为userId,多个逗号隔开
+redis.user.notexpired.userIds=1,2,3,4
+# 是否通过ping来检测设备在线
+checkDeviceIpByPing=false
+
+# 定时任务执行,指定服务名称、ip及指定端口(例子:facerec-system_localhost_8770),防止多次执行;多个逗号隔开
+system.task.appNameAndIpAndPort=facerec-system_localhost_8771,facerec-device_localhost_8751,facerec-netty_localhost_8741,facerec-nginxflv_localhost_8731,facerec-station-device_localhost_8651
+
+# 创建下载文件时的临时保存路径
+system.dowload.path=/home/yuqing/download
+# 历史回放视频下载文件时保存路径
+system.dowload.replay.path=/home/yuqing/video
+
+# 海康摄像机设备sdk需加载模型路径
+system.device.general.models.path=E:\\hksdk
+system.device.general.models.linux.path=/home/project/deviceSDKdll/lib
+
+# 驱鸟检测算法sdk需加载模型路径
+system.bird.detector.models.path=E:\\birdSDK
+system.bird.detector.models.linux.path=/home/project/birdSDK
+
+# 设置fastdfs对象参数
+fastdfs.fileAccessUrl = http://47.112.106.146:8009
+fastdfs.filePath = /home/yuqing/fastdfs/data
+fastdfs.connect_timeout = 30
+fastdfs.network_timeout = 60
+fastdfs.charset = utf-8
+fastdfs.http_tracker_http_port = 8009
+fastdfs.http_anti_steal_token = no
+fastdfs.http_secret_key = FastDFS1234567890
+fastdfs.tracker_server = 47.112.106.146:22122
+
+# 视频播放转发地址、实时视频转发地址
+play.config.realPlayAddress=rtmp://localhost:1935/live/
+play.config.liveRealPlayAddress=http://localhost/live?port=1935&app=live&stream=
+
+

+ 89 - 0
code/SW_BIRD_MS/01.Docs/SEATA_GROUP/seataServe.properties

@@ -0,0 +1,89 @@
+transport.type=TCP
+transport.server=NIO
+transport.heartbeat=true
+transport.enableClientBatchSendRequest=false
+transport.threadFactory.bossThreadPrefix=NettyBoss
+transport.threadFactory.workerThreadPrefix=NettyServerNIOWorker
+transport.threadFactory.serverExecutorThreadPrefix=NettyServerBizHandler
+transport.threadFactory.shareBossWorker=false
+transport.threadFactory.clientSelectorThreadPrefix=NettyClientSelector
+transport.threadFactory.clientSelectorThreadSize=1
+transport.threadFactory.clientWorkerThreadPrefix=NettyClientWorkerThread
+transport.threadFactory.bossThreadSize=1
+transport.threadFactory.workerThreadSize=default
+transport.shutdown.wait=3
+service.vgroupMapping.my_test_tx_group=default
+service.default.grouplist=47.112.106.146:8091
+service.enableDegrade=false
+service.disableGlobalTransaction=false
+client.rm.asyncCommitBufferLimit=10000
+client.rm.lock.retryInterval=10
+client.rm.lock.retryTimes=30
+client.rm.lock.retryPolicyBranchRollbackOnConflict=true
+client.rm.reportRetryCount=5
+client.rm.tableMetaCheckEnable=false
+client.rm.tableMetaCheckerInterval=60000
+client.rm.sqlParserType=druid
+client.rm.reportSuccessEnable=false
+client.rm.sagaBranchRegisterEnable=false
+client.tm.commitRetryCount=5
+client.tm.rollbackRetryCount=5
+client.tm.defaultGlobalTransactionTimeout=60000
+client.tm.degradeCheck=false
+client.tm.degradeCheckAllowTimes=10
+client.tm.degradeCheckPeriod=2000
+store.mode=db
+store.publicKey=
+store.file.dir=file_store/data
+store.file.maxBranchSessionSize=16384
+store.file.maxGlobalSessionSize=512
+store.file.fileWriteBufferCacheSize=16384
+store.file.flushDiskMode=async
+store.file.sessionReloadReadSize=100
+store.db.datasource=druid
+store.db.dbType=mysql
+store.db.driverClassName=com.mysql.cj.jdbc.Driver
+store.db.url=jdbc:mysql://47.112.106.146:3306/seata?useUnicode=true&rewriteBatchedStatements=true
+store.db.user=root
+store.db.password=sunwin
+store.db.minConn=5
+store.db.maxConn=30
+store.db.globalTable=global_table
+store.db.branchTable=branch_table
+store.db.queryLimit=100
+store.db.lockTable=lock_table
+store.db.maxWait=5000
+store.redis.mode=single
+store.redis.single.host=127.0.0.1
+store.redis.single.port=6379
+store.redis.sentinel.masterName=
+store.redis.sentinel.sentinelHosts=
+store.redis.maxConn=10
+store.redis.minConn=1
+store.redis.maxTotal=100
+store.redis.database=0
+store.redis.password=
+store.redis.queryLimit=100
+server.recovery.committingRetryPeriod=1000
+server.recovery.asynCommittingRetryPeriod=1000
+server.recovery.rollbackingRetryPeriod=1000
+server.recovery.timeoutRetryPeriod=1000
+server.maxCommitRetryTimeout=-1
+server.maxRollbackRetryTimeout=-1
+server.rollbackRetryTimeoutUnlockEnable=false
+client.undo.dataValidation=true
+client.undo.logSerialization=kryo
+client.undo.onlyCareUpdateColumns=true
+server.undo.logSaveDays=7
+server.undo.logDeletePeriod=86400000
+client.undo.logTable=undo_log
+client.undo.compress.enable=true
+client.undo.compress.type=zip
+client.undo.compress.threshold=64k
+log.exceptionRate=100
+transport.serialization=seata
+transport.compressor=none
+metrics.enabled=false
+metrics.registryType=compact
+metrics.exporterList=prometheus
+metrics.exporterPrometheusPort=9898