diff --git a/README_en.md b/README_en.md new file mode 100644 index 0000000000000000000000000000000000000000..3f4ed47978c65daf9e33d6ea4e8cf050863fcf82 --- /dev/null +++ b/README_en.md @@ -0,0 +1,32 @@ +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) + +## Website-gateway + +Website-gatewayUsed to encapsulateEdgeGalleryFront desk services of other modules,There are two main purposes: +- 1 Implement the isolation of the background interface,The client's access request passeswebsite-gatewayofzuulThe gateway forwards to the background service +- 2 Client service for single sign-on + +## How to start + +- 1 Compile the foreground code,willdistCopy the contents of the directory to/resource/staticin + +- 2 Configure single sign-on: +```yaml +security: + oauth2: + sso: + login-path: /login + client: + client-id: ${CLIENT_ID:} + client-secret: ${CLIENT_SECRET:} + user-authorization-uri: ${AUTH_SERVER_ADDRESS:}/oauth/authorize + access-token-uri: ${AUTH_SERVER_ADDRESS:}/oauth/token + resource: + jwt: + key-uri: ${AUTH_SERVER_ADDRESS:}/oauth/token_key +``` + - CLIENT_ID: Waiting to start the foreground serviceID + - CLIENT_SECRET: The key of the foreground service to be started,These two parameters are used to register touser-mgmtservice,用于单点登录的service注册 + - AUTH_SERVER_ADDRESS: user-mgmtServicesURL + +CLIENT_ID with CLIENT_SECRET 需要withuser-mgmtConfigured in the serviceoauth2.clients.clientId with oauth2.clients.clientSecretsame,Otherwise, an error will be reported when starting up