Files
frp-panel/www/types/plugin.ts
VaalaCat 3e5bec4355 feat: support client plugin and proxy can be stopped
feat: i18n parser

i18n: translate

feat: add github proxy url
2025-05-02 09:38:33 +00:00

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
}