Skip to content

Commit

Permalink
chore(module): do forward
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice52 committed Oct 13, 2023
1 parent 08deb43 commit e76b3f4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
15 changes: 9 additions & 6 deletions dist/gateway/01.kong.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

## deploy

## config
## config: `Route >> Service >> Upstream >> Target`

1. service:
2. route
3. upstream
4. target
5. consumer
1. route: 与服务关联, 多对一关系(location)
2. service: 上游服务的抽象, 通过 Kong 匹配到相应的请求要转发的地方(server)
3. upstream: 上游服务, 实现负载
4. target: upstream 负载下的每个节点(物理服务 | ip + port 的抽象)
5. consumer: 代表用户或应用(核心原则是可以为其添加插件)
6. plugin

## plugins 开发
Expand All @@ -24,3 +24,6 @@
## reference

1. https://zhuanlan.zhihu.com/p/577842078
2. https://github.com/micro-services-roadmap/roadmap/issues/5
3. https://blog.csdn.net/lgxzzz/article/details/121683302
4. https://cloud.tencent.com/developer/article/2301049
2 changes: 1 addition & 1 deletion nginx
2 changes: 1 addition & 1 deletion oauth
Submodule oauth updated 55 files
+15 −3 .github/workflows/oauth-java-build.yml
+2 −0 .gitignore
+131 −0 awesome/jwt-rsa.md
+31 −204 awesome/jwt-token.md
+186 −0 awesome/jwt-wso2is.md
+116 −0 awesome/key-format.md
+ static/image/oauth/jwt-hs256.png
+ static/image/oauth/jwt-rsa.png
+42 −0 tutorials/java-tutorials/.gitignore
+0 −0 tutorials/java-tutorials/.gitkeep
+95 −0 tutorials/java-tutorials/boot-security/build.gradle
+24 −0 tutorials/java-tutorials/boot-security/common-api/build.gradle
+16 −0 tutorials/java-tutorials/boot-security/common-api/src/main/kotlin/io/github/alice52/Util.kt
+28 −0 tutorials/java-tutorials/boot-security/common-api/src/main/kotlin/io/github/alice52/configuartion.kt
+19 −0 tutorials/java-tutorials/boot-security/gradle.properties
+ tutorials/java-tutorials/boot-security/gradle/wrapper/gradle-wrapper.jar
+5 −0 tutorials/java-tutorials/boot-security/gradle/wrapper/gradle-wrapper.properties
+234 −0 tutorials/java-tutorials/boot-security/gradlew
+89 −0 tutorials/java-tutorials/boot-security/gradlew.bat
+10 −0 tutorials/java-tutorials/boot-security/readme.md
+5 −0 tutorials/java-tutorials/boot-security/security-aacs/build.gradle
+3 −0 tutorials/java-tutorials/boot-security/security-aacs/readme.md
+15 −0 tutorials/java-tutorials/boot-security/security-app/build.gradle
+6 −0 tutorials/java-tutorials/boot-security/security-app/readme.md
+6 −0 tutorials/java-tutorials/boot-security/security-https/build.gradle
+132 −0 tutorials/java-tutorials/boot-security/security-https/readme.md
+13 −0 tutorials/java-tutorials/boot-security/security-https/src/main/kotlin/io/github/alice52/HttpsApplication.kt
+37 −0 ...java-tutorials/boot-security/security-https/src/main/kotlin/io/github/alice52/config/HttpsConfigUndertow.kt
+15 −0 ...java-tutorials/boot-security/security-https/src/main/kotlin/io/github/alice52/controller/HttpsController.kt
+9 −0 tutorials/java-tutorials/boot-security/security-https/src/main/resources/application-dev.yml
+18 −0 tutorials/java-tutorials/boot-security/security-https/src/main/resources/application.yml
+ tutorials/java-tutorials/boot-security/security-https/src/main/resources/httpsKey.p12
+13 −0 tutorials/java-tutorials/boot-security/security-jwt/build.gradle
+1 −0 tutorials/java-tutorials/boot-security/security-jwt/readme.md
+13 −0 ...ials/java-tutorials/boot-security/security-jwt/src/main/kotlin/io/github/alice52/security/JwtApplication.kt
+71 −0 ...tutorials/boot-security/security-jwt/src/main/kotlin/io/github/alice52/security/controller/JwkController.kt
+23 −0 ...tutorials/boot-security/security-jwt/src/main/kotlin/io/github/alice52/security/controller/JwtController.kt
+17 −0 tutorials/java-tutorials/boot-security/security-jwt/src/main/kotlin/io/github/alice52/security/model/Jwk.kt
+12 −0 ...ava-tutorials/boot-security/security-jwt/src/main/kotlin/io/github/alice52/security/raw/JjwtGenerate4Rsa.kt
+59 −0 ...-tutorials/boot-security/security-jwt/src/main/kotlin/io/github/alice52/security/raw/JjwtGenerate4Sha256.kt
+121 −0 ...als/java-tutorials/boot-security/security-jwt/src/main/kotlin/io/github/alice52/security/raw/JwtGenerate.kt
+38 −0 ...rials/java-tutorials/boot-security/security-jwt/src/main/kotlin/io/github/alice52/security/util/FileUtil.kt
+33 −0 ...tutorials/boot-security/security-jwt/src/main/kotlin/io/github/alice52/security/util/RsaCertGenerateUtil.kt
+35 −0 ...als/java-tutorials/boot-security/security-jwt/src/main/kotlin/io/github/alice52/security/util/RsaJwtUtil.kt
+69 −0 ...ls/java-tutorials/boot-security/security-jwt/src/main/kotlin/io/github/alice52/security/util/RsaJwtUtilA.kt
+118 −0 tutorials/java-tutorials/boot-security/security-jwt/src/main/kotlin/io/github/alice52/security/util/RsaUtil.kt
+6 −0 tutorials/java-tutorials/boot-security/security-jwt/src/main/resources/application.yml
+ tutorials/java-tutorials/boot-security/security-jwt/src/main/resources/rsa.pri
+28 −0 tutorials/java-tutorials/boot-security/security-jwt/src/main/resources/rsa.pri.pem
+ tutorials/java-tutorials/boot-security/security-jwt/src/main/resources/rsa.pub
+9 −0 tutorials/java-tutorials/boot-security/security-jwt/src/main/resources/rsa.pub.pem
+33 −0 ...ava-tutorials/boot-security/security-jwt/src/test/kotlin/io/github/alice52/security/raw/JjwtGenerateTest.kt
+33 −0 ...ials/java-tutorials/boot-security/security-jwt/src/test/kotlin/io/github/alice52/security/raw/RawJwtTest.kt
+39 −0 ...als/java-tutorials/boot-security/security-jwt/src/test/kotlin/io/github/alice52/security/raw/RsaUtilTest.kt
+8 −0 tutorials/java-tutorials/boot-security/settings.gradle
2 changes: 1 addition & 1 deletion programming
Submodule programming updated 1 files
+10 −7 dpp/dpp.md
2 changes: 1 addition & 1 deletion rpc/grpc
Submodule grpc updated 30 files
+4 −4 .github/workflows/grpc-java-build.yml
+1 −1 .gitignore
+5 −0 java-tutorials/boot-grpc/boot-raw-grpc/build.gradle
+18 −0 java-tutorials/boot-grpc/boot-raw-grpc/grpc-client/build.gradle
+7 −0 java-tutorials/boot-grpc/boot-raw-grpc/grpc-client/src/main/java/io/github/alice52/Main.java
+4 −1 java-tutorials/boot-grpc/boot-raw-grpc/grpc-common/build.gradle
+0 −0 java-tutorials/boot-grpc/boot-raw-grpc/grpc-common/src/main/kotlin/io/github/alice52/Util.kt
+0 −0 java-tutorials/boot-grpc/boot-raw-grpc/grpc-common/src/main/resources/proto/helloworld.proto
+5 −0 java-tutorials/boot-grpc/boot-starter-grpc/build.gradle
+1 −6 java-tutorials/boot-grpc/boot-starter-grpc/grpc-client/build.gradle
+0 −0 ...utorials/boot-grpc/boot-starter-grpc/grpc-client/src/main/kotlin/io/github/alice52/GrpcClientApplication.kt
+0 −0 ...t-grpc/boot-starter-grpc/grpc-client/src/main/kotlin/io/github/alice52/configuration/ClientConfiguration.kt
+0 −0 ...oot-grpc/boot-starter-grpc/grpc-client/src/main/kotlin/io/github/alice52/controller/GrpcClientController.kt
+0 −0 ...boot-grpc/boot-starter-grpc/grpc-client/src/main/kotlin/io/github/alice52/interceptor/LogGrpcInterceptor.kt
+0 −0 ...ials/boot-grpc/boot-starter-grpc/grpc-client/src/main/kotlin/io/github/alice52/service/GrpcClientService.kt
+0 −0 java-tutorials/boot-grpc/boot-starter-grpc/grpc-client/src/main/resources/application.yml
+55 −0 java-tutorials/boot-grpc/boot-starter-grpc/grpc-common/build.gradle
+11 −0 java-tutorials/boot-grpc/boot-starter-grpc/grpc-common/src/main/kotlin/io/github/alice52/Util.kt
+21 −0 java-tutorials/boot-grpc/boot-starter-grpc/grpc-common/src/main/resources/proto/helloworld.proto
+1 −6 java-tutorials/boot-grpc/boot-starter-grpc/grpc-server/build.gradle
+0 −0 ...utorials/boot-grpc/boot-starter-grpc/grpc-server/src/main/kotlin/io/github/alice52/GrpcServerApplication.kt
+0 −0 ...t-grpc/boot-starter-grpc/grpc-server/src/main/kotlin/io/github/alice52/configuration/ServerConfiguration.kt
+0 −0 ...boot-grpc/boot-starter-grpc/grpc-server/src/main/kotlin/io/github/alice52/interceptor/LogGrpcInterceptor.kt
+0 −0 ...ials/boot-grpc/boot-starter-grpc/grpc-server/src/main/kotlin/io/github/alice52/service/GrpcClientService.kt
+0 −0 java-tutorials/boot-grpc/boot-starter-grpc/grpc-server/src/main/resources/application.yml
+0 −0 java-tutorials/boot-grpc/boot-starter-grpc/readme.md
+23 −21 java-tutorials/boot-grpc/build.gradle
+10 −2 java-tutorials/boot-grpc/gradle.properties
+0 −0 java-tutorials/boot-grpc/gradlew
+17 −4 java-tutorials/boot-grpc/settings.gradle

0 comments on commit e76b3f4

Please sign in to comment.