diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts new file mode 100644 index 0000000..b1082f2 --- /dev/null +++ b/docs/.vitepress/config.mts @@ -0,0 +1,130 @@ +import { defineConfig } from 'vitepress' + +// https://vitepress.dev/reference/site-config +export default defineConfig({ + // base: '/podux-doc/', + title: "Podux", + description: "现代化的 Frpc 管理平台 - 基于 PocketBase 和 React 构建的强大内网穿透管理系统", + head: [ + ['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }], + ['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }], + ['script', { defer: '', src: 'https://umami.jwinks.com/script.js', 'data-website-id': '391debd4-52ac-47c0-a6e6-c1edabe3e671' }] + ], + metaChunk: true, + + locales: { + root: { + label: '简体中文', + lang: 'zh-CN', + themeConfig: { + nav: [ + { text: '首页', link: '/' }, + { text: '指南', link: '/guide/what-is-podux' }, + ], + sidebar: [ + { + text: '指南', + items: [ + { text: '什么是 Podux?', link: '/guide/what-is-podux' }, + { text: '界面预览', link: '/guide/screenshots' }, + + { text: '快速开始', link: '/guide/getting-started' }, + ] + }, + { + text: '安装部署', + items: [ + { + text: '安装', + items: [ + { text: '二进制', link: '/deploy/install/binary' }, + { text: 'Docker', link: '/deploy/install/docker' }, + ] + }, + { + text: '升级', + items: [ + { text: '二进制', link: '/deploy/upgrade/binary' }, + { text: 'Docker', link: '/deploy/upgrade/docker' }, + ] + } + ] + }, + { + text: '故障排除', + items: [ + { text: '常见问题', link: '/troubleshoot/faq' }, + ] + } + ], + footer: { + message: '基于 MIT 协议开源', + copyright: 'Copyright © 2026-present Podux' + }, + } + }, + en: { + label: 'English', + lang: 'en-US', + description: "Modern Frpc Management Platform", + themeConfig: { + nav: [ + { text: 'Home', link: '/en/' }, + { text: 'Guide', link: '/en/guide/what-is-podux' } + ], + sidebar: [ + { + text: 'Guide', + items: [ + { text: 'What is Podux?', link: '/en/guide/what-is-podux' }, + { text: 'Screenshots', link: '/en/guide/screenshots' }, + { text: 'Getting Started', link: '/en/guide/getting-started' } + ] + }, + { + text: 'Deployment', + items: [ + { + text: 'Install', + items: [ + { text: 'Binary', link: '/en/deploy/install/binary' }, + { text: 'Docker', link: '/en/deploy/install/docker' } + ] + }, + { + text: 'Upgrade', + items: [ + { text: 'Binary', link: '/en/deploy/upgrade/binary' }, + { text: 'Docker', link: '/en/deploy/upgrade/docker' } + ] + } + ] + }, + { + text: 'Troubleshooting', + items: [ + { text: 'FAQ', link: '/en/troubleshoot/faq' } + ] + } + ], + footer: { + message: 'Released under the MIT License.', + copyright: 'Copyright © 2026-present Podux' + }, + } + } + }, + + themeConfig: { + // https://vitepress.dev/reference/default-theme-config + logo: { src: '/logo.svg', width: 24, height: 24 }, + + socialLinks: [ + { icon: 'github', link: 'https://github.com/luckjiawei/podux' } + ], + + search: { + provider: 'local' + } + } +}) diff --git a/docs/.vitepress/theme/components/AsideAd.vue b/docs/.vitepress/theme/components/AsideAd.vue new file mode 100644 index 0000000..27b0486 --- /dev/null +++ b/docs/.vitepress/theme/components/AsideAd.vue @@ -0,0 +1,66 @@ + + + diff --git a/docs/.vitepress/theme/components/ScreenshotGallery.vue b/docs/.vitepress/theme/components/ScreenshotGallery.vue new file mode 100644 index 0000000..f548d13 --- /dev/null +++ b/docs/.vitepress/theme/components/ScreenshotGallery.vue @@ -0,0 +1,88 @@ + + + diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css new file mode 100644 index 0000000..e6fe21c --- /dev/null +++ b/docs/.vitepress/theme/custom.css @@ -0,0 +1,259 @@ +/** + * Customize default theme styling by overriding CSS variables: + * https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css + */ + +/** + * Colors + * + * Each colors have exact same color scale system with 3 levels of solid + * colors with different brightness, and 1 soft color. + * + * - `XXX-1`: The most solid color used mainly for colored text. It must + * satisfy the contrast ratio against when used on top of `XXX-soft`. + * + * - `XXX-2`: The color used mainly for hover state of the button. + * + * - `XXX-3`: The color for solid background, such as bg color of the button. + * It must satisfy the contrast ratio with pure white (#ffffff) text on + * top of it. + * + * - `XXX-soft`: The color used for subtle background such as custom container + * or badges. It must satisfy the contrast ratio when putting `XXX-1` colors + * on top of it. + * + * The soft color must be semi transparent alpha channel. This is crucial + * because it allows adding multiple "soft" colors on top of each other + * to create a accent, such as when having inline code block inside + * custom containers. + * + * - `default`: The color used purely for subtle indication without any + * special meanings attched to it such as bg color for menu hover state. + * + * - `brand`: Used for primary brand colors, such as link text, button with + * brand theme, etc. + * + * - `tip`: Used to indicate useful information. The default theme uses the + * brand color for this by default. + * + * - `warning`: Used to indicate warning to the users. Used in custom + * container, badges, etc. + * + * - `danger`: Used to show error, or dangerous message to the users. Used + * in custom container, badges, etc. + * -------------------------------------------------------------------------- */ + + :root { + --vp-c-default-1: var(--vp-c-gray-1); + --vp-c-default-2: var(--vp-c-gray-2); + --vp-c-default-3: var(--vp-c-gray-3); + --vp-c-default-soft: var(--vp-c-gray-soft); + + --vp-c-brand-1: #6366f1; + --vp-c-brand-2: #818cf8; + --vp-c-brand-3: #6366f1; + --vp-c-brand-soft: rgba(99, 102, 241, 0.14); + + --vp-c-tip-1: var(--vp-c-brand-1); + --vp-c-tip-2: var(--vp-c-brand-2); + --vp-c-tip-3: var(--vp-c-brand-3); + --vp-c-tip-soft: var(--vp-c-brand-soft); + + --vp-c-warning-1: var(--vp-c-yellow-1); + --vp-c-warning-2: var(--vp-c-yellow-2); + --vp-c-warning-3: var(--vp-c-yellow-3); + --vp-c-warning-soft: var(--vp-c-yellow-soft); + + --vp-c-danger-1: var(--vp-c-red-1); + --vp-c-danger-2: var(--vp-c-red-2); + --vp-c-danger-3: var(--vp-c-red-3); + --vp-c-danger-soft: var(--vp-c-red-soft); +} + +.dark { + --vp-c-brand-1: #818cf8; + --vp-c-brand-2: #6366f1; + --vp-c-brand-3: #818cf8; + --vp-c-brand-soft: rgba(129, 140, 248, 0.16); +} + +/** + * Component: Home + * -------------------------------------------------------------------------- */ + +:root { + --vp-home-hero-name-color: transparent; + --vp-home-hero-name-background: -webkit-linear-gradient( + 120deg, + #6366f1 30%, + #fcd34d + ); + + --vp-home-hero-image-background-image: linear-gradient( + -45deg, + #6366f170 50%, + #fcd34d50 50% + ); + --vp-home-hero-image-filter: blur(44px); +} + +@media (min-width: 640px) { + :root { + --vp-home-hero-image-filter: blur(56px); + } +} + +@media (min-width: 960px) { + :root { + --vp-home-hero-image-filter: blur(68px); + } +} + +/** + * Component: Screenshot Gallery + * -------------------------------------------------------------------------- */ + +.sg-gallery { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 1.25rem; + margin: 2rem 0; +} + +@media (max-width: 768px) { + .sg-gallery { + grid-template-columns: repeat(2, 1fr); + } +} + +@media (max-width: 480px) { + .sg-gallery { + grid-template-columns: 1fr; + } +} + +.sg-item { + border-radius: 12px; + overflow: hidden; + cursor: zoom-in; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); + transition: transform 0.25s ease, box-shadow 0.25s ease; + background: var(--vp-c-bg-soft); +} + +.sg-item:hover { + transform: translateY(-4px); + box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22); +} + +.sg-item img { + width: 100%; + display: block; + margin: 0 !important; +} + +.sg-caption { + padding: 0.5rem 0.75rem; + font-size: 0.78rem; + color: var(--vp-c-text-2); + text-align: center; + border-top: 1px solid var(--vp-c-divider); +} + +/* Lightbox */ + +.sg-lightbox { + position: fixed; + inset: 0; + z-index: 9999; + background: rgba(0, 0, 0, 0.88); + backdrop-filter: blur(10px); + display: flex; + align-items: center; + justify-content: center; + padding: 2rem; +} + +.sg-lightbox-inner { + display: flex; + flex-direction: column; + align-items: center; + max-width: min(90vw, 960px); +} + +.sg-lightbox-inner img { + max-width: 100%; + max-height: calc(85vh - 3rem); + border-radius: 10px; + object-fit: contain; + margin: 0 !important; + box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); +} + +.sg-lightbox-caption { + margin-top: 0.9rem; + color: rgba(255, 255, 255, 0.8); + font-size: 0.9rem; + text-align: center; +} + +.sg-close { + position: fixed; + top: 1.25rem; + right: 1.5rem; + background: rgba(255, 255, 255, 0.15); + border: none; + color: white; + width: 2.25rem; + height: 2.25rem; + border-radius: 50%; + font-size: 1rem; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + transition: background 0.2s; + z-index: 1; +} + +.sg-close:hover { + background: rgba(255, 255, 255, 0.28); +} + +.sg-nav { + position: fixed; + top: 50%; + transform: translateY(-50%); + background: rgba(255, 255, 255, 0.15); + border: none; + color: white; + width: 2.75rem; + height: 2.75rem; + border-radius: 50%; + font-size: 1.6rem; + line-height: 1; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + transition: background 0.2s; + z-index: 1; +} + +.sg-nav:hover { + background: rgba(255, 255, 255, 0.28); +} + +.sg-nav-prev { left: 1.25rem; } +.sg-nav-next { right: 1.25rem; } + +/* Lightbox fade transition */ +.sg-fade-enter-active, +.sg-fade-leave-active { + transition: opacity 0.2s ease; +} + +.sg-fade-enter-from, +.sg-fade-leave-to { + opacity: 0; +} diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts new file mode 100644 index 0000000..6f746fe --- /dev/null +++ b/docs/.vitepress/theme/index.ts @@ -0,0 +1,18 @@ +import DefaultTheme from 'vitepress/theme' +import type { Theme } from 'vitepress' +import { h } from 'vue' +import ScreenshotGallery from './components/ScreenshotGallery.vue' +import AsideAd from './components/AsideAd.vue' +import './custom.css' + +export default { + extends: DefaultTheme, + Layout() { + return h(DefaultTheme.Layout, null, { + 'aside-outline-after': () => h(AsideAd), + }) + }, + enhanceApp({ app }) { + app.component('ScreenshotGallery', ScreenshotGallery) + }, +} satisfies Theme diff --git a/docs/deploy/install/binary.md b/docs/deploy/install/binary.md new file mode 100644 index 0000000..40f2068 --- /dev/null +++ b/docs/deploy/install/binary.md @@ -0,0 +1,112 @@ +# 二进制安装 + +::: warning 文档待完善 +本页内容正在持续完善中,部分细节可能不够准确,请以实际情况为准。 +::: + +通过预编译的二进制文件安装 Podux,适合直接在服务器或本地机器上运行。 + +## 下载 + +前往 [GitHub Releases](https://github.com/luckjiawei/podux/releases/latest) 页面,根据你的系统选择对应的安装包: + +| 系统 | 架构 | 文件名 | +| --- | --- | --- | +| Linux | x86_64 (amd64) | `podux-linux-amd64.tar.gz` | +| Linux | ARM64 | `podux-linux-arm64.tar.gz` | +| Linux | ARMv7 | `podux-linux-armv7.tar.gz` | +| macOS | Intel | `podux-darwin-amd64.tar.gz` | +| macOS | Apple Silicon | `podux-darwin-arm64.tar.gz` | +| Windows | x86_64 | `podux-windows-amd64.zip` | + +也可以通过命令行直接下载(以 Linux amd64 为例): + +```bash +curl -LO https://github.com/luckjiawei/podux/releases/latest/download/podux-linux-amd64.tar.gz +``` + +## 安装 + +### Linux / macOS + +```bash +# 解压 +tar -xzf podux-linux-amd64.tar.gz + +# 移动到系统路径(可选) +sudo mv podux /usr/local/bin/ + +# 赋予执行权限 +sudo chmod +x /usr/local/bin/podux +``` + +### Windows + +解压 `.zip` 文件到任意目录,在解压目录中打开 PowerShell 或命令提示符即可使用。 + +## 启动 + +```bash +podux serve --http 0.0.0.0:8090 +``` + +启动后访问 `http://localhost:8090` 进入主界面,`http://localhost:8090/_/` 进入管理后台。 + +::: tip +首次启动会自动初始化数据库,数据默认存储在当前目录下的 `pb_data/` 文件夹中。建议固定工作目录,避免数据分散。 +::: + +## 配置开机自启(Linux) + +推荐使用 systemd 管理 Podux 进程。 + +**1. 创建专用用户(可选但推荐)** + +```bash +sudo useradd -r -s /bin/false podux +``` + +**2. 创建数据目录** + +```bash +sudo mkdir -p /var/lib/podux +sudo chown podux:podux /var/lib/podux +``` + +**3. 创建 systemd 服务文件** + +```bash +sudo tee /etc/systemd/system/podux.service > /dev/null < /dev/null < + + diff --git a/docs/en/guide/what-is-podux.md b/docs/en/guide/what-is-podux.md new file mode 100644 index 0000000..67a10b8 --- /dev/null +++ b/docs/en/guide/what-is-podux.md @@ -0,0 +1,114 @@ +# What is Podux? + +Podux is a **modern frpc management platform** built on PocketBase and React, providing a visual interface to manage intranet penetration services. + +## Dashboard + +![Podux Dashboard](/11.png) + +## The Name + +**Podux** = **proxy** + **port** + **dux** (Latin: leader, guide) + +The name itself is a statement of intent: not just a frontend for one tool, but a unified platform to lead and guide your tunneling infrastructure. + +## Why the Rename? + +Podux started life as **frpc-hub** — a project built around frpc. As it grew, the vision became clear: support not just frp, but become a unified platform for managing multiple tunneling tools. + +The name **frpc-hub** tied the project to a single tool and couldn't carry that larger ambition. **Podux** reflects where the project is headed — a single, forward-looking platform that can grow to support more protocols and tools beyond frp. + +> The rename happened in March 2026. The repository and all related references have been updated accordingly. + +## Background + +[frp](https://github.com/fatedier/frp) is one of the most popular open-source intranet penetration tools. Its client `frpc` establishes tunnels with the server `frps` via configuration files (`.toml` / `.ini`), exposing local services to the public internet. + +However, using native frpc comes with several pain points: + +- **Config-file-driven only**: Every change requires manually editing files and restarting the process +- **Difficult multi-server management**: Maintaining multiple frps servers leads to scattered, error-prone configs +- **No visual monitoring**: No intuitive way to view connection status or latency +- **High operational cost**: Upgrades, backups, and migrations are all manual + +Podux was built to solve exactly these problems. + +## Core Features + +### Server Management + +Centrally manage multiple frps servers with support for: + +- Add, edit, and delete server configurations +- Auto-connect and automatic reconnection on failure +- Real-time latency monitoring with geolocation display +- One-click enable/disable toggle + +### Proxy Management + +Create and manage proxy tunnels via visual forms. Supported proxy types: + +| Type | Description | +| --- | --- | +| TCP | General-purpose TCP port forwarding | +| UDP | UDP traffic forwarding | +| HTTP | HTTP reverse proxy | +| HTTPS | HTTPS reverse proxy | +| STCP | Secure TCP, peer-to-peer encrypted | +| SUDP | Secure UDP | + +### Hot Reload + +After modifying proxy configurations, Podux automatically triggers an frpc reload — **no manual restart required**, zero service interruption. + +### Modern Interface + +Built with Radix UI and Tailwind CSS, delivering a clean and elegant UI with Chinese/English language switching. + +## Architecture + +```text +┌─────────────────────────────────┐ +│ Browser (React) │ +│ Radix UI + Tailwind CSS │ +└────────────────┬────────────────┘ + │ HTTP API +┌────────────────▼────────────────┐ +│ Backend (PocketBase) │ +│ Embedded SQLite Database │ +└────────────────┬────────────────┘ + │ Process Management +┌────────────────▼────────────────┐ +│ frpc │ +│ Local intranet tunnel client │ +└────────────────┬────────────────┘ + │ Encrypted Tunnel +┌────────────────▼────────────────┐ +│ frps │ +│ Public server (user-deployed) │ +└─────────────────────────────────┘ +``` + +Podux ships as a **single executable** that embeds both the PocketBase backend and frontend assets — ready to run with zero extra dependencies. + +## Comparison with Manual Management + +| | Manual frpc | Podux | +| --- | --- | --- | +| Configuration | Edit `.toml` files | Visual forms | +| Reload config | Restart process manually | Automatic hot reload | +| Multi-server | Maintain multiple config files | Unified dashboard | +| Status monitoring | Read logs | Real-time monitoring panel | +| Cross-platform deploy | Requires environment setup | Single file, ready to run | + +## Use Cases + +- **Developers**: Quickly expose local dev environments (web services, databases, SSH) to the internet for testing or demos +- **DevOps engineers**: Manage intranet penetration configs across multiple machines from one place +- **Home users**: Set up home servers, NAS, or remote desktop without memorizing complex config syntax + +## Next Steps + +- [Getting Started](/en/guide/getting-started) — Up and running in 5 minutes +- [Binary Installation](/en/deploy/install/binary) — Deploy to your server +- [Docker Installation](/en/deploy/install/docker) — Container-based deployment diff --git a/docs/en/index.md b/docs/en/index.md new file mode 100644 index 0000000..4a67ca3 --- /dev/null +++ b/docs/en/index.md @@ -0,0 +1,47 @@ +--- +layout: home + +hero: + name: "Podux" + text: "Modern Frpc Management Platform" + tagline: One-stop intranet penetration service management platform, making frpc configuration and monitoring simple and efficient. + image: + src: /logo.svg + alt: Podux Dashboard + actions: + - theme: brand + text: What is Podux? + link: /en/guide/what-is-podux + - theme: alt + text: Get Started + link: /en/guide/getting-started + - theme: alt + text: GitHub + link: https://github.com/luckjiawei/podux + +features: + - icon: 🖥️ + title: Server Management + details: Easily create, configure, and manage multiple frpc servers with auto-connection and status monitoring. + - icon: 🔌 + title: Proxy Configuration + details: Supports HTTP, HTTPS, TCP, UDP, and more proxy types with simple and intuitive configuration. + - icon: 📊 + title: Real-time Monitoring + details: Real-time network latency monitoring and geolocation display at a glance. + - icon: 🔄 + title: Hot Reload + details: Automatically reloads frpc after configuration changes without manual service restart. + - icon: 🌐 + title: Multi-language Support + details: Built-in internationalization support for easy switching between Chinese and English interfaces. + - icon: 🎨 + title: Modern Interface + details: Elegant user experience based on Radix UI and Tailwind CSS. + - icon: 🚀 + title: High Performance + details: Fast development and runtime experience based on Go and React. + - icon: 📦 + title: Out of the Box + details: Cross-platform support, single executable file, quick deployment to Linux, Windows, macOS without complex configuration. +--- diff --git a/docs/en/troubleshoot/faq.md b/docs/en/troubleshoot/faq.md new file mode 100644 index 0000000..c0a5f69 --- /dev/null +++ b/docs/en/troubleshoot/faq.md @@ -0,0 +1,31 @@ +# FAQ + +## Basics & Installation + +### Q: What is Podux? How is it different from plain frpc? + +A: Podux is a graphical management tool built on top of frpc. It integrates the core frp client functionality and provides a modern web interface for managing configuration, monitoring status, and viewing logs — eliminating the need to manually edit config files and the lack of visual monitoring in vanilla frpc. + +### Q: Which operating systems does Podux support? + +A: Windows, macOS, and major Linux distributions are all supported. + +## Configuration & Usage + +### Q: Can I import my existing `frpc.toml` config file? + +A: It is currently recommended to recreate your configuration through Podux's visual interface to ensure all fields are correctly parsed and managed. + +### Q: How do configuration changes take effect? + +A: Podux supports hot reload. After saving changes in the web UI, the application automatically applies the new configuration — a full service restart is usually not required. + +### Q: Which proxy protocols are supported? + +A: **TCP**, **UDP**, **HTTP**, and **HTTPS** are fully supported. Advanced protocols such as **STCP** and **XTCP** are under development and will be available in future releases. + +## Troubleshooting + +### Q: How do I report a bug or unknown error? + +A: Please open an issue on the GitHub repository. Include detailed error logs, steps to reproduce, and your operating system information to help us diagnose the problem quickly. diff --git a/docs/guide/configuration.md b/docs/guide/configuration.md new file mode 100644 index 0000000..66f47a6 --- /dev/null +++ b/docs/guide/configuration.md @@ -0,0 +1,3 @@ +# 基础配置 + +待完善... diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md new file mode 100644 index 0000000..5301c9b --- /dev/null +++ b/docs/guide/getting-started.md @@ -0,0 +1,124 @@ +# 快速开始 + +本指南帮助你在 5 分钟内通过 Docker 完成 Podux 的安装和初始配置。 + +## 前置条件 + +- 已安装 [Docker](https://docs.docker.com/get-docker/) +- 一台已部署 frps 的公网服务器(或使用第三方 frp 服务) +- 运行 Podux 的机器能够访问公网 + +::: info 还没有公网服务器? +推荐使用 **[雨云](https://www.rainyun.com/s=ljw_?podux)** —— 价格实惠、稳定可靠的国内云服务器,适合部署 frps 和各类自托管服务。 +::: + +## 第一步:启动容器 + +```bash +docker run -d \ + --name podux \ + --restart unless-stopped \ + -p 8090:8090 \ + -v podux-data:/app/pb_data \ + ghcr.io/luckjiawei/podux:latest +``` + +启动成功后,终端会输出类似以下内容: + +```text +App: http://0.0.0.0:8090 +Admin: http://0.0.0.0:8090/_/ +``` + +::: tip 使用 Docker Compose +也可以通过 Docker Compose 管理: + +```yaml +services: + podux: + image: ghcr.io/luckjiawei/podux:latest + container_name: podux + restart: unless-stopped + ports: + - "8090:8090" + volumes: + - podux-data:/app/pb_data + +volumes: + podux-data: +``` + +```bash +docker compose up -d +``` +::: + +## 第二步:创建账号 + +打开浏览器访问主界面: + +```text +http://localhost:8090 +``` + +首次访问时,系统会引导你创建账号,填写用户名和密码后提交即可。 + +## 第三步:创建后台账号(可选) + +如需使用后台管理功能,可访问 Admin UI: + +```text +http://localhost:8090/_/ +``` + +首次访问时,系统会引导你创建后台账号,填写邮箱和密码后提交即可。 + +::: warning 安全提示 +如果 Podux 运行在公网可访问的服务器上,请务必设置强密码,并考虑通过防火墙限制 `8090` 端口的访问来源。 +::: + +## 第四步:进入主界面 + +访问应用主界面: + +```text +http://localhost:8090 +``` + +你将看到 Podux 的主控制台。 + +## 第五步:添加服务器 + +1. 点击左侧导航栏的 **服务器** 菜单 +2. 点击 **添加服务器**,填写以下信息: + + | 字段 | 说明 | 示例 | + | --- | --- | --- | + | 名称 | 服务器的显示名称 | `我的服务器` | + | 服务器地址 | frps 所在主机的 IP 或域名 | `your-server.com` | + | 服务器端口 | frps 监听端口,默认 `7000` | `7000` | + | 认证令牌 | frps 配置的 `auth.token` | `your-token` | + +3. 开启 **自动连接** 后保存,Podux 会立即尝试连接。 + +连接成功后,服务器卡片将显示 **在线** 状态和当前网络延迟。 + +## 第六步:添加代理 + +1. 点击 **代理** 菜单,然后点击 **添加代理** +2. 选择代理类型(TCP / UDP / HTTP / HTTPS 等)并填写配置: + + **示例:将本机 SSH (22 端口) 映射到公网** + + | 字段 | 值 | + | --- | --- | + | 名称 | `my-ssh` | + | 类型 | `TCP` | + | 服务器 | 选择已添加的服务器 | + | 本地 IP | `127.0.0.1` | + | 本地端口 | `22` | + | 远程端口 | `6022` | + +3. 保存后,Podux 会自动热重载 frpc 配置,无需重启。 + +之后即可通过 `ssh -p 6022 user@your-server.com` 访问本机。 diff --git a/docs/guide/installation.md b/docs/guide/installation.md new file mode 100644 index 0000000..50e2758 --- /dev/null +++ b/docs/guide/installation.md @@ -0,0 +1,3 @@ +# 安装部署 + +待完善... diff --git a/docs/guide/screenshots.md b/docs/guide/screenshots.md new file mode 100644 index 0000000..9b8660f --- /dev/null +++ b/docs/guide/screenshots.md @@ -0,0 +1,5 @@ +# 界面预览 + +Dashboard 总览 + + diff --git a/docs/guide/what-is-podux.md b/docs/guide/what-is-podux.md new file mode 100644 index 0000000..1df007b --- /dev/null +++ b/docs/guide/what-is-podux.md @@ -0,0 +1,105 @@ +# 什么是 Podux? + +Podux 是一个**现代化的 frpc 管理平台**,基于 PocketBase 和 React 构建,提供可视化界面来管理内网穿透服务。 + + +## 名称由来 + +**Podux** = **proxy** + **port** + **dux**(拉丁语:领导者、引导者) + +这个名字本身就是一份宣言:不只是一个工具的前端,而是一个统一管理隧道工具的平台。 + +## 为什么从 frpc-hub 改名? + +Podux 的前身是 **frpc-hub**,最初专为管理 frpc 而生。随着项目的成长,目标逐渐清晰 —— 不只是 frp,而是成为支持多种隧道工具的统一管理平台。 + +**frpc-hub** 这个名字将项目与单一工具绑定,无法承载更大的愿景。**Podux** 代表的是面向未来的设计:一个可以容纳更多隧道协议与工具的统一入口。 + +> 改名发生于 2026 年 3 月,仓库地址及所有相关引用均已同步更新。 + +## 背景 + +[frp](https://github.com/fatedier/frp) 是目前最流行的开源内网穿透工具之一,其客户端 `frpc` 通过配置文件(`.toml` / `.ini`)与服务端 `frps` 建立隧道,将内网服务暴露到公网。 + +然而,原生 frpc 的使用方式存在一些痛点: + +- **纯配置文件驱动**:每次修改都需要手动编辑文件并重启进程 +- **多服务器管理困难**:同时维护多个 frps 服务端时,配置容易混乱 +- **缺乏可视化监控**:无法直观查看连接状态和延迟情况 +- **运维成本高**:升级、备份、迁移全靠手动操作 + +Podux 正是为解决这些问题而生。 + +## 核心能力 + +### 服务器管理 + +集中管理多个 frps 服务器,支持: + +- 添加、编辑、删除服务器配置 +- 自动连接与断线重连 +- 实时延迟监控与地理位置显示 +- 一键切换启用/禁用状态 + +### 代理管理 + +通过可视化表单创建和管理代理隧道,支持以下代理类型: + +| 类型 | 说明 | +| --- | --- | +| TCP | 通用 TCP 端口转发 | +| UDP | UDP 流量转发 | +| HTTP | HTTP 反向代理 | +| HTTPS | HTTPS 反向代理 | +| STCP | 安全 TCP,点对点加密 | +| SUDP | 安全 UDP | + +### 热重载 + +修改代理配置后,Podux 会自动触发 frpc 重载,**无需手动重启**,服务零中断。 + +### 现代化界面 + +基于 Radix UI 组件库和 Tailwind CSS 构建,界面简洁美观,支持中英文切换。 + +## 技术架构 + +```text +┌─────────────────────────────────┐ +│ 浏览器 (React) │ +│ Radix UI + Tailwind CSS │ +└────────────────┬────────────────┘ + │ HTTP API +┌────────────────▼────────────────┐ +│ 后端 (PocketBase) │ +│ 内嵌 SQLite 数据库 │ +└────────────────┬────────────────┘ + │ 进程管理 +┌────────────────▼────────────────┐ +│ frpc │ +│ 本机运行的内网穿透客户端 │ +└────────────────┬────────────────┘ + │ 加密隧道 +┌────────────────▼────────────────┐ +│ frps │ +│ 公网服务端(用户自行部署) │ +└─────────────────────────────────┘ +``` + +Podux 以**单一可执行文件**的形式分发,内嵌了 PocketBase 后端与前端资源,开箱即用,无需额外依赖。 + +## 与手动管理对比 + +| 对比项 | 手动管理 frpc | Podux | +| --- | --- | --- | +| 配置方式 | 编辑 `.toml` 文件 | 可视化表单 | +| 重载配置 | 手动重启进程 | 自动热重载 | +| 多服务器 | 维护多份配置文件 | 统一界面管理 | +| 状态监控 | 查看日志 | 实时监控面板 | +| 跨平台部署 | 需配置环境 | 单文件,开箱即用 | + +## 适用场景 + +- **开发者**:快速将本地开发环境(Web 服务、数据库、SSH 等)暴露到公网进行调试或演示 +- **运维人员**:统一管理多台机器的内网穿透配置,降低运维复杂度 +- **个人用户**:无需记忆复杂的配置语法,通过界面轻松配置家庭服务器、NAS、远程桌面等 diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..00b53d8 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,48 @@ +--- +# https://vitepress.dev/reference/default-theme-home-page +layout: home + +hero: + name: "Podux" + text: "现代化的 Frpc 管理平台" + tagline: 一站式内网穿透服务管理平台,让 frpc 配置和监控变得简单高效 + image: + src: /logo.svg + alt: Podux Dashboard + actions: + - theme: brand + text: 什么是 Podux? + link: /guide/what-is-podux + - theme: alt + text: 快速开始 + link: /guide/getting-started + - theme: alt + text: GitHub + link: https://github.com/luckjiawei/podux + +features: + - icon: 🖥️ + title: 服务器管理 + details: 轻松创建、配置和管理多个 frpc 服务器,支持自动连接和状态监控 + - icon: 🔌 + title: 代理配置 + details: 支持 HTTP、HTTPS、TCP、UDP 等多种代理类型,配置简单直观 + - icon: 📊 + title: 实时监控 + details: 实时网络延迟监控、地理位置展示,一目了然 + - icon: 🔄 + title: 热重载 + details: 配置更改后自动重载 frpc,无需手动重启服务 + - icon: 🌐 + title: 多语言支持 + details: 内置国际化支持,轻松切换中英文界面 + - icon: 🎨 + title: 现代化界面 + details: 基于 Radix UI 和 Tailwind CSS,提供优雅的用户体验 + - icon: 🚀 + title: 高性能 + details: 基于 Go 和 React,提供快速的开发和运行体验 + - icon: 📦 + title: 开箱即用 + details: 跨平台支持,单一可执行文件,无需复杂配置即可快速部署到 Linux、Windows、macOS +--- diff --git a/docs/package.json b/docs/package.json new file mode 100644 index 0000000..f9f6db9 --- /dev/null +++ b/docs/package.json @@ -0,0 +1,11 @@ +{ + "scripts": { + "docs:dev": "vitepress dev", + "docs:build": "vitepress build", + "docs:preview": "vitepress preview" + }, + "devDependencies": { + "vitepress": "^1.5.0", + "vue": "^3.5.13" + } +} \ No newline at end of file diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml new file mode 100644 index 0000000..9b60ae1 --- /dev/null +++ b/docs/pnpm-lock.yaml @@ -0,0 +1,9 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: {} diff --git a/docs/public/11.png b/docs/public/11.png new file mode 100644 index 0000000..399da5c Binary files /dev/null and b/docs/public/11.png differ diff --git a/docs/public/22.png b/docs/public/22.png new file mode 100644 index 0000000..651119f Binary files /dev/null and b/docs/public/22.png differ diff --git a/docs/public/33.png b/docs/public/33.png new file mode 100644 index 0000000..62ef2b1 Binary files /dev/null and b/docs/public/33.png differ diff --git a/docs/public/44.png b/docs/public/44.png new file mode 100644 index 0000000..55d03e4 Binary files /dev/null and b/docs/public/44.png differ diff --git a/docs/public/55.png b/docs/public/55.png new file mode 100644 index 0000000..b47a3e2 Binary files /dev/null and b/docs/public/55.png differ diff --git a/docs/public/66.png b/docs/public/66.png new file mode 100644 index 0000000..bdc85a9 Binary files /dev/null and b/docs/public/66.png differ diff --git a/docs/public/favicon.ico b/docs/public/favicon.ico new file mode 100644 index 0000000..4e3441c Binary files /dev/null and b/docs/public/favicon.ico differ diff --git a/docs/public/logo.svg b/docs/public/logo.svg new file mode 100644 index 0000000..3c23852 --- /dev/null +++ b/docs/public/logo.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/docs/troubleshoot/faq.md b/docs/troubleshoot/faq.md new file mode 100644 index 0000000..d406d64 --- /dev/null +++ b/docs/troubleshoot/faq.md @@ -0,0 +1,31 @@ +# 常见问题 + +## 基础与安装 + +### Q: Podux 是什么?它和原本的 Frpc 有什么区别? + +A: Podux 是一个基于 Frpc 的图形化管理工具。它集成了 Frp 客户端的核心功能,并提供了一个现代化的 Web 界面来管理配置文件、监控状态和日志,解决了原生 Frpc 需要手动编辑配置文件和缺乏可视化监控的痛点。 + +### Q: Podux 支持哪些操作系统? + +A: 目前支持 Windows、macOS 和 Linux 主流发行版。 + +## 配置与使用 + +### Q: 我现有的 `frpc.toml` 配置文件可以直接导入吗? + +A: 目前建议通过 Podux 的可视化界面重新创建配置,以确保所有字段都能被正确解析和管理。 + +### Q: 修改配置后通过什么方式生效? + +A: Podux 支持配置热重载(Hot Reload)。在 Web 界面保存修改后,程序会自动尝试应用新的配置,通常无需重启整个服务。 + +### Q: 支持哪些类型的代理协议? + +A: 目前完整支持 **TCP**、**UDP**、**HTTP** 和 **HTTPS** 协议。**STCP** 和 **XTCP** 等高级协议的支持正在开发中,敬请期待后续版本更新。 + +## 故障排查 + +### Q: 遇到未知错误或 Bug 该如何反馈? + +A: 欢迎在 GitHub 仓库提交 Issue,请尽量提供详细的错误日志、复现步骤以及您的操作系统环境信息,以便我们快速定位问题。