You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2020/12/07 08:09:57 UTC
[servicecomb-samples] branch master updated: Upgrade to latest
version and add AK/SK example (#61)
This is an automated email from the ASF dual-hosted git repository.
liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-samples.git
The following commit(s) were added to refs/heads/master by this push:
new e406d84 Upgrade to latest version and add AK/SK example (#61)
e406d84 is described below
commit e406d84479016637ec81af2afda3b3bc9728e411
Author: bao liu <bi...@qq.com>
AuthorDate: Mon Dec 7 16:09:48 2020 +0800
Upgrade to latest version and add AK/SK example (#61)
Upgrade to latest version and add AK/SK example
---
.../file-service/src/main/resources/application.yml | 18 +++++++++++++++++-
.../gateway-service/src/main/resources/application.yml | 15 +++++++++++++++
porter_springboot/pom.xml | 2 +-
.../user-service/src/main/resources/application.yml | 18 +++++++++++++++++-
.../website/src/main/resources/application.yml | 16 ++++++++++++++++
5 files changed, 66 insertions(+), 3 deletions(-)
diff --git a/porter_springboot/file-service/src/main/resources/application.yml b/porter_springboot/file-service/src/main/resources/application.yml
index 7d03d71..10ed318 100644
--- a/porter_springboot/file-service/src/main/resources/application.yml
+++ b/porter_springboot/file-service/src/main/resources/application.yml
@@ -28,9 +28,17 @@ servicecomb:
name: file-service
version: 0.0.1
registry:
+ # Default using local service center
address: http://localhost:30100
+ # address: https://cse.cn-south-1.myhuaweicloud.com
instance:
watch: false
+ config:
+ client:
+ # Default using local config center
+ # serverUri: https://cse.cn-south-1.myhuaweicloud.com
+ serverUri: http://localhost:30113
+ refreshMode: 1
rest:
address: 0.0.0.0:9092 # should be same with server.port to use web container
@@ -47,4 +55,12 @@ servicecomb:
executors:
Provider:
log: servicecomb.samples.executor.groupThreadPool
- inspector: servicecomb.samples.executor.groupThreadPool
\ No newline at end of file
+ inspector: servicecomb.samples.executor.groupThreadPool
+
+# Using Huawei Cloud Service Engine Professional Edition, AK/SK is required
+# credentials:
+# akskEnabled: true
+# accessKey: add your ak/sk from huaweicloud
+# secretKey: add your ak/sk from huaweicloud
+# akskCustomCipher: default
+# project: cn-south-1
\ No newline at end of file
diff --git a/porter_springboot/gateway-service/src/main/resources/application.yml b/porter_springboot/gateway-service/src/main/resources/application.yml
index 5f10ff7..85f64f5 100644
--- a/porter_springboot/gateway-service/src/main/resources/application.yml
+++ b/porter_springboot/gateway-service/src/main/resources/application.yml
@@ -25,9 +25,17 @@ servicecomb:
name: gateway-service
version: 0.0.1
registry:
+ # Default using local service center
address: http://localhost:30100
+ # address: https://cse.cn-south-1.myhuaweicloud.com
instance:
watch: false
+ config:
+ client:
+ # Default using local config center
+ # serverUri: https://cse.cn-south-1.myhuaweicloud.com
+ serverUri: http://localhost:30113
+ refreshMode: 1
rest:
address: 0.0.0.0:9090?sslEnabled=false
@@ -66,6 +74,13 @@ servicecomb:
microserviceName: website
versionRule: 0.0.0+
+# Using Huawei Cloud Service Engine Professional Edition, AK/SK is required
+# credentials:
+# akskEnabled: true
+# accessKey: add your ak/sk from huaweicloud
+# secretKey: add your ak/sk from huaweicloud
+# akskCustomCipher: default
+# project: cn-south-1
# This is web root for windows server, change this path according to where you put your source code
gateway:
diff --git a/porter_springboot/pom.xml b/porter_springboot/pom.xml
index 6c0d98a..d2d6591 100644
--- a/porter_springboot/pom.xml
+++ b/porter_springboot/pom.xml
@@ -27,7 +27,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <servicecomb.version>2.1.2</servicecomb.version>
+ <servicecomb.version>2.1.3</servicecomb.version>
</properties>
<dependencyManagement>
diff --git a/porter_springboot/user-service/src/main/resources/application.yml b/porter_springboot/user-service/src/main/resources/application.yml
index fbc0337..ad95771 100644
--- a/porter_springboot/user-service/src/main/resources/application.yml
+++ b/porter_springboot/user-service/src/main/resources/application.yml
@@ -28,9 +28,17 @@ servicecomb:
name: user-service
version: 0.0.1
registry:
+ # Default using local service center
address: http://localhost:30100
+ # address: https://cse.cn-south-1.myhuaweicloud.com
instance:
watch: false
+ config:
+ client:
+ # Default using local config center
+ # serverUri: https://cse.cn-south-1.myhuaweicloud.com
+ serverUri: http://localhost:30113
+ refreshMode: 1
rest:
address: 0.0.0.0:9093 # should be same with server.port to use web container
@@ -44,4 +52,12 @@ servicecomb:
executors:
Provider:
log: servicecomb.samples.executor.groupThreadPool
- inspector: servicecomb.samples.executor.groupThreadPool
\ No newline at end of file
+ inspector: servicecomb.samples.executor.groupThreadPool
+
+# Using Huawei Cloud Service Engine Professional Edition, AK/SK is required
+# credentials:
+# akskEnabled: true
+# accessKey: add your ak/sk from huaweicloud
+# secretKey: add your ak/sk from huaweicloud
+# akskCustomCipher: default
+# project: cn-south-1
\ No newline at end of file
diff --git a/porter_springboot/website/src/main/resources/application.yml b/porter_springboot/website/src/main/resources/application.yml
index f9228c7..ec74bcb 100644
--- a/porter_springboot/website/src/main/resources/application.yml
+++ b/porter_springboot/website/src/main/resources/application.yml
@@ -9,9 +9,17 @@ servicecomb:
name: website
version: 0.0.1
registry:
+ # Default using local service center
address: http://localhost:30100
+ # address: https://cse.cn-south-1.myhuaweicloud.com
instance:
watch: false
+ config:
+ client:
+ # Default using local config center
+ # serverUri: https://cse.cn-south-1.myhuaweicloud.com
+ serverUri: http://localhost:30113
+ refreshMode: 1
rest:
address: 0.0.0.0:9091 # should be same with server.port to use web container
@@ -22,3 +30,11 @@ servicecomb:
metrics:
publisher.defaultLog:
enabled: false
+
+# Using Huawei Cloud Service Engine Professional Edition, AK/SK is required
+# credentials:
+# akskEnabled: true
+# accessKey: add your ak/sk from huaweicloud
+# secretKey: add your ak/sk from huaweicloud
+# akskCustomCipher: default
+# project: cn-south-1
\ No newline at end of file