diff --git a/pom.xml b/pom.xml index 40f3710..a9aaf1d 100644 --- a/pom.xml +++ b/pom.xml @@ -80,7 +80,6 @@ ink.wgink login-wechat 1.0-SNAPSHOT - provided diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml new file mode 100644 index 0000000..33a7586 --- /dev/null +++ b/src/main/resources/application-dev.yml @@ -0,0 +1,157 @@ +server: + port: 8081 + ip: 127.0.0.1 + url: http://${server.ip}:8081/xzszwhy + system-title: 日喀则群众艺术馆3.0 + system-sub-title: 公共文化数字云平台 + default-index-page: route/custom/index + servlet: + context-path: /xzszwhy + init: + table: true + menu: true + user: true + +spring: + login-url: /oauth/login + login-failure: /oauth/login?error + login-process: /userlogin + assets-matchers: /assets/** + thymeleaf: + prefix: classpath:/templates/ + suffix: .html + mode: HTML5 + encoding: UTF-8 + cache: false + main: + allow-bean-definition-overriding: true + servlet: + multipart: + max-file-size: 1GB + max-request-size: 1GB + datasource: + druid: + url: jdbc:mysql://127.0.0.1:3306/db_xz_szwhy?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true + db-type: mysql + driver-class-name: com.mysql.cj.jdbc.Driver + username: root + password: root + initial-size: 2 + min-idle: 2 + max-active: 5 + max-wait: 60000 + time-between-eviction-runs-millis: 60000 + min-evictable-idle-time-millis: 300000 + validation-query: SELECT 1 FROM DUAL + test-while-idle: true + test-on-borrow: false + test-on-return: false + pool-prepared-statements: true + max-pool-prepared-statement-per-connection-size: 10 + filter: + commons-log: + connection-logger-name: stat,wall,log4j + stat: + log-slow-sql: true + slow-sql-millis: 2000 + connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 + use-global-data-source-stat: true + +# ???? +sms: + active: true + type: default #custom + default-sms: + account: xd001382 + password: xd001382136 + sign: 【测试系统】 + template: + verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒,若非本人操作,请忽略。' + +mybatis: + config-location: classpath:mybatis/mybatis-config.xml + mapper-locations: classpath*:mybatis/mapper/**/*.xml + +access-control: + role-permission: true + +swagger: + base-package-list: ink.wgink,cn.com.tenlion + +file: + upload-path: /Users/wanggeng/Desktop/UploadFiles/ + image-types: png,jpg,jpeg,gif,blob + video-types: mp4,rmvb + audio-types: mp3,wmv,amr + file-types: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf + max-file-count: 6 + image-output-quality: 0.4 + # ??minIo + use-min-io: false + +# appToken +app-token: + has-department: false + has-role: false + has-position: false + has-group: false + +logging: + # enable-api-log: true + file: + name: /Users/wanggeng/Desktop/UploadFiles/lots/xzszwhy-logs.log + level: + root: error + org.apache.kafka: error + org.springframework.data.mongodb: info + org.springframework.boot.autoconfigure.security.servlet: debug + ink.wgink: debug + + +# 新闻系统-智慧网闸配置 +net-management: + config-path: D:\\net_manager_libs\\ + so-path: D:\\net_manager_libs\\ + +freemarker-template: + nginx-address: http://127.0.0.1:8089/ + +news: + nginxAddress: http://127.0.0.1:8089/ # Nginx地址 + mainServerAddress: # 门户服务器地址 + serverAddress: http://127.0.0.1:8084/news/ # 新闻服务器地址 + + +live: + # 直播服务器IP,用于录像开启关闭使用 + port: 8085 + # 直播服务器地址,用于录像开启关闭使用 + liveIp: 127.0.0.1 + # FFmpeg的路径, 用于生成录像封面, 解析录像时长使用 + ffmpegPath: H:\FFmpeg\ffmpeg-20191016-29dac29-win64-static\bin\ffmpeg + # Nginx路径,用于文件保存的时候使用 + # liveFilePath: H:\Nginx\nginx\ + liveFilePath: G:\DevelopmentSoftware\Nginx\nginx-tenshi\ + # 录像模式 auto 自动 | 手动 manual + recordMode: auto + # Nginx地址|访问录像文件与录像文件预览图使用 + liveAddress: http://192.168.0.115:8085/ + # 录像临界值(Double值范围), 存储空间在该值以下的时候 , 不允许再进行直播计划的发布 , 单位 G + criticalValue: 100.0 + # 录像文件保存格式 .mp4或.flv + saveFileType: .mp4 + # 百度API路径 + baiDuUrl: http://api.map.baidu.com/ + +# 小程序 +open-platform: + wechat: + mini-app: + # 激活状态 + active: true + api-url: https://api.weixin.qq.com + authorize-url: ${open-platform.wechat.mini-app.api-url}/sns/jscode2session + grantType: authorization_code + appKey: wxa5c5246b283713de + appSecret: e5b761f20841f81dd73a6d4aad2f8060 +