feat: add plugin reverse proxy config

This commit is contained in:
guqing
2022-06-10 16:29:01 +08:00
parent 4cdb939db7
commit 3e38b663c9
4 changed files with 13 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ jar {
}
dependencies {
compileOnly 'io.github.guqing:pluggable-suite:0.0.1-SNAPSHOT'
implementation 'io.github.guqing:pluggable-suite:0.0.1-SNAPSHOT'
compileOnly 'org.springframework.boot:spring-boot-starter-webflux'
annotationProcessor 'io.github.guqing:pluggable-suite:0.0.1-SNAPSHOT'

View File

@@ -0,0 +1,10 @@
apiVersion: plugin.halo.run/v1alpha1
kind: ReverseProxy
metadata:
name: reverse-proxy-template
labels:
plugin.halo.run/pluginName: io.github.guqing.apples
rules:
- path: /static/**
file:
directory: static

View File

@@ -1,8 +0,0 @@
apiVersion: v1
kind: ReverseProxy
metadata:
name: reverse-proxy-template
rules:
- path: /assets/io.github.guqing.template/**
file:
directory: static

View File

@@ -1,4 +1,4 @@
apiVersion: v1
apiVersion: v1alpha1
kind: Plugin
metadata:
# The name defines how the plugin is invoked,A unique name
@@ -14,4 +14,4 @@ spec:
# 'displayName' explains what the plugin does in only a few words
displayName: "测试插件"
description: "这是一个用来测试的插件"
license: MIT1
license: MIT