mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2025-12-24 11:51:06 +08:00
68 lines
1.3 KiB
TypeScript
68 lines
1.3 KiB
TypeScript
import { HeaderOperations } from './common'
|
|
|
|
export interface ClientPluginOptions {}
|
|
|
|
export type ClientPluginType =
|
|
| 'http_proxy'
|
|
| 'http2https'
|
|
| 'https2http'
|
|
| 'https2https'
|
|
| 'socks5'
|
|
| 'static_file'
|
|
| 'unix_domain_socket'
|
|
|
|
export interface TypedClientPluginOptions {
|
|
type: ClientPluginType
|
|
clientPluginOptions?: ClientPluginOptions
|
|
}
|
|
|
|
export interface HTTP2HTTPSPluginOptions {
|
|
type: 'http2https'
|
|
localAddr?: string
|
|
hostHeaderRewrite?: string
|
|
requestHeaders?: HeaderOperations
|
|
}
|
|
|
|
export interface HTTPProxyPluginOptions {
|
|
type: 'http_proxy'
|
|
httpUser?: string
|
|
httpPassword?: string
|
|
}
|
|
|
|
export interface HTTPS2HTTPPluginOptions {
|
|
type: 'https2http'
|
|
localAddr?: string
|
|
hostHeaderRewrite?: string
|
|
requestHeaders?: HeaderOperations
|
|
crtPath?: string
|
|
keyPath?: string
|
|
}
|
|
|
|
export interface HTTPS2HTTPSPluginOptions {
|
|
type: 'https2https'
|
|
localAddr?: string
|
|
hostHeaderRewrite?: string
|
|
requestHeaders?: HeaderOperations
|
|
crtPath?: string
|
|
keyPath?: string
|
|
}
|
|
|
|
export interface Socks5PluginOptions {
|
|
type: 'socks5'
|
|
username?: string
|
|
password?: string
|
|
}
|
|
|
|
export interface StaticFilePluginOptions {
|
|
type: 'static_file'
|
|
localPath?: string
|
|
stripPrefix?: string
|
|
httpUser?: string
|
|
httpPassword?: string
|
|
}
|
|
|
|
export interface UnixDomainSocketPluginOptions {
|
|
type: 'unix_domain_socket'
|
|
unixPath?: string
|
|
}
|