server: address: "8919" serverRoot: "resource/public" dumpRouterMap: false routeOverWrite: true openapiPath: "/api.json" swaggerPath: "/swagger" NameToUriType: 3 maxHeaderBytes: "20KB" clientMaxBodySize: "50MB" # Logging配置 logPath: "resource/log/server" # 日志文件存储目录路径,建议使用绝对路径。默认为空,表示关闭 logStdout: true # 日志是否输出到终端。默认为true errorStack: true # 当Server捕获到异常时是否记录堆栈信息到日志中。默认为true errorLogEnabled: true # 是否记录异常日志信息到日志中。默认为true errorLogPattern: "error-{Ymd}.log" # 异常错误日志文件格式。默认为"error-{Ymd}.log" accessLogEnabled: true # 是否记录访问日志。默认为false accessLogPattern: "access-{Ymd}.log" # 访问日志文件格式。默认为"access-{Ymd}.log" logger: path: "resource/log/run" file: "{Y-m-d}.log" level: "all" stdout: true # Database. database: logger: level: "all" stdout: true Path: "resource/log/sql" default: link: "mysql:zmkg:NwSfMLLHkNMrkMzy@tcp(192.168.1.177:9996)/zmkg?charset=utf8mb4&parseTime=true&loc=Local&multiStatements=true" # link: "mysql:root:CQyj20200808!@tcp(www.yj-3d.com:3386)/zs_zm?charset=utf8mb4&parseTime=true&loc=Local&multiStatements=true" # link: "mysql:root:CQyj20200808!@tcp(122.9.140.40:3386)/zs_zm?charset=utf8mb4&parseTime=true&loc=Local&multiStatements=true" # link: "mysql:zmkg:RBCE83eRH6YCL8PL@tcp(119.45.210.154:28002)/zmkg?charset=utf8mb4&parseTime=true&loc=Local&multiStatements=true" debug: true charset: "utf8mb4" #数据库编码 dryRun: false #空跑 maxIdle: 10 #连接池最大闲置的连接数 maxOpen: 10 #连接池最大打开的连接数 maxLifetime: "30s" #(单位秒)连接对象可重复使用的时间长度 sqlite: link: "sqlite:D:/Cory/go/中煤/zmkg-back/resource/data/3m精度.clt" gfToken: cacheKey: "gfToken:" timeOut: 259200 maxRefresh: 129600 multiLogin: true encryptKey: "49c54195e750b04e74a8429b17896586" cacheModel: "redis" excludePaths: - "/api/v1/system/login" - "/zm/api/v1/system/uEditor/action" - "/zm/api/v1/system/device/websocketReq" - "/zm/api/v1/system/busConstructionUser/complaintBoxAdd" - "/zm/api/v1/system/bigUpload/upload" - "/zm/api/v1/system/workStatus/getProgress" - "/zm/api/v1/system/constructionDetails/gannt" - "/zm/api/v1/system/workSchedule/addPlan" - "/zm/api/v1/system/workSchedule/check" - "/zm/api/v1/system/workSchedule/maxTime" - "/zm/api/v1/system/workSchedule/lastTime" # Redis 配置示例 redis: # 单实例配置 default: address: localhost:6379 db: 1 pass: zmkg2023 idleTimeout: "60s" #连接最大空闲时间,使用时间字符串例如30s/1m/1d maxConnLifetime: "90s" #连接最长存活时间,使用时间字符串例如30s/1m/1d waitTimeout: "60s" #等待连接池连接的超时时间,使用时间字符串例如30s/1m/1d dialTimeout: "30s" #TCP连接的超时时间,使用时间字符串例如30s/1m/1d readTimeout: "30s" #TCP的Read操作超时时间,使用时间字符串例如30s/1m/1d writeTimeout: "30s" #TCP的Write操作超时时间,使用时间字符串例如30s/1m/1d maxActive: 100 helmetRedis: address: 119.45.210.154:28004 db: 1 pass: zmkg2023 idleTimeout: "60s" #连接最大空闲时间,使用时间字符串例如30s/1m/1d maxConnLifetime: "90s" #连接最长存活时间,使用时间字符串例如30s/1m/1d waitTimeout: "60s" #等待连接池连接的超时时间,使用时间字符串例如30s/1m/1d dialTimeout: "30s" #TCP连接的超时时间,使用时间字符串例如30s/1m/1d readTimeout: "30s" #TCP的Read操作超时时间,使用时间字符串例如30s/1m/1d writeTimeout: "30s" #TCP的Write操作超时时间,使用时间字符串例如30s/1m/1d maxActive: 100 system: notCheckAuthAdminIds: [1] #无需验证后台权限的用户id dataDir: "./resource/data" cache: model: "redis" #缓存模式 memory OR redis prefix: "gFastV3Cache:" #缓存前缀 #casbin配置 casbin: modelFile: "./resource/casbin/rbac_model.conf" policyFile: "./resource/casbin/rbac_policy.csv" # 上传配置 upload: default: 0 # 默认上传至本地 tencentCOS: upPath: "/gfast/" rawUrl: "https://xxxxxx.ap-xxxxx.myqcloud.com" secretID: "xxxxxxxxxx" secretKey: "xxxxxxxxxx" # 代码生成配置 gen: author: "gfast" moduleName: "system" apiName: "api/v1" packageName: "internal/app/system" goModName: "github.com/tiger1103/gfast/v3" autoRemovePre: true #是否自动删除表前缀 tablePrefix: "table_,qxkj_" #表前缀 templatePath: "./resource/template/vm" #代码生成模板路径 frontDir: "../zmkg-ui" #前端路径 ## 代码生成配置 #gen: # author: "gfast" # moduleName: "wxApplet" # apiName: "api/wxApplet" # packageName: "internal/app/wxApplet" # goModName: "github.com/tiger1103/gfast/v3" # autoRemovePre: true #是否自动删除表前缀 # tablePrefix: "table_,qxkj_" #表前缀 # templatePath: "./resource/template/vm" #代码生成模板路径 # frontDir: "../正版前端/zmkg-ui" #前端路径 wx: crt: "" key: "" appId: "wxb31ec6ee58db5d17" appSecret: "9603be1c81b791d0288ced63cc40861a" #百度云ocr识别+人脸检测、对比 baiDuYun: clientId: "zSB7KdLgY7a1tIEx3eTy65TE" clientSecret: "5nabjclW5BWGV8UwEueDgBDmOveRVkmD" ys: dev: true #LiveGBS: # safety: # #ip # ip: "119.45.210.154" # #api 请求路径 # api: "http://119.45.210.154:10000/" # #acc 账号 # acc: "admin" # #pas 密码 # pas: "zmkg@2023" # #sms 固定sms # sms: "sms/34020000002020000001/" # redis: # address: "119.45.210.154:6379" # password: "zmkg2023" ## redis: ## address: "43.136.86.137:26379" ## password: "livegbs@2019" # mqtt mqtt: #host= jl.yj-3d.com # host: 192.168.1.177 host: nas.cctegcqet.com port: 1883 username: cory18600000000 password: cory18600000000 clientid: cory18600000000 topics: sys/product/+/status,thing/product/+/requests,thing/product/+/osd,thing/product/+/state,thing/product/+/services_reply,thing/product/+/events # 斯巴达算法 spartaApi: Url: "http://119.3.204.120:8040" key: "test" secret: "115fcb08fa6742a1b086d9bb80a6ad59" # 由于斯巴达算法需要线上地址资源,所以需要把本地的路径转成线上(外网)能访问到的静态资源【D:/Cory/go/中煤/zmkg-back/resource/public/upload_file/2023-11-30/helmet1701328146812_127.png】----》【http://nas.cctegcqet.com:8899/file/upload_file/2023-11-30/helmet1701328146812_127.png】 prefix: "http://nas.cctegcqet.com:8899" # 安全帽识别 ys7: key: "f01490bd5d5241b7809d8fc5fe84f7f8" secret: "d468f270699de855fd85fe7fd6f9595f" # 无人机(java) uav: #生成航线 hostOne: "http://nas.cctegcqet.com:8899/airlineserver/" # 由于小程序和pc不在同一个服务器,导致安全考试批量下载需要将pdf的文件copy到临时压缩包里面然后提供给前端下载,所以需要此字段实现网络资源下载到本地,然后将本地临时资源文件放到临时压缩文件中 cory: "https://www.yj-3d.com:8919"