mirror of
https://github.com/halo-dev/plugin-starter.git
synced 2025-10-14 07:01:30 +00:00
feat: add plugin reverse proxy config
This commit is contained in:
@@ -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'
|
||||
|
||||
|
10
src/main/resources/extensions/reverseProxy.yaml
Normal file
10
src/main/resources/extensions/reverseProxy.yaml
Normal 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
|
@@ -1,8 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ReverseProxy
|
||||
metadata:
|
||||
name: reverse-proxy-template
|
||||
rules:
|
||||
- path: /assets/io.github.guqing.template/**
|
||||
file:
|
||||
directory: static
|
@@ -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
|
||||
|
Reference in New Issue
Block a user