Files
EpicNext-Cms/src/plugins/vpn/index.ts
T
openhands bbdc94870a
Local Build and Deploy / deploy (push) Successful in 1m10s
Add 12 more plugins (Events, Tickets, Bans, VPN, Permissions, Teams, RCON, Audit, Email, Maintenance, Rooms, Translations)
Total: 24 plugins now registered and visible in the Plugins hub admin panel.
2026-07-18 14:26:03 +02:00

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;