You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "iwangjie (via GitHub)" <gi...@apache.org> on 2023/02/04 12:09:07 UTC

[GitHub] [shenyu] iwangjie commented on issue #4349: [Question] How to deploy clusters under self-development

iwangjie commented on issue #4349:
URL: https://github.com/apache/shenyu/issues/4349#issuecomment-1416735912

   Custom deployment of the Shenyu Gateway is very simple, as the official documentation states
   
   1. Start by creating an empty springboot project, either by referring to shenyu-bootstrap or by creating it on [ spring's official website ](https://spring.io/quickstart ) .
   
   引入如下jar包:
   ```xml
   <dependencies>
       <dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-webflux</artifactId>
           <version>2.2.2.RELEASE</version>
       </dependency>
       <dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-actuator</artifactId>
           <version>2.2.2.RELEASE</version>
       </dependency>
       <dependency>
           <groupId>org.apache.shenyu</groupId>
           <artifactId>shenyu-spring-boot-starter-gateway</artifactId>
           <version>${current.version}</version>
       </dependency>
       <dependency>
           <groupId>org.apache.shenyu</groupId>
           <artifactId>shenyu-spring-boot-starter-sync-data-websocket</artifactId>
           <version>${current.version}</version>
       </dependency>
   </dependencies>
   ```
   
   2. Add the following configuration to your `application.yaml` file
   
   ```yaml
   spring:
     main:
       allow-bean-definition-overriding: true
   management:
     health:
       defaults:
         enabled: false
   shenyu:
     sync:
       websocket:
         urls: ws://localhost:9095/websocket  //设置成你的 shenyu-admin 地址
   
   ```
   Please refer to specific information:
   https://shenyu.apache.org/zh/docs/deployment/deployment-custom/
   
   Please refer to specific information:
   https://shenyu.apache.org/zh/docs/deployment/deployment-custom/
   
   You can use NGINX to build your cluster directly (Simple) , or you can use the Apache shenyu-Nginx module provided by Shenyu to build your cluster.
   
   If you choose to use Apache Shenyu-nginx, please refer to specific information:
   https://shenyu.apache.org/docs/deployment/deployment-cluster/
   
   Hope to help you ~🐝


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org