Browse Source

代码更新

master
管理员 2 years ago
parent
commit
18dd05cac3
  1. 37
      nladmin-system/nlsso-server/src/main/resources/config/application-dev.yml
  2. 6
      nladmin-system/nlsso-server/src/main/resources/logback-spring.xml

37
nladmin-system/nlsso-server/src/main/resources/config/application-dev.yml

@ -15,7 +15,7 @@ spring:
# url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.81.252}:${DB_PORT:3306}/${DB_NAME:nl-sso-server}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true # url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.81.252}:${DB_PORT:3306}/${DB_NAME:nl-sso-server}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true
url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:nl_platform}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:nl_platform}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true
username: ${DB_USER:root} username: ${DB_USER:root}
password: ${DB_PWD:942464Yy} password: ${DB_PWD:root}
# password: ${DB_PWD:12356} # password: ${DB_PWD:12356}
# 初始连接数 # 初始连接数
initial-size: 5 initial-size: 5
@ -61,11 +61,11 @@ spring:
redis: redis:
#数据库索引 #数据库索引
database: ${REDIS_DB:2} database: ${REDIS_DB:2}
host: 47.96.133.178 host: 127.0.0.1
# Redis服务器连接端口 # Redis服务器连接端口
port: 6479 port: 6379
# Redis服务器连接密码(默认为空) # Redis服务器连接密码(默认为空)
password: 942464Yy # password: 942464Yy
redisson: redisson:
config: | config: |
threads: 4 threads: 4
@ -73,8 +73,7 @@ spring:
singleServerConfig: singleServerConfig:
connectionMinimumIdleSize: 8 connectionMinimumIdleSize: 8
connectionPoolSize: 8 connectionPoolSize: 8
address: redis://47.96.133.178:6479 address: redis://127.0.0.1:6379
password: 942464Yy
idleConnectionTimeout: 10000 idleConnectionTimeout: 10000
timeout: 3000 timeout: 3000
@ -219,7 +218,7 @@ sa-token:
is-log: false is-log: false
jwt-secret-key: opsjajisdnnca0sdkksdfaaasdfwwq jwt-secret-key: opsjajisdnnca0sdkksdfaaasdfwwq
# token 前缀 # token 前缀
token-prefix: token-prefix: Bearer
cookie: cookie:
# 配置 Cookie 作用域 # 配置 Cookie 作用域
domain: domain:
@ -245,15 +244,27 @@ sa-token:
# Redis数据库索引(默认为0) # Redis数据库索引(默认为0)
database: 2 database: 2
# Redis服务器地址 # Redis服务器地址
host: 47.96.133.178 host: 127.0.0.1
# Redis服务器连接端口 # Redis服务器连接端口
port: 6479 port: 6379
# Redis服务器连接密码(默认为空) # Redis服务器连接密码(默认为空)
password: 942464Yy
# 连接超时时间 # 连接超时时间
timeout: 10s timeout: 10s
loki: jwt:
url: http://localhost:3100/loki/api/v1 header: Authorization
systemName: acs # 令牌前缀
token-start-with: Bearer
# 必须使用最少88位的Base64对该令牌进行编码
base64-secret: ZmQ0ZGI5NjQ0MDQwY2I4MjMxY2Y3ZmI3MjdhN2ZmMjNhODViOTg1ZGE0NTBjMGM4NDA5NzYxMjdjOWMwYWRmZTBlZjlhNGY3ZTg4Y2U3YTE1ODVkZDU5Y2Y3OGYwZWE1NzUzNWQ2YjFjZDc0NGMxZWU2MmQ3MjY1NzJmNTE0MzI=
# 令牌过期时间 此处单位/毫秒 ,默认2小时,可在此网站生成 https://www.convertworld.com/zh-hans/time/milliseconds.html
token-validity-in-seconds: 7200000
# 在线用户key
online-key: online-token-
# 验证码
code-key: code-key-
# token 续期检查时间范围(默认30分钟,单位默认毫秒),在token即将过期的一段时间内用户操作了,则给用户的token续期
detect: 1800000
# 续期时间范围,默认 1小时,这里单位毫秒
renew: 3600000

6
nladmin-system/nlsso-server/src/main/resources/logback-spring.xml

@ -71,7 +71,7 @@ https://juejin.cn/post/6844903775631572999
<sleepTime>250</sleepTime> <!-- optional (in ms, default 250) --> <sleepTime>250</sleepTime> <!-- optional (in ms, default 250) -->
<rawJsonMessage>false</rawJsonMessage> <!-- optional (default false) --> <rawJsonMessage>false</rawJsonMessage> <!-- optional (default false) -->
<includeMdc>false</includeMdc> <!-- optional (default false) --> <includeMdc>false</includeMdc> <!-- optional (default false) -->
<maxMessageSize>5</maxMessageSize> <!-- optional (default -1 --> <maxMessageSize>20000</maxMessageSize> <!-- optional (default -1 -->
<!-- <authentication class="com.internetitem.logback.elasticsearch.config.BasicAuthentication" /> &lt;!&ndash; optional &ndash;&gt;--> <!-- <authentication class="com.internetitem.logback.elasticsearch.config.BasicAuthentication" /> &lt;!&ndash; optional &ndash;&gt;-->
<properties> <properties>
<property> <property>
@ -115,7 +115,7 @@ https://juejin.cn/post/6844903775631572999
<appender-ref ref="CONSOLE"/> <appender-ref ref="CONSOLE"/>
<appender-ref ref="plumelog" /> <appender-ref ref="plumelog" />
</root> </root>
<logger name="org.springframework" level="ERROR" additivity="false"> <!--<logger name="org.springframework" level="ERROR" additivity="false">
<appender-ref ref="CONSOLE"/> <appender-ref ref="CONSOLE"/>
</logger> </logger>
<logger name="org.mybatis" level="ERROR" additivity="false"> <logger name="org.mybatis" level="ERROR" additivity="false">
@ -162,7 +162,7 @@ https://juejin.cn/post/6844903775631572999
</logger> </logger>
<logger name="nl.basjes" level="ERROR" additivity="false"> <logger name="nl.basjes" level="ERROR" additivity="false">
<appender-ref ref="CONSOLE"/> <appender-ref ref="CONSOLE"/>
</logger> </logger>-->
</springProfile> </springProfile>

Loading…
Cancel
Save