From 3e38b663c983461f95276eb52edd7fa4902419ef Mon Sep 17 00:00:00 2001 From: guqing Date: Fri, 10 Jun 2022 16:29:01 +0800 Subject: [PATCH] feat: add plugin reverse proxy config --- build.gradle | 2 +- src/main/resources/extensions/reverseProxy.yaml | 10 ++++++++++ src/main/resources/extensions/reverseproxy.yaml | 8 -------- src/main/resources/plugin.yaml | 4 ++-- 4 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 src/main/resources/extensions/reverseProxy.yaml delete mode 100644 src/main/resources/extensions/reverseproxy.yaml diff --git a/build.gradle b/build.gradle index 7f9bd3a..397ed6e 100644 --- a/build.gradle +++ b/build.gradle @@ -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' diff --git a/src/main/resources/extensions/reverseProxy.yaml b/src/main/resources/extensions/reverseProxy.yaml new file mode 100644 index 0000000..c541a9e --- /dev/null +++ b/src/main/resources/extensions/reverseProxy.yaml @@ -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 diff --git a/src/main/resources/extensions/reverseproxy.yaml b/src/main/resources/extensions/reverseproxy.yaml deleted file mode 100644 index 785ede1..0000000 --- a/src/main/resources/extensions/reverseproxy.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -kind: ReverseProxy -metadata: - name: reverse-proxy-template -rules: - - path: /assets/io.github.guqing.template/** - file: - directory: static diff --git a/src/main/resources/plugin.yaml b/src/main/resources/plugin.yaml index 7a4e363..9d0da2e 100644 --- a/src/main/resources/plugin.yaml +++ b/src/main/resources/plugin.yaml @@ -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