| | |
| | | |
| | | # copy html |
| | | echo "begin copy html " |
| | | cp -r ../ruoyi-ui/dist/** ./nginx/html/dist |
| | | cp -r ../se-ui/dist/** ./nginx/html/dist |
| | | |
| | | |
| | | # copy jar |
| | | echo "begin copy ruoyi-gateway " |
| | | cp ../ruoyi-gateway/target/ruoyi-gateway.jar ./ruoyi/gateway/jar |
| | | echo "begin copy se-gateway " |
| | | cp ../se-gateway/target/se-gateway.jar ./se/gateway/jar |
| | | |
| | | echo "begin copy ruoyi-auth " |
| | | cp ../ruoyi-auth/target/ruoyi-auth.jar ./ruoyi/auth/jar |
| | | echo "begin copy se-auth " |
| | | cp ../se-auth/target/se-auth.jar ./se/auth/jar |
| | | |
| | | echo "begin copy ruoyi-visual " |
| | | cp ../ruoyi-visual/ruoyi-monitor/target/ruoyi-visual-monitor.jar ./ruoyi/visual/monitor/jar |
| | | echo "begin copy se-visual " |
| | | cp ../se-visual/se-monitor/target/se-visual-monitor.jar ./se/visual/monitor/jar |
| | | |
| | | echo "begin copy ruoyi-modules-system " |
| | | cp ../ruoyi-modules/ruoyi-system/target/ruoyi-modules-system.jar ./ruoyi/modules/system/jar |
| | | echo "begin copy se-modules-system " |
| | | cp ../se-modules/se-system/target/se-modules-system.jar ./se/modules/system/jar |
| | | |
| | | echo "begin copy ruoyi-modules-file " |
| | | cp ../ruoyi-modules/ruoyi-file/target/ruoyi-modules-file.jar ./ruoyi/modules/file/jar |
| | | echo "begin copy se-modules-file " |
| | | cp ../se-modules/se-file/target/se-modules-file.jar ./se/modules/file/jar |
| | | |
| | | echo "begin copy ruoyi-modules-job " |
| | | cp ../ruoyi-modules/ruoyi-job/target/ruoyi-modules-job.jar ./ruoyi/modules/job/jar |
| | | echo "begin copy se-modules-job " |
| | | cp ../se-modules/se-job/target/se-modules-job.jar ./se/modules/job/jar |
| | | |
| | | echo "begin copy ruoyi-modules-gen " |
| | | cp ../ruoyi-modules/ruoyi-gen/target/ruoyi-modules-gen.jar ./ruoyi/modules/gen/jar |
| | | echo "begin copy se-modules-gen " |
| | | cp ../se-modules/se-gen/target/se-modules-gen.jar ./se/modules/gen/jar |
| | | |
| | |
| | | |
| | | # 启动基础环境(必须) |
| | | base(){ |
| | | docker-compose up -d ruoyi-mysql ruoyi-redis ruoyi-nacos |
| | | docker-compose up -d se-mysql se-redis se-nacos |
| | | } |
| | | |
| | | # 启动程序模块(必须) |
| | | modules(){ |
| | | docker-compose up -d ruoyi-nginx ruoyi-gateway ruoyi-auth ruoyi-modules-system |
| | | docker-compose up -d se-nginx se-gateway se-auth se-modules-system |
| | | } |
| | | |
| | | # 关闭所有环境/模块 |
| | |
| | | version : '3.8' |
| | | services: |
| | | ruoyi-nacos: |
| | | container_name: ruoyi-nacos |
| | | se-nacos: |
| | | container_name: se-nacos |
| | | image: nacos/nacos-server |
| | | build: |
| | | context: ./nacos |
| | |
| | | - "9848:9848" |
| | | - "9849:9849" |
| | | depends_on: |
| | | - ruoyi-mysql |
| | | ruoyi-mysql: |
| | | container_name: ruoyi-mysql |
| | | - se-mysql |
| | | se-mysql: |
| | | container_name: se-mysql |
| | | image: mysql:5.7 |
| | | build: |
| | | context: ./mysql |
| | |
| | | environment: |
| | | MYSQL_DATABASE: 'ry-cloud' |
| | | MYSQL_ROOT_PASSWORD: password |
| | | ruoyi-redis: |
| | | container_name: ruoyi-redis |
| | | se-redis: |
| | | container_name: se-redis |
| | | image: redis |
| | | build: |
| | | context: ./redis |
| | | ports: |
| | | - "6379:6379" |
| | | volumes: |
| | | - ./redis/conf/redis.conf:/home/ruoyi/redis/redis.conf |
| | | - ./redis/conf/redis.conf:/home/se/redis/redis.conf |
| | | - ./redis/data:/data |
| | | command: redis-server /home/ruoyi/redis/redis.conf |
| | | ruoyi-nginx: |
| | | container_name: ruoyi-nginx |
| | | command: redis-server /home/se/redis/redis.conf |
| | | se-nginx: |
| | | container_name: se-nginx |
| | | image: nginx |
| | | build: |
| | | context: ./nginx |
| | | ports: |
| | | - "80:80" |
| | | volumes: |
| | | - ./nginx/html/dist:/home/ruoyi/projects/ruoyi-ui |
| | | - ./nginx/html/dist:/home/se/projects/se-ui |
| | | - ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf |
| | | - ./nginx/logs:/var/log/nginx |
| | | - ./nginx/conf.d:/etc/nginx/conf.d |
| | | depends_on: |
| | | - ruoyi-gateway |
| | | - se-gateway |
| | | links: |
| | | - ruoyi-gateway |
| | | ruoyi-gateway: |
| | | container_name: ruoyi-gateway |
| | | - se-gateway |
| | | se-gateway: |
| | | container_name: se-gateway |
| | | build: |
| | | context: ./ruoyi/gateway |
| | | context: ./se/gateway |
| | | dockerfile: dockerfile |
| | | ports: |
| | | - "8080:8080" |
| | | depends_on: |
| | | - ruoyi-redis |
| | | - se-redis |
| | | links: |
| | | - ruoyi-redis |
| | | ruoyi-auth: |
| | | container_name: ruoyi-auth |
| | | - se-redis |
| | | se-auth: |
| | | container_name: se-auth |
| | | build: |
| | | context: ./ruoyi/auth |
| | | context: ./se/auth |
| | | dockerfile: dockerfile |
| | | ports: |
| | | - "9200:9200" |
| | | depends_on: |
| | | - ruoyi-redis |
| | | - se-redis |
| | | links: |
| | | - ruoyi-redis |
| | | ruoyi-modules-system: |
| | | container_name: ruoyi-modules-system |
| | | - se-redis |
| | | se-modules-system: |
| | | container_name: se-modules-system |
| | | build: |
| | | context: ./ruoyi/modules/system |
| | | context: ./se/modules/system |
| | | dockerfile: dockerfile |
| | | ports: |
| | | - "9201:9201" |
| | | depends_on: |
| | | - ruoyi-redis |
| | | - ruoyi-mysql |
| | | - se-redis |
| | | - se-mysql |
| | | links: |
| | | - ruoyi-redis |
| | | - ruoyi-mysql |
| | | ruoyi-modules-gen: |
| | | container_name: ruoyi-modules-gen |
| | | - se-redis |
| | | - se-mysql |
| | | se-modules-gen: |
| | | container_name: se-modules-gen |
| | | build: |
| | | context: ./ruoyi/modules/gen |
| | | context: ./se/modules/gen |
| | | dockerfile: dockerfile |
| | | ports: |
| | | - "9202:9202" |
| | | depends_on: |
| | | - ruoyi-mysql |
| | | - se-mysql |
| | | links: |
| | | - ruoyi-mysql |
| | | ruoyi-modules-job: |
| | | container_name: ruoyi-modules-job |
| | | - se-mysql |
| | | se-modules-job: |
| | | container_name: se-modules-job |
| | | build: |
| | | context: ./ruoyi/modules/job |
| | | context: ./se/modules/job |
| | | dockerfile: dockerfile |
| | | ports: |
| | | - "9203:9203" |
| | | depends_on: |
| | | - ruoyi-mysql |
| | | - se-mysql |
| | | links: |
| | | - ruoyi-mysql |
| | | ruoyi-modules-file: |
| | | container_name: ruoyi-modules-file |
| | | - se-mysql |
| | | se-modules-file: |
| | | container_name: se-modules-file |
| | | build: |
| | | context: ./ruoyi/modules/file |
| | | context: ./se/modules/file |
| | | dockerfile: dockerfile |
| | | ports: |
| | | - "9300:9300" |
| | | volumes: |
| | | - ./ruoyi/uploadPath:/home/ruoyi/uploadPath |
| | | ruoyi-visual-monitor: |
| | | container_name: ruoyi-visual-monitor |
| | | - ./se/uploadPath:/home/se/uploadPath |
| | | se-visual-monitor: |
| | | container_name: se-visual-monitor |
| | | build: |
| | | context: ./ruoyi/visual/monitor |
| | | context: ./se/visual/monitor |
| | | dockerfile: dockerfile |
| | | ports: |
| | | - "9100:9100" |
| | |
| | | spring.datasource.platform=mysql |
| | | db.num=1 |
| | | db.url.0=jdbc:mysql://ruoyi-mysql:3306/ry-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC |
| | | db.url.0=jdbc:mysql://se-mysql:3306/ry-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC |
| | | db.user=root |
| | | db.password=password |
| | | |
| | |
| | | server.tomcat.accesslog.enabled=true |
| | | server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i |
| | | |
| | | server.tomcat.basedir=/home/ruoyi/nacos/tomcat/logs |
| | | server.tomcat.basedir=/home/se/nacos/tomcat/logs |
| | | |
| | | nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/** |
| | | |
| | |
| | | server_name localhost; |
| | | |
| | | location / { |
| | | root /home/ruoyi/projects/ruoyi-ui; |
| | | root /home/se/projects/se-ui; |
| | | try_files $uri $uri/ /index.html; |
| | | index index.html index.htm; |
| | | } |
| | |
| | | proxy_set_header X-Real-IP $remote_addr; |
| | | proxy_set_header REMOTE-HOST $remote_addr; |
| | | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| | | proxy_pass http://ruoyi-gateway:8080/; |
| | | proxy_pass http://se-gateway:8080/; |
| | | } |
| | | |
| | | # 避免actuator暴露 |
| | |
| | | MAINTAINER ruoyi |
| | | |
| | | # 挂载目录 |
| | | VOLUME /home/ruoyi/projects/ruoyi-ui |
| | | VOLUME /home/se/projects/se-ui |
| | | # 创建目录 |
| | | RUN mkdir -p /home/ruoyi/projects/ruoyi-ui |
| | | RUN mkdir -p /home/se/projects/se-ui |
| | | # 指定路径 |
| | | WORKDIR /home/ruoyi/projects/ruoyi-ui |
| | | WORKDIR /home/se/projects/se-ui |
| | | # 复制conf文件到路径 |
| | | COPY ./conf/nginx.conf /etc/nginx/nginx.conf |
| | | # 复制html文件到路径 |
| | | COPY ./html/dist /home/ruoyi/projects/ruoyi-ui |
| | | COPY ./html/dist /home/se/projects/se-ui |
| | |
| | | MAINTAINER ruoyi |
| | | |
| | | # 挂载目录 |
| | | VOLUME /home/ruoyi/redis |
| | | VOLUME /home/se/redis |
| | | # 创建目录 |
| | | RUN mkdir -p /home/ruoyi/redis |
| | | RUN mkdir -p /home/se/redis |
| | | # 指定路径 |
| | | WORKDIR /home/ruoyi/redis |
| | | WORKDIR /home/se/redis |
| | | # 复制conf文件到路径 |
| | | COPY ./conf/redis.conf /home/ruoyi/redis/redis.conf |
| | | COPY ./conf/redis.conf /home/se/redis/redis.conf |
| | |
| | | # 指定路径 |
| | | WORKDIR /home/ruoyi |
| | | # 复制jar文件到路径 |
| | | COPY ./jar/ruoyi-auth.jar /home/ruoyi/ruoyi-auth.jar |
| | | COPY ./jar/se-auth.jar /home/se/se-auth.jar |
| | | # 启动认证服务 |
| | | ENTRYPOINT ["java","-jar","ruoyi-auth.jar"] |
| | | ENTRYPOINT ["java","-jar","se-auth.jar"] |
| | |
| | | # 指定路径 |
| | | WORKDIR /home/ruoyi |
| | | # 复制jar文件到路径 |
| | | COPY ./jar/ruoyi-gateway.jar /home/ruoyi/ruoyi-gateway.jar |
| | | COPY ./jar/se-gateway.jar /home/se/se-gateway.jar |
| | | # 启动网关服务 |
| | | ENTRYPOINT ["java","-jar","ruoyi-gateway.jar"] |
| | | ENTRYPOINT ["java","-jar","se-gateway.jar"] |
| | |
| | | # 指定路径 |
| | | WORKDIR /home/ruoyi |
| | | # 复制jar文件到路径 |
| | | COPY ./jar/ruoyi-modules-file.jar /home/ruoyi/ruoyi-modules-file.jar |
| | | COPY ./jar/se-modules-file.jar /home/se/se-modules-file.jar |
| | | # 启动文件服务 |
| | | ENTRYPOINT ["java","-jar","ruoyi-modules-file.jar"] |
| | | ENTRYPOINT ["java","-jar","se-modules-file.jar"] |
| | |
| | | # 指定路径 |
| | | WORKDIR /home/ruoyi |
| | | # 复制jar文件到路径 |
| | | COPY ./jar/ruoyi-modules-gen.jar /home/ruoyi/ruoyi-modules-gen.jar |
| | | COPY ./jar/se-modules-gen.jar /home/se/se-modules-gen.jar |
| | | # 启动代码生成服务 |
| | | ENTRYPOINT ["java","-jar","ruoyi-modules-gen.jar"] |
| | | ENTRYPOINT ["java","-jar","se-modules-gen.jar"] |
| | |
| | | # 指定路径 |
| | | WORKDIR /home/ruoyi |
| | | # 复制jar文件到路径 |
| | | COPY ./jar/ruoyi-modules-job.jar /home/ruoyi/ruoyi-modules-job.jar |
| | | COPY ./jar/se-modules-job.jar /home/se/se-modules-job.jar |
| | | # 启动定时任务服务 |
| | | ENTRYPOINT ["java","-jar","ruoyi-modules-job.jar"] |
| | | ENTRYPOINT ["java","-jar","se-modules-job.jar"] |
| | |
| | | # 指定路径 |
| | | WORKDIR /home/ruoyi |
| | | # 复制jar文件到路径 |
| | | COPY ./jar/ruoyi-modules-system.jar /home/ruoyi/ruoyi-modules-system.jar |
| | | COPY ./jar/se-modules-system.jar /home/se/se-modules-system.jar |
| | | # 启动系统服务 |
| | | ENTRYPOINT ["java","-jar","ruoyi-modules-system.jar"] |
| | | ENTRYPOINT ["java","-jar","se-modules-system.jar"] |
| | |
| | | # 指定路径 |
| | | WORKDIR /home/ruoyi |
| | | # 复制jar文件到路径 |
| | | COPY ./jar/ruoyi-visual-monitor.jar /home/ruoyi/ruoyi-visual-monitor.jar |
| | | COPY ./jar/se-visual-monitor.jar /home/se/se-visual-monitor.jar |
| | | # 启动系统服务 |
| | | ENTRYPOINT ["java","-jar","ruoyi-visual-monitor.jar"] |
| | | ENTRYPOINT ["java","-jar","se-visual-monitor.jar"] |
| | |
| | | |
| | | <dependencies> |
| | | |
| | | <!-- RuoYi Common Core--> |
| | | <!-- SE Common Core--> |
| | | <dependency> |
| | | <groupId>com.se</groupId> |
| | | <artifactId>se-common-core</artifactId> |
| | |
| | | spring: |
| | | application: |
| | | # 应用名称 |
| | | name: ruoyi-auth |
| | | name: se-auth |
| | | profiles: |
| | | # 环境配置 |
| | | active: dev |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <configuration scan="true" scanPeriod="60 seconds" debug="false"> |
| | | <!-- 日志存放路径 --> |
| | | <property name="log.path" value="logs/ruoyi-auth" /> |
| | | <property name="log.path" value="logs/se-auth" /> |
| | | <!-- 日志输出格式 --> |
| | | <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> |
| | | |
| | |
| | | /** |
| | | * 认证服务的serviceid |
| | | */ |
| | | public static final String AUTH_SERVICE = "ruoyi-auth"; |
| | | public static final String AUTH_SERVICE = "se-auth"; |
| | | |
| | | /** |
| | | * 系统模块的serviceid |
| | | */ |
| | | public static final String SYSTEM_SERVICE = "ruoyi-system"; |
| | | public static final String SYSTEM_SERVICE = "se-system"; |
| | | |
| | | /** |
| | | * 文件服务的serviceid |
| | | */ |
| | | public static final String FILE_SERVICE = "ruoyi-file"; |
| | | public static final String FILE_SERVICE = "se-file"; |
| | | } |
| | |
| | | .contains(routeDefinition.getId())) |
| | | .forEach(routeDefinition -> routeDefinition.getPredicates().stream() |
| | | .filter(predicateDefinition -> "Path".equalsIgnoreCase(predicateDefinition.getName())) |
| | | .filter(predicateDefinition -> !"ruoyi-auth".equalsIgnoreCase(routeDefinition.getId())) |
| | | .filter(predicateDefinition -> !"se-auth".equalsIgnoreCase(routeDefinition.getId())) |
| | | .forEach(predicateDefinition -> resourceList |
| | | .add(swaggerResource(routeDefinition.getId(), predicateDefinition.getArgs() |
| | | .get(NameUtils.GENERATED_NAME_PREFIX + "0").replace("/**", SWAGGER2URL))))); |
| | |
| | | spring: |
| | | application: |
| | | # 应用名称 |
| | | name: ruoyi-gateway |
| | | name: se-gateway |
| | | profiles: |
| | | # 环境配置 |
| | | active: dev |
| | |
| | | ds1: |
| | | nacos: |
| | | server-addr: 127.0.0.1:8848 |
| | | dataId: sentinel-ruoyi-gateway |
| | | dataId: sentinel-se-gateway |
| | | groupId: DEFAULT_GROUP |
| | | data-type: json |
| | | rule-type: gw-flow |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <configuration scan="true" scanPeriod="60 seconds" debug="false"> |
| | | <!-- 日志存放路径 --> |
| | | <property name="log.path" value="logs/ruoyi-gateway" /> |
| | | <property name="log.path" value="logs/se-gateway" /> |
| | | <!-- 日志输出格式 --> |
| | | <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> |
| | | |
| | |
| | | spring: |
| | | application: |
| | | # 应用名称 |
| | | name: ruoyi-file |
| | | name: se-file |
| | | profiles: |
| | | # 环境配置 |
| | | active: dev |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <configuration scan="true" scanPeriod="60 seconds" debug="false"> |
| | | <!-- 日志存放路径 --> |
| | | <property name="log.path" value="logs/ruoyi-file" /> |
| | | <property name="log.path" value="logs/se-file" /> |
| | | <!-- 日志输出格式 --> |
| | | <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> |
| | | |
| | |
| | | spring: |
| | | application: |
| | | # 应用名称 |
| | | name: ruoyi-gen |
| | | name: se-gen |
| | | profiles: |
| | | # 环境配置 |
| | | active: dev |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <configuration scan="true" scanPeriod="60 seconds" debug="false"> |
| | | <!-- 日志存放路径 --> |
| | | <property name="log.path" value="logs/ruoyi-gen" /> |
| | | <property name="log.path" value="logs/se-gen" /> |
| | | <!-- 日志输出格式 --> |
| | | <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> |
| | | |
| | |
| | | spring: |
| | | application: |
| | | # 应用名称 |
| | | name: ruoyi-job |
| | | name: se-job |
| | | profiles: |
| | | # 环境配置 |
| | | active: dev |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <configuration scan="true" scanPeriod="60 seconds" debug="false"> |
| | | <!-- 日志存放路径 --> |
| | | <property name="log.path" value="logs/ruoyi-job" /> |
| | | <property name="log.path" value="logs/se-job" /> |
| | | <!-- 日志输出格式 --> |
| | | <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> |
| | | |
| | |
| | | spring: |
| | | application: |
| | | # 应用名称 |
| | | name: ruoyi-system |
| | | name: se-system |
| | | profiles: |
| | | # 环境配置 |
| | | active: dev |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <configuration scan="true" scanPeriod="60 seconds" debug="false"> |
| | | <!-- 日志存放路径 --> |
| | | <property name="log.path" value="logs/ruoyi-system" /> |
| | | <property name="log.path" value="logs/se-system" /> |
| | | <!-- 日志输出格式 --> |
| | | <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> |
| | | |
| | |
| | | |
| | | ```bash |
| | | # 克隆项目 |
| | | git clone https://gitee.com/y_project/RuoYi-Vue |
| | | git clone https://gitee.com/y_project/se-Vue |
| | | |
| | | # 进入项目目录 |
| | | cd ruoyi-ui |
| | | cd se-ui |
| | | |
| | | # 安装依赖 |
| | | npm install |
| | |
| | | ], |
| | | "repository": { |
| | | "type": "git", |
| | | "url": "https://gitee.com/y_project/RuoYi-Cloud.git" |
| | | "url": "https://gitee.com/y_project/SE-Cloud.git" |
| | | }, |
| | | "dependencies": { |
| | | "@riophae/vue-treeselect": "0.4.0", |
| | |
| | | name: 'RuoYiDoc', |
| | | data() { |
| | | return { |
| | | url: 'http://doc.ruoyi.vip/ruoyi-cloud' |
| | | url: 'http://doc.ruoyi.vip/se-cloud' |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | name: 'RuoYiGit', |
| | | data() { |
| | | return { |
| | | url: 'https://gitee.com/y_project/RuoYi-Cloud' |
| | | url: 'https://gitee.com/y_project/se-Cloud' |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | <search id="header-search" class="right-menu-item" /> |
| | | |
| | | <el-tooltip content="源码地址" effect="dark" placement="bottom"> |
| | | <ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" /> |
| | | <ruo-yi-git id="se-git" class="right-menu-item hover-effect" /> |
| | | </el-tooltip> |
| | | |
| | | <el-tooltip content="文档地址" effect="dark" placement="bottom"> |
| | | <ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" /> |
| | | <ruo-yi-doc id="se-doc" class="right-menu-item hover-effect" /> |
| | | </el-tooltip> |
| | | |
| | | <screenfull id="screenfull" class="right-menu-item hover-effect" /> |
| | |
| | | import Screenfull from '@/components/Screenfull' |
| | | import SizeSelect from '@/components/SizeSelect' |
| | | import Search from '@/components/HeaderSearch' |
| | | import RuoYiGit from '@/components/RuoYi/Git' |
| | | import RuoYiDoc from '@/components/RuoYi/Doc' |
| | | import RuoYiGit from '@/components/se/Git' |
| | | import RuoYiDoc from '@/components/se/Doc' |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | size="mini" |
| | | icon="el-icon-cloudy" |
| | | plain |
| | | @click="goTarget('https://gitee.com/y_project/RuoYi-Cloud')" |
| | | @click="goTarget('https://gitee.com/y_project/se-Cloud')" |
| | | >访问码云</el-button |
| | | > |
| | | <el-button |
| | |
| | | } |
| | | }, |
| | | plugins: [ |
| | | // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件 |
| | | // http://doc.ruoyi.vip/se-vue/other/faq.html#使用gzip解压缩静态文件 |
| | | new CompressionPlugin({ |
| | | cache: false, // 不启用文件缓存 |
| | | test: /\.(js|css|html|jpe?g|png|gif|svg)?$/i, // 压缩文件格式 |
| | |
| | | spring: |
| | | application: |
| | | # 应用名称 |
| | | name: ruoyi-monitor |
| | | name: se-monitor |
| | | profiles: |
| | | # 环境配置 |
| | | active: dev |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <configuration scan="true" scanPeriod="60 seconds" debug="false"> |
| | | <!-- 日志存放路径 --> |
| | | <property name="log.path" value="logs/ruoyi-visual-monitor" /> |
| | | <property name="log.path" value="logs/se-visual-monitor" /> |
| | | <!-- 日志输出格式 --> |
| | | <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> |
| | | |
| | |
| | | |
| | | insert into config_info(id, data_id, group_id, content, md5, gmt_create, gmt_modified, src_user, src_ip, app_name, tenant_id, c_desc, c_use, effect, type, c_schema, encrypted_data_key) values |
| | | (1,'application-dev.yml','DEFAULT_GROUP','spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n mvc:\n pathmatch:\n matching-strategy: ant_path_matcher\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n','58dde4e3760499d3bac2d77a3a1e9018','2020-05-20 12:00:00','2023-12-04 08:08:23','nacos','0:0:0:0:0:0:0:1','','','通用配置','null','null','yaml','',''), |
| | | (2,'ruoyi-gateway-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: ruoyi-auth\n uri: lb://ruoyi-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: ruoyi-gen\n uri: lb://ruoyi-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: ruoyi-job\n uri: lb://ruoyi-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: ruoyi-system\n uri: lb://ruoyi-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: ruoyi-file\n uri: lb://ruoyi-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n','57cec5abd0e0a6b77d853750344a9dc0','2020-05-14 14:17:55','2022-09-29 02:48:32','nacos','0:0:0:0:0:0:0:1','','','网关模块','null','null','yaml','',''), |
| | | (3,'ruoyi-auth-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password:\n','8bd9dada9a94822feeab40de55efced6','2020-11-20 00:00:00','2022-09-29 02:48:42','nacos','0:0:0:0:0:0:0:1','','','认证中心','null','null','yaml','',''), |
| | | (4,'ruoyi-monitor-dev.yml','DEFAULT_GROUP','# spring\nspring:\n security:\n user:\n name: ruoyi\n password: 123456\n boot:\n admin:\n ui:\n title: 若依服务状态监控\n','6f122fd2bfb8d45f858e7d6529a9cd44','2020-11-20 00:00:00','2022-09-29 02:48:54','nacos','0:0:0:0:0:0:0:1','','','监控中心','null','null','yaml','',''), |
| | | (5,'ruoyi-system-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.se.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip','00678c89684ec0b825cb9b71e032db64','2020-11-20 00:00:00','2023-12-04 07:51:28','nacos','0:0:0:0:0:0:0:1','','','系统模块','null','null','yaml','',''), |
| | | (6,'ruoyi-gen-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.se.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip\n\n# 代码生成\ngen:\n # 作者\n author: ruoyi\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: com.se.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n','eb592420b3fceae1402881887b8a6a0d','2020-11-20 00:00:00','2022-09-29 02:49:42','nacos','0:0:0:0:0:0:0:1','','','代码生成','null','null','yaml','',''), |
| | | (7,'ruoyi-job-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.se.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip\n','edcf0e3fe13fea07b4ec08b1088f30b3','2020-11-20 00:00:00','2022-09-29 02:50:50','nacos','0:0:0:0:0:0:0:1','','','定时任务','null','null','yaml','',''), |
| | | (8,'ruoyi-file-dev.yml','DEFAULT_GROUP','# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/ruoyi/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test','5382b93f3d8059d6068c0501fdd41195','2020-11-20 00:00:00','2020-12-21 21:01:59',NULL,'0:0:0:0:0:0:0:1','','','文件服务','null','null','yaml',NULL,''), |
| | | (9,'sentinel-ruoyi-gateway','DEFAULT_GROUP','[\r\n {\r\n \"resource\": \"ruoyi-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"ruoyi-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"ruoyi-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"ruoyi-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]','9f3a3069261598f74220bc47958ec252','2020-11-20 00:00:00','2020-11-20 00:00:00',NULL,'0:0:0:0:0:0:0:1','','','限流策略','null','null','json',NULL,''); |
| | | (2,'se-gateway-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: se-auth\n uri: lb://se-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: se-gen\n uri: lb://se-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: se-job\n uri: lb://se-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: se-system\n uri: lb://se-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: se-file\n uri: lb://se-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n','57cec5abd0e0a6b77d853750344a9dc0','2020-05-14 14:17:55','2022-09-29 02:48:32','nacos','0:0:0:0:0:0:0:1','','','网关模块','null','null','yaml','',''), |
| | | (3,'se-auth-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password:\n','8bd9dada9a94822feeab40de55efced6','2020-11-20 00:00:00','2022-09-29 02:48:42','nacos','0:0:0:0:0:0:0:1','','','认证中心','null','null','yaml','',''), |
| | | (4,'se-monitor-dev.yml','DEFAULT_GROUP','# spring\nspring:\n security:\n user:\n name: ruoyi\n password: 123456\n boot:\n admin:\n ui:\n title: 若依服务状态监控\n','6f122fd2bfb8d45f858e7d6529a9cd44','2020-11-20 00:00:00','2022-09-29 02:48:54','nacos','0:0:0:0:0:0:0:1','','','监控中心','null','null','yaml','',''), |
| | | (5,'se-system-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.se.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip','00678c89684ec0b825cb9b71e032db64','2020-11-20 00:00:00','2023-12-04 07:51:28','nacos','0:0:0:0:0:0:0:1','','','系统模块','null','null','yaml','',''), |
| | | (6,'se-gen-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.se.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip\n\n# 代码生成\ngen:\n # 作者\n author: ruoyi\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: com.se.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n','eb592420b3fceae1402881887b8a6a0d','2020-11-20 00:00:00','2022-09-29 02:49:42','nacos','0:0:0:0:0:0:0:1','','','代码生成','null','null','yaml','',''), |
| | | (7,'se-job-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.se.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip\n','edcf0e3fe13fea07b4ec08b1088f30b3','2020-11-20 00:00:00','2022-09-29 02:50:50','nacos','0:0:0:0:0:0:0:1','','','定时任务','null','null','yaml','',''), |
| | | (8,'se-file-dev.yml','DEFAULT_GROUP','# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/se/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test','5382b93f3d8059d6068c0501fdd41195','2020-11-20 00:00:00','2020-12-21 21:01:59',NULL,'0:0:0:0:0:0:0:1','','','文件服务','null','null','yaml',NULL,''), |
| | | (9,'sentinel-se-gateway','DEFAULT_GROUP','[\r\n {\r\n \"resource\": \"se-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"se-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"se-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"se-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]','9f3a3069261598f74220bc47958ec252','2020-11-20 00:00:00','2020-11-20 00:00:00',NULL,'0:0:0:0:0:0:0:1','','','限流策略','null','null','json',NULL,''); |
| | | |
| | | |
| | | /******************************************/ |