diff --git a/schisandra-cloud-storage-gateway/src/main/resources/application.yml b/schisandra-cloud-storage-gateway/src/main/resources/application.yml index 157ed4b..384c94a 100644 --- a/schisandra-cloud-storage-gateway/src/main/resources/application.yml +++ b/schisandra-cloud-storage-gateway/src/main/resources/application.yml @@ -1,70 +1,76 @@ -server: - port: 5050 -spring: - cloud: - gateway: - routes: - - id: oss - uri: lb://schisandra-cloud-storage-oss - predicates: - - Path=/oss/** - filters: - - StripPrefix=1 - - id: auth - uri: lb://schisandra-cloud-storage-auth - predicates: - - Path=/auth/** - filters: - - StripPrefix=1 - - id: system - uri: lb://schisandra-cloud-storage-system - predicates: - - Path=/system/** - filters: - - StripPrefix=1 - - id: wechat - uri: lb://schisandra-cloud-storage-wechat - predicates: - - Path=/wechat/** - filters: - - StripPrefix=1 - # redis配置 - redis: - # Redis数据库索引(默认为0) - database: 1 - # Redis服务器地址 - host: 1.95.0.111 - # Redis服务器连接端口 - port: 6379 - # Redis服务器连接密码(默认为空) - password: LDQ20020618xxx - # 连接超时时间 - timeout: 2s - lettuce: - pool: - # 连接池最大连接数 - max-active: 200 - # 连接池最大阻塞等待时间(使用负值表示没有限制) - max-wait: -1ms - # 连接池中的最大空闲连接 - max-idle: 10 - # 连接池中的最小空闲连接 - min-idle: 0 -############## Sa-Token 配置 (文档: https://sa-token.cc) ############## -sa-token: - # token 名称(同时也是 cookie 名称) - token-name: token - # token 有效期(单位:秒) 默认30天,-1 代表永久有效 - timeout: 2592000 - # token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结 - active-timeout: -1 - # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录) - is-concurrent: true - # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token) - is-share: true - # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik) - token-style: random-32 - # 是否输出操作日志 - is-log: false - token-prefix: schisandra +server: + port: 5050 +spring: + cloud: + gateway: + routes: + - id: oss + uri: lb://schisandra-cloud-storage-oss + predicates: + - Path=/oss/** + filters: + - StripPrefix=1 + - id: auth + uri: lb://schisandra-cloud-storage-auth + predicates: + - Path=/auth/** + filters: + - StripPrefix=1 + - id: system + uri: lb://schisandra-cloud-storage-system + predicates: + - Path=/system/** + filters: + - StripPrefix=1 + - id: wechat + uri: lb://schisandra-cloud-storage-wechat + predicates: + - Path=/wechat/** + filters: + - StripPrefix=1 + - id: share + uri: lb://schisandra-cloud-storage-share + predicates: + - Path=/share/** + filters: + - StripPrefix=1 + # redis配置 + redis: + # Redis数据库索引(默认为0) + database: 1 + # Redis服务器地址 + host: 1.95.0.111 + # Redis服务器连接端口 + port: 6379 + # Redis服务器连接密码(默认为空) + password: LDQ20020618xxx + # 连接超时时间 + timeout: 2s + lettuce: + pool: + # 连接池最大连接数 + max-active: 200 + # 连接池最大阻塞等待时间(使用负值表示没有限制) + max-wait: -1ms + # 连接池中的最大空闲连接 + max-idle: 10 + # 连接池中的最小空闲连接 + min-idle: 0 +############## Sa-Token 配置 (文档: https://sa-token.cc) ############## +sa-token: + # token 名称(同时也是 cookie 名称) + token-name: token + # token 有效期(单位:秒) 默认30天,-1 代表永久有效 + timeout: 2592000 + # token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结 + active-timeout: -1 + # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录) + is-concurrent: true + # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token) + is-share: true + # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik) + token-style: random-32 + # 是否输出操作日志 + is-log: false + token-prefix: schisandra is-print: false \ No newline at end of file