diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md index 2e6f4907f87..985f451d24a 100644 --- a/changes/en-us/2.x.md +++ b/changes/en-us/2.x.md @@ -38,6 +38,7 @@ Add changes here for all PR submitted to the 2.x branch. - [[#6687](https://github.com/apache/incubator-seata/pull/6687)] delete static code built on the frontend - [[#6700](https://github.com/apache/incubator-seata/pull/6700)] remove sdk version checking - [[#6727](https://github.com/apache/incubator-seata/pull/6727)] deserialize performance optimize +- [[#6732](https://github.com/apache/incubator-seata/pull/6732)] add the default console and security config on application.example.yml and application.raft.example.yml ### refactor: @@ -73,6 +74,7 @@ Thanks to these contributors for their code commits. Please report an unintended - [GoodBoyCoder](https://github.com/GoodBoyCoder) - [liuqiufeng](https://github.com/liuqiufeng) - [caohdgege](https://github.com/caohdgege) +- [imashimaro](https://github.com/hmj776521114) Also, we receive many valuable issues, questions and advices from our community. Thanks for you all. diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md index d88e714cae7..4ffd328d072 100644 --- a/changes/zh-cn/2.x.md +++ b/changes/zh-cn/2.x.md @@ -38,6 +38,7 @@ - [[#6687](https://github.com/apache/incubator-seata/pull/6687)] 删除前端构建的静态代码 - [[#6700](https://github.com/apache/incubator-seata/pull/6700)] 去掉sdk版本检查 - [[#6727](https://github.com/apache/incubator-seata/pull/6727)] 反序列化性能优化 +- [[#6732](https://github.com/apache/incubator-seata/pull/6732)] 为application.example.yml与application.raft.example.yml添加默认安全配置 ### refactor: @@ -77,7 +78,7 @@ - [GoodBoyCoder](https://github.com/GoodBoyCoder) - [liuqiufeng](https://github.com/liuqiufeng) - [caohdgege](https://github.com/caohdgege) - +- [imashimaro](https://github.com/hmj776521114) 同时,我们收到了社区反馈的很多有价值的issue和建议,非常感谢大家。 diff --git a/server/src/main/resources/application.example.yml b/server/src/main/resources/application.example.yml index b14414b6cd9..bcbb5d4bd06 100644 --- a/server/src/main/resources/application.example.yml +++ b/server/src/main/resources/application.example.yml @@ -32,7 +32,10 @@ logging: kafka-appender: bootstrap-servers: 127.0.0.1:9092 topic: logback_to_logstash - +console: + user: + username: seata + password: seata seata: config: # support: nacos 、 consul 、 apollo 、 zk 、 etcd3 @@ -215,3 +218,8 @@ seata: boss-thread-prefix: NettyBoss worker-thread-prefix: NettyServerNIOWorker boss-thread-size: 1 + security: + secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017 + tokenValidityInMilliseconds: 1800000 + ignore: + urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.jpeg,/**/*.ico,/api/v1/auth/login,/version.json,/health,/error diff --git a/server/src/main/resources/application.raft.example.yml b/server/src/main/resources/application.raft.example.yml index 8b313be3500..9840a60a8f7 100644 --- a/server/src/main/resources/application.raft.example.yml +++ b/server/src/main/resources/application.raft.example.yml @@ -32,7 +32,10 @@ logging: kafka-appender: bootstrap-servers: 127.0.0.1:9092 topic: logback_to_logstash - +console: + user: + username: seata + password: seata seata: config: # support: nacos 、 consul 、 apollo 、 zk 、 etcd3 @@ -135,3 +138,8 @@ seata: boss-thread-prefix: NettyBoss worker-thread-prefix: NettyServerNIOWorker boss-thread-size: 1 + security: + secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017 + tokenValidityInMilliseconds: 1800000 + ignore: + urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.jpeg,/**/*.ico,/api/v1/auth/login,/version.json,/health,/error