This is an automated email from the ASF dual-hosted git repository.
jianbin pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/incubator-seata.git
The following commit(s) were added to refs/heads/2.x by this push:
new 005ac0b1eb optimize: add the default console and security config on
application.examle.yml (#6732)
005ac0b1eb is described below
commit 005ac0b1ebd11b246166e796db88124a1c994cc1
Author: imashimaro <[email protected]>
AuthorDate: Fri Aug 9 23:10:53 2024 +0800
optimize: add the default console and security config on
application.examle.yml (#6732)
---
changes/en-us/2.x.md | 2 ++
changes/zh-cn/2.x.md | 3 ++-
server/src/main/resources/application.example.yml | 10 +++++++++-
server/src/main/resources/application.raft.example.yml | 10 +++++++++-
4 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 2e6f4907f8..985f451d24 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 d88e714cae..4ffd328d07 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 b14414b6cd..bcbb5d4bd0 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 8b313be350..9840a60a8f 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]