第一次提交
This commit is contained in:
59
fastbee-record/src/main/resources/all-application.yml
Normal file
59
fastbee-record/src/main/resources/all-application.yml
Normal file
@@ -0,0 +1,59 @@
|
||||
spring:
|
||||
# REDIS数据库配置
|
||||
redis:
|
||||
# [必须修改] Redis服务器IP, REDIS安装在本机的,使用127.0.0.1
|
||||
host: 127.0.0.1
|
||||
# [必须修改] 端口号
|
||||
port: 6379
|
||||
# [可选] 数据库 DB
|
||||
database: 8
|
||||
# [可选] 访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
|
||||
password:
|
||||
# [可选] 超时时间
|
||||
timeout: 10000
|
||||
|
||||
# [可选] 监听的HTTP端口, 网页和接口调用都是这个端口
|
||||
# 您需要使用实际的证书名称替换domain_name.jks
|
||||
# 证书获取参考文档:https://help.aliyun.com/zh/ssl-certificate/user-guide/enable-https-on-spring-boot
|
||||
server:
|
||||
port: 18081
|
||||
# HTTPS配置, 默认不开启
|
||||
ssl:
|
||||
# 是否开启HTTPS访问 默认关闭
|
||||
enabled: false
|
||||
# enabled: true
|
||||
# 证书文件路径,您需要使用实际的证书名称替换domain_name.jks。
|
||||
key-store: classpath:fastbee.online.jks
|
||||
# 证书密码 修改为对应密码
|
||||
key-store-password: fastbee
|
||||
# 证书类型, 默认为jks,根据实际修改
|
||||
key-store-type: JKS
|
||||
|
||||
# [根据业务需求配置]
|
||||
user-settings:
|
||||
# [可选 ] zlm配置的录像路径,不配置则使用当前目录下的record目录 即: ./record
|
||||
record: /opt/media/bin/www
|
||||
# [可选 ] 录像保存时长(单位: 天)每天晚12点自动对过期文件执行清理, 不配置则不删除
|
||||
recordDay: 7
|
||||
# [可选 ] 录像下载合成临时文件保存时长, 不配置默认取值recordDay(单位: 天)每天晚12点自动对过期文件执行清理
|
||||
# recordTempDay: 7
|
||||
# [必选 ] ffmpeg路径
|
||||
ffmpeg: /usr/bin/ffmpeg
|
||||
# [必选 ] ffprobe路径, 一般安装ffmpeg就会自带, 一般跟ffmpeg在同一目录,用于查询文件的信息
|
||||
ffprobe: /usr/bin/ffprobe
|
||||
# [可选 ] 限制 ffmpeg 合并文件使用的线程数,间接限制cpu使用率, 默认2 限制到50%
|
||||
threads: 2
|
||||
|
||||
|
||||
# [可选] 日志配置, 一般不需要改
|
||||
logging:
|
||||
file:
|
||||
name: logs/record.log
|
||||
max-history: 30
|
||||
max-size: 10MB
|
||||
total-size-cap: 300MB
|
||||
level:
|
||||
root: WARN
|
||||
top:
|
||||
panll:
|
||||
assist: info
|
||||
60
fastbee-record/src/main/resources/application-dev.yml
Normal file
60
fastbee-record/src/main/resources/application-dev.yml
Normal file
@@ -0,0 +1,60 @@
|
||||
spring:
|
||||
# REDIS数据库配置
|
||||
redis:
|
||||
# [必须修改] Redis服务器IP, REDIS安装在本机的,使用127.0.0.1
|
||||
host: 127.0.0.1
|
||||
# [必须修改] 端口号
|
||||
port: 6379
|
||||
# [可选] 数据库 DB
|
||||
database: 8
|
||||
# [可选] 访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
|
||||
password:
|
||||
# [可选] 超时时间
|
||||
timeout: 10000
|
||||
|
||||
# [可选] 监听的HTTP端口, 网页和接口调用都是这个端口
|
||||
# 您需要使用实际的证书名称替换domain_name.jks
|
||||
# 证书获取参考文档:https://help.aliyun.com/zh/ssl-certificate/user-guide/enable-https-on-spring-boot
|
||||
server:
|
||||
port: 18081
|
||||
# HTTPS配置, 默认不开启
|
||||
ssl:
|
||||
# 是否开启HTTPS访问 默认关闭
|
||||
enabled: false
|
||||
# enabled: true
|
||||
# 证书文件路径,您需要使用实际的证书名称替换domain_name.jks。
|
||||
key-store: classpath:fastbee.online.jks
|
||||
# 证书密码 修改为对应密码
|
||||
key-store-password: fastbee
|
||||
# 证书类型, 默认为jks,根据实际修改
|
||||
key-store-type: JKS
|
||||
|
||||
# [根据业务需求配置]
|
||||
userSettings:
|
||||
# [可选 ] zlm配置的录像路径,
|
||||
record: /opt/media/bin/www/record
|
||||
# [可选 ] 录像保存时长(单位: 天)每天晚12点自动对过期文件执行清理
|
||||
recordDay: 7
|
||||
# [可选 ] 录像下载合成临时文件保存时长, 不配置默认取值recordDay(单位: 天)每天晚12点自动对过期文件执行清理
|
||||
# recordTempDay: 7
|
||||
# [必选 ] ffmpeg路径
|
||||
ffmpeg: /usr/bin/ffmpeg
|
||||
# [必选 ] ffprobe路径, 一般安装ffmpeg就会自带, 一般跟ffmpeg在同一目录,用于查询文件的信息
|
||||
ffprobe: /usr/bin/ffprobe
|
||||
# [可选 ] 限制 ffmpeg 合并文件使用的线程数,间接限制cpu使用率, 默认2 限制到50%
|
||||
threads: 2
|
||||
|
||||
swagger-ui:
|
||||
|
||||
# [可选] 日志配置, 一般不需要改
|
||||
logging:
|
||||
file:
|
||||
name: logs/record.log
|
||||
max-history: 30
|
||||
max-size: 10MB
|
||||
total-size-cap: 300MB
|
||||
level:
|
||||
root: WARN
|
||||
com:
|
||||
fastbee:
|
||||
record: info
|
||||
75
fastbee-record/src/main/resources/application-prod.yml
Normal file
75
fastbee-record/src/main/resources/application-prod.yml
Normal file
@@ -0,0 +1,75 @@
|
||||
spring:
|
||||
# REDIS数据库配置
|
||||
redis:
|
||||
# [可选] 超时时间
|
||||
timeout: 10000
|
||||
# 以下为单机配置
|
||||
# [必须修改] Redis服务器IP, REDIS安装在本机的,使用127.0.0.1
|
||||
host: redis
|
||||
# [必须修改] 端口号
|
||||
port: 6379
|
||||
# [可选] 数据库 DB
|
||||
database: 0
|
||||
# [可选] 访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
|
||||
password: fastbee
|
||||
# 以下为集群配置
|
||||
# cluster:
|
||||
# nodes: 192.168.1.242:7001
|
||||
# password: 4767cb971b40a1300fa09b7f87b09d1c
|
||||
|
||||
# [可选] 监听的HTTP端口, 网页和接口调用都是这个端口
|
||||
# 您需要使用实际的证书名称替换domain_name.jks
|
||||
# 证书获取参考文档:https://help.aliyun.com/zh/ssl-certificate/user-guide/enable-https-on-spring-boot
|
||||
server:
|
||||
port: 18081
|
||||
servlet:
|
||||
context-path: / # 应用的访问路径
|
||||
# HTTPS配置, 默认不开启
|
||||
ssl:
|
||||
# 是否开启HTTPS访问 默认关闭
|
||||
enabled: false
|
||||
# enabled: true
|
||||
# 证书文件路径,您需要使用实际的证书名称替换domain_name.jks。
|
||||
key-store: classpath:fastbee.online.jks
|
||||
# 证书密码 修改为对应密码
|
||||
key-store-password: fastbee
|
||||
# 证书类型, 默认为jks,根据实际修改
|
||||
key-store-type: JKS
|
||||
|
||||
# [根据业务需求配置]
|
||||
userSettings:
|
||||
# [必选 ] 服务ID
|
||||
id: 334533
|
||||
# [必选 ] zlm配置的录像路径
|
||||
record: /opt/media/bin/www/record
|
||||
# [可选 ] 录像保存时长(单位: 天)每天晚12点自动对过期文件执行清理
|
||||
recordDay: 7
|
||||
# [可选 ] 录像下载合成临时文件保存时长, 不配置默认取值recordDay(单位: 天)每天晚12点自动对过期文件执行清理
|
||||
# recordTempDay: 7
|
||||
# [必选 ] ffmpeg路径
|
||||
ffmpeg: /usr/bin/ffmpeg
|
||||
# [必选 ] ffprobe路径, 一般安装ffmpeg就会自带, 一般跟ffmpeg在同一目录,用于查询文件的信息
|
||||
ffprobe: /usr/bin/ffprobe
|
||||
# [可选 ] 限制 ffmpeg 合并文件使用的线程数,间接限制cpu使用率, 默认2 限制到50%
|
||||
threads: 2
|
||||
|
||||
# MyBatis配置
|
||||
mybatis:
|
||||
typeAliasesPackage: com.fastbee.oss.domain # 搜索指定包别名
|
||||
mapperLocations: classpath*:mapper/**/*Mapper.xml # 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||
configLocation: classpath:mybatis/mybatis-config.xml # 加载全局的配置文件
|
||||
|
||||
swagger-ui:
|
||||
|
||||
# [可选] 日志配置, 一般不需要改
|
||||
logging:
|
||||
file:
|
||||
name: logs/record.log
|
||||
max-history: 30
|
||||
max-size: 10MB
|
||||
total-size-cap: 300MB
|
||||
level:
|
||||
root: WARN
|
||||
com:
|
||||
fastbee:
|
||||
record: info
|
||||
3
fastbee-record/src/main/resources/application.yml
Normal file
3
fastbee-record/src/main/resources/application.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: prod
|
||||
BIN
fastbee-record/src/main/resources/fastbee.online.jks
Normal file
BIN
fastbee-record/src/main/resources/fastbee.online.jks
Normal file
Binary file not shown.
20
fastbee-record/src/main/resources/mybatis/mybatis-config.xml
Normal file
20
fastbee-record/src/main/resources/mybatis/mybatis-config.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE configuration
|
||||
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-config.dtd">
|
||||
<configuration>
|
||||
<!-- 全局参数 -->
|
||||
<settings>
|
||||
<!-- 使全局的映射器启用或禁用缓存 -->
|
||||
<setting name="cacheEnabled" value="true" />
|
||||
<!-- 允许JDBC 支持自动生成主键 -->
|
||||
<setting name="useGeneratedKeys" value="true" />
|
||||
<!-- 配置默认的执行器.SIMPLE就是普通执行器;REUSE执行器会重用预处理语句(prepared statements);BATCH执行器将重用语句并执行批量更新 -->
|
||||
<setting name="defaultExecutorType" value="SIMPLE" />
|
||||
<!-- 指定 MyBatis 所用日志的具体实现 -->
|
||||
<setting name="logImpl" value="SLF4J" />
|
||||
<!-- 使用驼峰命名法转换字段 -->
|
||||
<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> -->
|
||||
</settings>
|
||||
|
||||
</configuration>
|
||||
25
fastbee-record/src/main/resources/static/download.html
Normal file
25
fastbee-record/src/main/resources/static/download.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>下载</title>
|
||||
</head>
|
||||
<body>
|
||||
<a id="download" download></a>
|
||||
<script>
|
||||
(function () {
|
||||
let searchParams = new URLSearchParams(location.search);
|
||||
var download = document.getElementById("download");
|
||||
download.setAttribute("href", searchParams.get("url"))
|
||||
download.click()
|
||||
setTimeout(() => {
|
||||
window.location.href = "about:blank";
|
||||
window.close();
|
||||
}, 200)
|
||||
})();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user