Local Build and Deploy / deploy (push) Successful in 1m10s
Total: 24 plugins now registered and visible in the Plugins hub admin panel.
21 lines
888 B
TypeScript
21 lines
888 B
TypeScript
import { ShieldAlert } from "lucide-react";
|
|
import type { PluginDefinition } from "@/lib/plugins";
|
|
|
|
const plugin: PluginDefinition = {
|
|
id: "vpn",
|
|
name: "VPN & Proxy Detection",
|
|
description: "VPN, proxy and TOR detection for registration and login security",
|
|
version: "1.0.0",
|
|
enabled: true,
|
|
configFields: [
|
|
{ key: "block_vpn", label: "Block VPN registrations", type: "boolean", default: true },
|
|
{ key: "block_proxy", label: "Block proxy registrations", type: "boolean", default: true },
|
|
{ key: "block_tor", label: "Block TOR exit nodes", type: "boolean", default: true },
|
|
{ key: "block_on_login", label: "Block VPN users on login", type: "boolean", default: false },
|
|
{ key: "api_key", label: "Detection API key", type: "text", default: "" },
|
|
{ key: "cache_results_minutes", label: "Cache results (minutes)", type: "text", default: "60" },
|
|
],
|
|
};
|
|
|
|
export default plugin;
|