8 Commits
Author SHA1 Message Date
刘嘉伟 bbda5b05ca 📝 docs: Update READMEs to reflect the project rename from frpc-hub to Podux. 2026-03-16 17:50:47 +08:00
刘嘉伟 59e795f453 💚 Update GitHub Actions workflow configuration. 2026-03-16 17:43:41 +08:00
刘嘉伟 447cb7930c refactor: rename project from frpc-hub to podux across codebase, configurations, and UI. 2026-03-16 17:15:15 +08:00
刘嘉伟 fbdfb273c8 🔖 v0.1.2 2026-03-14 18:50:06 +08:00
刘嘉伟 422ebd5f16 Merge pull request #2 from luckjiawei/feature/GH-1-basic-config-user-param
✨ feat: support frpc user field in server config and proxy name resol…
2026-03-14 18:47:22 +08:00
刘嘉伟andClaude Sonnet 4.6 c0b4c7bb94 ✨ feat: support frpc user field in server config and proxy name resolution
- Add `user` field to fh_servers collection via migration
- Set cfg.User from server record; call c.Complete(user) so proxy names
  get the correct "<user>.<name>" prefix when looking up status
- Mask sensitive fields (token/password/etc.) in frpc config debug logs
- Support user field in TOML importer (parse + execute)
- Add user input to server form page and display in server detail page
- Add start/stop action buttons on server detail page
- Add i18n keys for user field and start/stop feedback toasts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-14 18:42:14 +08:00
刘嘉伟 d10538f1c3 docs: add Quick Start guide link to READMEs 2026-03-12 15:32:05 +08:00
刘嘉伟 5cfc402a5e feat: Add Chinese README, screenshot, and language selector to main README. 2026-03-12 15:29:20 +08:00
44 changed files with 429 additions and 128 deletions

No files matched your search

+2 -2
View File
@@ -19,8 +19,8 @@ build/dist/
dist/
*.tar.gz
*.zip
frpc-hub
frpc-hub.exe
podux
podux.exe
# Frontend (built inside Docker)
site/node_modules/
+42 -1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
@@ -81,5 +82,45 @@ jobs:
go build \
-trimpath \
-ldflags "-s -w -X main.Version=ci -X main.BuildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
-o /tmp/frpc-hub \
-o /tmp/podux \
main.go
# ──────────────────────────────────────────────
# Docker: build & push :dev image (dev branch only)
# ──────────────────────────────────────────────
docker-dev:
name: Docker (dev tag)
if: github.ref == 'refs/heads/dev' && github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: ghcr.io/${{ github.repository }}:dev
build-args: |
VERSION=dev
BUILD_TIME=${{ github.event.head_commit.timestamp }}
cache-from: type=gha
cache-to: type=gha,mode=max
+2 -2
View File
@@ -9,7 +9,7 @@ env:
GO_VERSION_FILE: go.mod
NODE_VERSION: '20'
PNPM_VERSION: '10'
APP_NAME: frpc-hub
APP_NAME: podux
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
@@ -197,7 +197,7 @@ jobs:
type=semver,pattern={{major}}
type=raw,value=latest,enable=${{ !contains(github.ref_name, '-') }}
labels: |
org.opencontainers.image.title=frpc-hub
org.opencontainers.image.title=podux
org.opencontainers.image.description=FRP client hub with web UI
- name: Build and push
+2
View File
@@ -31,6 +31,8 @@ Thumbs.db
/bin/
/dist/
/pb_public/
podux
podux.exe
# PocketBase
/pb_data/
+8 -8
View File
@@ -1,4 +1,4 @@
# Multi-stage Dockerfile for frpc-hub
# Multi-stage Dockerfile for podux
# Stage 1: Build frontend
FROM --platform=linux/amd64 node:22-alpine AS frontend-builder
@@ -32,7 +32,7 @@ RUN GOARM=$(echo "${TARGETVARIANT}" | tr -d 'v') \
CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build \
-trimpath \
-ldflags "-s -w -X main.Version=${VERSION} -X main.BuildTime=${BUILD_TIME}" \
-o frpc-hub \
-o podux \
main.go
# Stage 3: Final runtime image
@@ -43,22 +43,22 @@ RUN apk add --no-cache \
tzdata \
&& rm -rf /var/cache/apk/*
RUN addgroup -g 1000 frpchub && \
adduser -D -u 1000 -G frpchub frpchub
RUN addgroup -g 1000 podux && \
adduser -D -u 1000 -G podux podux
WORKDIR /app
COPY --from=backend-builder /app/frpc-hub .
COPY --from=backend-builder /app/podux .
RUN mkdir -p /app/pb_data && \
chown -R frpchub:frpchub /app
chown -R podux:podux /app
USER frpchub
USER podux
EXPOSE 8090
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
ENTRYPOINT ["/app/frpc-hub"]
ENTRYPOINT ["/app/podux"]
CMD ["serve", "--http", "0.0.0.0:8090"]
+28 -14
View File
@@ -7,25 +7,34 @@
[![Issues][issues-shield]][issues-url]
[![Apache License][license-shield]][license-url]
<div align="right">
<b>English</b> | <a href="README_zh.md">简体中文</a>
</div>
> **Project Renamed:** This project was previously known as **frpc-hub** and has been officially renamed to **Podux**.
> The repository URL and all references have been updated accordingly.
<!-- PROJECT LOGO -->
<br />
<div align="center">
<a href="https://github.com/luckjiawei/frpc-hub">
<a href="https://github.com/luckjiawei/podux">
<img src="site/src/assets/logo.png" alt="Logo" width="140">
</a>
<h3 align="center">Frpc-Hub</h3>
<h3 align="center">Podux</h3>
<p align="center">
<strong>Frpc-Hub</strong> is the web UI frpc always needed.
<strong>Podux</strong> is the web UI frpc always needed.
<br />
Manage all your clients, proxies, and connections from one place. No terminal. No config editing.
<br /><br />
<a href="https://frpchub.jwinks.com/en/guide/getting-started.html"><strong>🚀 Quick Start</strong></a>
&nbsp;&nbsp;·&nbsp;&nbsp;
<a href="https://frpchub.jwinks.com/"><strong>📖 Documentation</strong></a>
&nbsp;&nbsp;·&nbsp;&nbsp;
<a href="https://github.com/luckjiawei/frpc-hub/issues">🐛 Report Bug</a>
<a href="https://github.com/luckjiawei/podux/issues">🐛 Report Bug</a>
&nbsp;&nbsp;·&nbsp;&nbsp;
<a href="https://github.com/luckjiawei/frpc-hub/issues">✨ Request Feature</a>
<a href="https://github.com/luckjiawei/podux/issues">✨ Request Feature</a>
</p>
<br />
@@ -42,22 +51,27 @@
</div>
## Screenshot
![Screenshot](screenshot/1.png)
## Milestones
- 2026-03-03: Released v0.1.0
- 2026-03-12: Released v0.1.1
- 2026-03-12: Released v0.1.2
## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=luckjiawei/frpc-hub&type=Date)](https://www.star-history.com/#luckjiawei/frpc-desktop&Date)
[![Star History Chart](https://api.star-history.com/svg?repos=luckjiawei/podux&type=Date)](https://www.star-history.com/#luckjiawei/frpc-desktop&Date)
<!-- MARKDOWN LINKS & IMAGES -->
[forks-shield]: https://img.shields.io/github/forks/luckjiawei/frpc-hub.svg?style=for-the-badge
[forks-url]: https://github.com/luckjiawei/frpc-hub/network/members
[stars-shield]: https://img.shields.io/github/stars/luckjiawei/frpc-hub.svg?style=for-the-badge
[stars-url]: https://github.com/luckjiawei/frpc-hub/stargazers
[issues-shield]: https://img.shields.io/github/issues/luckjiawei/frpc-hub.svg?style=for-the-badge
[issues-url]: https://github.com/luckjiawei/frpc-hub/issues
[license-shield]: https://img.shields.io/github/license/luckjiawei/frpc-hub.svg?style=for-the-badge
[license-url]: https://github.com/luckjiawei/frpc-hub/blob/main/LICENSE
[forks-shield]: https://img.shields.io/github/forks/luckjiawei/podux.svg?style=for-the-badge
[forks-url]: https://github.com/luckjiawei/podux/network/members
[stars-shield]: https://img.shields.io/github/stars/luckjiawei/podux.svg?style=for-the-badge
[stars-url]: https://github.com/luckjiawei/podux/stargazers
[issues-shield]: https://img.shields.io/github/issues/luckjiawei/podux.svg?style=for-the-badge
[issues-url]: https://github.com/luckjiawei/podux/issues
[license-shield]: https://img.shields.io/github/license/luckjiawei/podux.svg?style=for-the-badge
[license-url]: https://github.com/luckjiawei/podux/blob/main/LICENSE
+77
View File
@@ -0,0 +1,77 @@
<a name="readme-top"></a>
<!-- PROJECT SHIELDS -->
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![Apache License][license-shield]][license-url]
<div align="right">
<a href="README.md">English</a> | <b>简体中文</b>
</div>
> **项目更名通知:** 本项目原名为 **frpc-hub**,现已正式更名为 **Podux**。
> 仓库地址及所有相关引用均已同步更新。
<!-- PROJECT LOGO -->
<br />
<div align="center">
<a href="https://github.com/luckjiawei/podux">
<img src="site/src/assets/logo.png" alt="Logo" width="140">
</a>
<h3 align="center">Podux</h3>
<p align="center">
<strong>Podux</strong> —— frpc 梦寐以求的 Web 前端管理面板。
<br />
在一个地方集中管理您所有的客户端、代理和连接。告别终端。无需再手动编辑配置文件。
<br /><br />
<a href="https://frpchub.jwinks.com/guide/getting-started.html"><strong>🚀 快速开始</strong></a>
&nbsp;&nbsp;·&nbsp;&nbsp;
<a href="https://frpchub.jwinks.com/"><strong>📖 官方文档</strong></a>
&nbsp;&nbsp;·&nbsp;&nbsp;
<a href="https://github.com/luckjiawei/podux/issues">🐛 提交 Bug</a>
&nbsp;&nbsp;·&nbsp;&nbsp;
<a href="https://github.com/luckjiawei/podux/issues">✨ 需求建议</a>
</p>
<br />
<p align="center">
<strong>✅ 多节点管理</strong> &nbsp;·&nbsp;
<strong>📊 实时数据大盘</strong> &nbsp;·&nbsp;
<strong>🌐 网络监控</strong> &nbsp;·&nbsp;
<strong>🚀 一键开机自启</strong> &nbsp;·&nbsp;
<strong>⚡ 高性能稳定</strong> &nbsp;·&nbsp;
<strong>🐳 完美适配 Docker</strong> &nbsp;·&nbsp;
<strong>🎨 现代化 UI 设计</strong> &nbsp;·&nbsp;
</p>
</div>
## 界面截图
![界面截图](screenshot/1.png)
## 版本里程碑
- 2026-03-03: 发布 v0.1.0
- 2026-03-12: 发布 v0.1.1
- 2026-03-14: 发布 v0.1.2
## Star 历史
[![Star History Chart](https://api.star-history.com/svg?repos=luckjiawei/podux&type=Date)](https://www.star-history.com/#luckjiawei/frpc-desktop&Date)
<!-- MARKDOWN LINKS & IMAGES -->
[forks-shield]: https://img.shields.io/github/forks/luckjiawei/podux.svg?style=for-the-badge
[forks-url]: https://github.com/luckjiawei/podux/network/members
[stars-shield]: https://img.shields.io/github/stars/luckjiawei/podux.svg?style=for-the-badge
[stars-url]: https://github.com/luckjiawei/podux/stargazers
[issues-shield]: https://img.shields.io/github/issues/luckjiawei/podux.svg?style=for-the-badge
[issues-url]: https://github.com/luckjiawei/podux/issues
[license-shield]: https://img.shields.io/github/license/luckjiawei/podux.svg?style=for-the-badge
[license-url]: https://github.com/luckjiawei/podux/blob/main/LICENSE
+2 -2
View File
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
# Build script for frpc-hub - Multi-architecture support
# Build script for podux - Multi-architecture support
# Usage: ./build.sh [options]
# Options:
# --arch <arch> Build for specific architecture (linux-amd64, linux-arm64, darwin-amd64, darwin-arm64, windows-amd64, all)
@@ -10,7 +10,7 @@ set -e
# --help Show this help message
# Configuration
APP_NAME="frpc-hub"
APP_NAME="podux"
VERSION=${VERSION:-$(git describe --tags --always --dirty 2>/dev/null || echo "dev")}
BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S')
SITE_DIR="../site"
+6 -6
View File
@@ -4,22 +4,22 @@ version: '3.8'
# Usage: docker compose -f docker-compose.build.yml up -d
services:
frpc-hub:
podux:
build:
context: ..
dockerfile: Dockerfile
args:
VERSION: ${VERSION:-latest}
BUILD_TIME: ${BUILD_TIME:-$(date -u '+%Y-%m-%d_%H:%M:%S')}
image: frpc-hub:${VERSION:-latest}
container_name: frpc-hub
image: podux:${VERSION:-latest}
container_name: podux
restart: unless-stopped
ports:
- "8090:8090"
volumes:
- frpc-hub-data:/app/pb_data
- podux-data:/app/pb_data
environment:
- TZ=Asia/Shanghai
@@ -53,9 +53,9 @@ services:
retries: 3
volumes:
frpc-hub-data:
podux-data:
driver: local
networks:
default:
name: frpc-hub-network
name: podux-network
+6 -6
View File
@@ -1,16 +1,16 @@
version: '3.8'
services:
frpc-hub:
image: ghcr.io/luckjiawei/frpc-hub:${VERSION:-latest}
container_name: frpc-hub
podux:
image: ghcr.io/luckjiawei/podux:${VERSION:-latest}
container_name: podux
restart: unless-stopped
ports:
- "8090:8090"
volumes:
- frpc-hub-data:/app/pb_data
- podux-data:/app/pb_data
environment:
- TZ=Asia/Shanghai
@@ -44,9 +44,9 @@ services:
retries: 3
volumes:
frpc-hub-data:
podux-data:
driver: local
networks:
default:
name: frpc-hub-network
name: podux-network
+1 -1
View File
@@ -1,4 +1,4 @@
module frpc-hub
module podux
go 1.25.5
+4 -4
View File
@@ -1,10 +1,10 @@
package dashboard
import (
proxyapp "frpc-hub/internal/application/proxy"
serverapp "frpc-hub/internal/application/server"
proxydomain "frpc-hub/internal/domain/proxy"
serverdomain "frpc-hub/internal/domain/server"
proxyapp "podux/internal/application/proxy"
serverapp "podux/internal/application/server"
proxydomain "podux/internal/domain/proxy"
serverdomain "podux/internal/domain/server"
"time"
"github.com/pocketbase/pocketbase/core"
+41 -9
View File
@@ -16,9 +16,9 @@ import (
"syscall"
"time"
proxydomain "frpc-hub/internal/domain/proxy"
serverdomain "frpc-hub/internal/domain/server"
"frpc-hub/pkg/utils"
proxydomain "podux/internal/domain/proxy"
serverdomain "podux/internal/domain/server"
"podux/pkg/utils"
"github.com/fatedier/frp/client"
v1 "github.com/fatedier/frp/pkg/config/v1"
@@ -27,6 +27,7 @@ import (
)
var validServerID = regexp.MustCompile(`^[a-z0-9]{15}$`)
var sensitiveRegex = regexp.MustCompile(`"(?i)(token|password|sk|pwd|secretkey|httpuser|httppwd|oidctoken|oidcclientsecret)":"(?:[^"\\]|\\.)*"`)
type Service struct {
mu sync.RWMutex
@@ -60,6 +61,7 @@ func (fs *Service) genCommonCfgs(id *string) (*v1.ClientCommonConfig, error) {
// basic config
cfg.ServerAddr = record.GetString("serverAddr")
cfg.ServerPort = record.GetInt("serverPort")
cfg.User = record.GetString("user")
logDirPath := filepath.Join("pb_data", "frpc", *id)
if err := os.MkdirAll(logDirPath, 0755); err != nil {
@@ -233,6 +235,19 @@ func (fs *Service) LaunchFrpc(serverId *string) error {
fs.app.Logger().Debug("Config", "serverAddr", cfg.ServerAddr, "serverPort", cfg.ServerPort, "proxyCount", len(proxyCfgs))
for _, c := range proxyCfgs {
c.Complete(cfg.User)
}
// Print frp configurations in logs with sensitive data masked
commonCfgBytes, _ := json.Marshal(cfg)
proxyCfgsBytes, _ := json.Marshal(proxyCfgs)
safeCommon := sensitiveRegex.ReplaceAll(commonCfgBytes, []byte(`"${1}":"***"`))
safeProxies := sensitiveRegex.ReplaceAll(proxyCfgsBytes, []byte(`"${1}":"***"`))
fs.app.Logger().Info("FRP Configuration", "common", string(safeCommon), "proxies", string(safeProxies))
cfg.Complete()
log.InitLogger(cfg.Log.To, cfg.Log.Level, int(cfg.Log.MaxDays), cfg.Log.DisablePrintColor)
@@ -269,13 +284,13 @@ func (fs *Service) LaunchFrpc(serverId *string) error {
done <- err
}()
go fs.monitorServiceStatus(serverId, svr, ctx, done)
go fs.monitorServiceStatus(serverId, svr, ctx, done, cfg.User)
return nil
}
// monitorServiceStatus monitors service status and updates the database.
func (fs *Service) monitorServiceStatus(id *string, svr *client.Service, ctx context.Context, done <-chan error) {
func (fs *Service) monitorServiceStatus(id *string, svr *client.Service, ctx context.Context, done <-chan error, user string) {
time.Sleep(2 * time.Second)
select {
@@ -292,7 +307,7 @@ func (fs *Service) monitorServiceStatus(id *string, svr *client.Service, ctx con
fs.app.Logger().Info("Service is running", "id", *id)
}
go fs.monitorProxyStatus(id, svr, ctx)
go fs.monitorProxyStatus(id, svr, ctx, user)
ticker := time.NewTicker(5 * time.Second)
defer ticker.Stop()
@@ -327,7 +342,7 @@ func (fs *Service) destroying(id *string) {
}
// monitorProxyStatus monitors proxy status from frp and updates the database.
func (fs *Service) monitorProxyStatus(serverId *string, svr *client.Service, ctx context.Context) {
func (fs *Service) monitorProxyStatus(serverId *string, svr *client.Service, ctx context.Context, user string) {
fs.app.Logger().Info("Starting proxy status monitoring", "serverId", *serverId)
statusExporter := svr.StatusExporter()
@@ -348,8 +363,12 @@ func (fs *Service) monitorProxyStatus(serverId *string, svr *client.Service, ctx
}
for _, proxy := range proxies {
proxyName := proxy.Name + "-" + proxy.Id
status, exists := statusExporter.GetProxyStatus(proxyName)
baseName := proxy.Name + "-" + proxy.Id
prefix := ""
if user != "" {
prefix = user + "."
}
status, exists := statusExporter.GetProxyStatus(prefix + baseName)
if exists {
var bootStatus proxydomain.ProxyBootStatus
@@ -474,6 +493,19 @@ func (fs *Service) ReloadFrpc(serverId *string) error {
return err
}
server, err := fs.app.FindRecordById("fh_servers", *serverId)
if err != nil {
return err
}
user := server.GetString("user")
for _, c := range proxyCfgs {
c.Complete(user)
}
proxyCfgsBytes, _ := json.Marshal(proxyCfgs)
safeProxies := sensitiveRegex.ReplaceAll(proxyCfgsBytes, []byte(`"${1}":"***"`))
fs.app.Logger().Info("FRP Reload Configurations", "proxies", string(safeProxies))
fs.mu.RLock()
svr := fs.processes[*serverId]
fs.mu.RUnlock()
+1 -1
View File
@@ -53,7 +53,7 @@ func (s *Service) GetFrpReleases() ([]GithubRelease, error) {
return nil, err
}
req.Header.Set("User-Agent", "frpc-hub-server")
req.Header.Set("User-Agent", "podux-server")
resp, err := client.Do(req)
if err != nil {
+4
View File
@@ -14,6 +14,7 @@ import (
type tomlFrpClientConfig struct {
ServerAddr string `toml:"serverAddr"`
ServerPort int `toml:"serverPort"`
User string `toml:"user"`
Auth tomlAuthConfig `toml:"auth"`
Log tomlLogConfig `toml:"log"`
Transport tomlTransportConfig `toml:"transport"`
@@ -67,6 +68,7 @@ type ImportServerInfo struct {
Name string `json:"name"`
ServerAddr string `json:"serverAddr"`
ServerPort int `json:"serverPort"`
User string `json:"user"`
Auth map[string]interface{} `json:"auth"`
Log map[string]interface{} `json:"log"`
Transport map[string]interface{} `json:"transport"`
@@ -200,6 +202,7 @@ func (s *Service) ParseToml(req *ParseTomlRequest) (*ImportPreviewResponse, erro
Name: fmt.Sprintf("%s:%d", cfg.ServerAddr, serverPort),
ServerAddr: cfg.ServerAddr,
ServerPort: serverPort,
User: cfg.User,
Auth: authMap,
Log: logMap,
Transport: transportMap,
@@ -393,6 +396,7 @@ func (s *Service) handleServerImport(
serverRecord.Set("serverName", serverName)
serverRecord.Set("serverAddr", cfg.ServerAddr)
serverRecord.Set("serverPort", serverPort)
serverRecord.Set("user", cfg.User)
serverRecord.Set("serverVersion", "built-in")
serverRecord.Set("auth", string(authJSON))
serverRecord.Set("log", string(logJSON))
+1 -1
View File
@@ -3,7 +3,7 @@ package monitoring
import (
"encoding/json"
"fmt"
"frpc-hub/pkg/utils"
"podux/pkg/utils"
"time"
"github.com/pocketbase/dbx"
+1 -1
View File
@@ -2,7 +2,7 @@ package monitoring
import (
"fmt"
"frpc-hub/pkg/utils"
"podux/pkg/utils"
"sync"
"time"
+1 -1
View File
@@ -1,7 +1,7 @@
package proxy
import (
proxydomain "frpc-hub/internal/domain/proxy"
proxydomain "podux/internal/domain/proxy"
"github.com/pocketbase/pocketbase/core"
)
+1 -1
View File
@@ -1,7 +1,7 @@
package server
import (
serverdomain "frpc-hub/internal/domain/server"
serverdomain "podux/internal/domain/server"
"github.com/pocketbase/pocketbase/core"
)
+4 -4
View File
@@ -7,7 +7,7 @@ import (
"net/http"
"time"
"frpc-hub/pkg/buildinfo"
"podux/pkg/buildinfo"
"github.com/pocketbase/pocketbase/core"
)
@@ -168,15 +168,15 @@ type LatestVersionResponse struct {
HTMLURL string `json:"html_url"`
}
// GetLatestVersion fetches the latest frpc-hub release from GitHub.
// GetLatestVersion fetches the latest podux release from GitHub.
func (s *Service) GetLatestVersion() (*LatestVersionResponse, error) {
client := &http.Client{Timeout: 10 * time.Second}
req, err := http.NewRequest("GET", "https://api.github.com/repos/luckjiawei/frpc-hub/releases/latest", nil)
req, err := http.NewRequest("GET", "https://api.github.com/repos/luckjiawei/podux/releases/latest", nil)
if err != nil {
return nil, err
}
req.Header.Set("User-Agent", "frpc-hub-server")
req.Header.Set("User-Agent", "podux-server")
req.Header.Set("Accept", "application/vnd.github+json")
resp, err := client.Do(req)
+1 -1
View File
@@ -1,6 +1,6 @@
package proxy
import "frpc-hub/pkg/types"
import "podux/pkg/types"
// Proxy represents a frpc proxy configuration record.
type Proxy struct {
@@ -1,7 +1,7 @@
package persistence
import (
"frpc-hub/internal/domain/proxy"
"podux/internal/domain/proxy"
"github.com/pocketbase/dbx"
"github.com/pocketbase/pocketbase/core"
@@ -1,7 +1,7 @@
package persistence
import (
"frpc-hub/internal/domain/server"
"podux/internal/domain/server"
"github.com/pocketbase/dbx"
"github.com/pocketbase/pocketbase/core"
@@ -1,8 +1,8 @@
package httphandler
import (
"frpc-hub/internal/application/dashboard"
"frpc-hub/pkg/response"
"podux/internal/application/dashboard"
"podux/pkg/response"
"github.com/pocketbase/pocketbase/core"
)
+1 -1
View File
@@ -1,7 +1,7 @@
package httphandler
import (
"frpc-hub/internal/application/frpc"
"podux/internal/application/frpc"
"net/http"
"github.com/pocketbase/pocketbase/core"
+1 -1
View File
@@ -1,7 +1,7 @@
package httphandler
import (
"frpc-hub/internal/application/github"
"podux/internal/application/github"
"github.com/pocketbase/pocketbase/core"
)
+1 -1
View File
@@ -1,7 +1,7 @@
package httphandler
import (
"frpc-hub/internal/application/importer"
"podux/internal/application/importer"
"net/http"
"github.com/pocketbase/pocketbase/core"
+1 -1
View File
@@ -1,7 +1,7 @@
package httphandler
import (
"frpc-hub/internal/application/system"
"podux/internal/application/system"
"net/http"
"github.com/pocketbase/pocketbase/core"
+1 -1
View File
@@ -1,7 +1,7 @@
package httphandler
import (
"frpc-hub/internal/application/version"
"podux/internal/application/version"
"github.com/pocketbase/pocketbase/core"
)
+11 -11
View File
@@ -6,17 +6,17 @@ import (
"log"
"github.com/spf13/cobra"
"frpc-hub/internal/application/dashboard"
"frpc-hub/internal/application/frpc"
"frpc-hub/internal/application/importer"
"frpc-hub/internal/application/monitoring"
"frpc-hub/internal/application/proxy"
"frpc-hub/internal/application/server"
"frpc-hub/internal/application/system"
"frpc-hub/internal/application/version"
"frpc-hub/internal/infrastructure/persistence"
httphandler "frpc-hub/internal/interfaces/http"
_ "frpc-hub/migrations"
"podux/internal/application/dashboard"
"podux/internal/application/frpc"
"podux/internal/application/importer"
"podux/internal/application/monitoring"
"podux/internal/application/proxy"
"podux/internal/application/server"
"podux/internal/application/system"
"podux/internal/application/version"
"podux/internal/infrastructure/persistence"
httphandler "podux/internal/interfaces/http"
_ "podux/migrations"
"github.com/pocketbase/pocketbase"
"github.com/pocketbase/pocketbase/apis"
@@ -0,0 +1,45 @@
package migrations
import (
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
)
func init() {
m.Register(func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("pbc_3738798621")
if err != nil {
return err
}
// add field
if err := collection.Fields.AddMarshaledJSONAt(14, []byte(`{
"autogeneratePattern": "",
"hidden": false,
"id": "text2375276105",
"max": 0,
"min": 0,
"name": "user",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
return app.Save(collection)
}, func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("pbc_3738798621")
if err != nil {
return err
}
// remove field
collection.Fields.RemoveById("text2375276105")
return app.Save(collection)
})
}
+1 -1
View File
@@ -2,4 +2,4 @@ package buildinfo
// AppVersion is the single source of truth for the application version.
// Update this value to release a new version.
const AppVersion = "0.1.1"
const AppVersion = "0.1.2"
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 589 KiB

+1 -1
View File
@@ -5,7 +5,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Frpc Hub</title>
<title>Podux</title>
</head>
<body>
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "frpc-hub-web",
"name": "podux-web",
"private": true,
"version": "0.1.1",
"version": "0.1.2",
"type": "module",
"scripts": {
"dev": "vite",
+5 -5
View File
@@ -142,11 +142,11 @@ export function MainLayout({ children }: MainLayoutProps) {
whileHover={{ scale: 1.1, rotate: 10 }}
whileTap={{ scale: 0.95 }}
src={logo}
alt="Frpc Hub Logo"
alt="Podux Logo"
className="h-8 w-8 cursor-pointer rounded-2xl object-contain"
/>
<Text size="4" weight="bold">
Frpc Hub
Podux
</Text>
</Flex>
</Link>
@@ -342,7 +342,7 @@ export function MainLayout({ children }: MainLayoutProps) {
{/* Left: Copyright */}
<Flex align="center" gap="2">
<Text size="1" color="gray">
© 2026 Frpc Hub. All rights reserved.
© 2026 Podux. All rights reserved.
</Text>
</Flex>
@@ -398,7 +398,7 @@ export function MainLayout({ children }: MainLayoutProps) {
{/* Right: Links */}
<Flex align="center" gap="4">
<a
href="https://github.com/luckjiawei/frpc-hub"
href="https://github.com/luckjiawei/podux"
target="_blank"
rel="noopener noreferrer"
className="no-underline"
@@ -409,7 +409,7 @@ export function MainLayout({ children }: MainLayoutProps) {
className="text-gray-500 transition-colors hover:text-gray-700"
>
<Icon icon="lucide:github" width="16" height="16" />
<Text size="1">Frpc Hub</Text>
<Text size="1">Podux</Text>
</Flex>
</a>
</Flex>
+11 -6
View File
@@ -53,14 +53,14 @@
"forgotPassword": "Forgot password?",
"loginSuccess": "Login successful",
"loginFailed": "Login failed",
"signInToAccount": "Sign in to your Frpc Hub account",
"signInToAccount": "Sign in to your Podux account",
"enterEmail": "Enter your email",
"enterPassword": "Enter your password"
},
"dashboard": {
"title": "Dashboard",
"welcome": "Welcome to Frpc Hub",
"overview": "Overview of your Frpc Hub",
"welcome": "Welcome to Podux",
"overview": "Overview of your Podux",
"systemOverview": "System Overview",
"totalServers": "Total Servers",
"runningServers": "Running Servers",
@@ -87,7 +87,6 @@
"topologyLocalService": "Local Service",
"noProxies": "No proxies configured",
"noProxiesDesc": "Add a proxy to see the type distribution",
"quickActions": "Quick Actions",
"qaServersDesc": "Manage server connections",
"qaProxiesDesc": "Configure proxy tunnels",
"qaImportDesc": "Import from TOML config",
@@ -156,6 +155,8 @@
"failedToLoad": "Failed to load server",
"backToServers": "Back to Servers",
"serverNamePlaceholder": "e.g. Production Server",
"user": "User",
"userPlaceholder": "e.g. admin",
"hostAddressLabel": "Host Address",
"hostAddressPlaceholder": "e.g. frps.example.com",
"portLabel": "Port",
@@ -233,7 +234,11 @@
"saveChanges": "Save Changes",
"errorInvalidIP": "Invalid IP address or domain name",
"errorInvalidPort": "Port must be between 1 and 65535",
"errorInvalidServerName": "Only letters, numbers, Chinese characters, spaces, dots, underscores, and hyphens are allowed"
"errorInvalidServerName": "Only letters, numbers, Chinese characters, spaces, dots, underscores, and hyphens are allowed",
"startSuccess": "Server started successfully",
"startFailed": "Failed to start server",
"stopSuccess": "Server stopped successfully",
"stopFailed": "Failed to stop server"
},
"proxy": {
"title": "Proxies",
@@ -331,7 +336,7 @@
"profile": "Profile",
"general": "General",
"generalSettings": "General Settings",
"configureApp": "Configure how Frpc Hub looks and behaves",
"configureApp": "Configure how Podux looks and behaves",
"saveSuccess": "Settings saved successfully",
"saveFailed": "Failed to save settings",
"preferences": "Preferences",
+11 -6
View File
@@ -53,14 +53,14 @@
"forgotPassword": "忘记密码?",
"loginSuccess": "登录成功",
"loginFailed": "登录失败",
"signInToAccount": "登录到您的 Frpc Hub 账户",
"signInToAccount": "登录到您的 Podux 账户",
"enterEmail": "输入您的邮箱",
"enterPassword": "输入您的密码"
},
"dashboard": {
"title": "仪表板",
"welcome": "欢迎使用 Frpc Hub",
"overview": "您的 Frpc Hub 概览",
"welcome": "欢迎使用 Podux",
"overview": "您的 Podux 概览",
"systemOverview": "系统概览",
"totalServers": "服务器总数",
"runningServers": "运行中的服务器",
@@ -87,7 +87,6 @@
"topologyLocalService": "本地服务",
"noProxies": "暂无代理配置",
"noProxiesDesc": "添加代理后即可查看类型分布",
"quickActions": "快速操作",
"qaServersDesc": "管理服务器连接",
"qaProxiesDesc": "配置代理隧道",
"qaImportDesc": "从 TOML 配置文件导入",
@@ -156,6 +155,8 @@
"failedToLoad": "加载服务器失败",
"backToServers": "返回服务器列表",
"serverNamePlaceholder": "例如:生产服务器",
"user": "用户",
"userPlaceholder": "例如:admin",
"hostAddressLabel": "主机地址",
"hostAddressPlaceholder": "例如:frps.example.com",
"portLabel": "端口",
@@ -233,7 +234,11 @@
"saveChanges": "保存更改",
"errorInvalidIP": "无效的 IP 地址或域名",
"errorInvalidPort": "端口必须在 1 到 65535 之间",
"errorInvalidServerName": "仅允许字母、数字、中文字符、空格、点、下划线和连字符"
"errorInvalidServerName": "仅允许字母、数字、中文字符、空格、点、下划线和连字符",
"startSuccess": "服务器启动成功",
"startFailed": "服务器启动失败",
"stopSuccess": "服务器停止成功",
"stopFailed": "服务器停止失败"
},
"proxy": {
"title": "代理",
@@ -331,7 +336,7 @@
"profile": "个人资料",
"general": "常规",
"generalSettings": "常规设置",
"configureApp": "配置 Frpc Hub 的外观和行为",
"configureApp": "配置 Podux 的外观和行为",
"saveSuccess": "设置保存成功",
"saveFailed": "设置保存失败",
"preferences": "偏好设置",
+2 -2
View File
@@ -66,10 +66,10 @@ export function LoginView({
whileHover={{ scale: 1.1, rotate: 10 }}
whileTap={{ scale: 0.95 }}
src={logo}
alt="Frpc Hub Logo"
alt="Podux Logo"
className="h-16 w-16 cursor-pointer rounded-2xl object-contain"
/>
<Heading size="6">Frpc Hub</Heading>
<Heading size="6">Podux</Heading>
</Flex>
</motion.div>
<motion.div
@@ -1,4 +1,4 @@
import { useEffect, useRef, useState } from "react";
import { useEffect, useRef, useState, useCallback } from "react";
import { useParams, useNavigate } from "react-router-dom";
import { Card, Flex, Text, Badge, Grid, Button, Heading, Box, Table, AlertDialog } from "@radix-ui/themes";
import { Icon } from "@iconify/react";
@@ -12,6 +12,7 @@ import { ServerLatency } from "../../components/ServerLatency";
import { ServerLocation } from "../../components/ServerLocation";
import { useTranslation } from "react-i18next";
import { useServerProxies } from "./useServerProxies";
import { apiPost } from "../../lib/api";
export function ServerDetailPage() {
const { t } = useTranslation();
@@ -40,26 +41,63 @@ export function ServerDetailPage() {
return () => clearTimeout(timer);
}, []);
useEffect(() => {
const [actionLoading, setActionLoading] = useState(false);
const fetchServer = useCallback(async (showLoading = true) => {
if (!id) return;
try {
if (showLoading) setLoading(true);
const record = await pb.collection("fh_servers").getOne<Server>(id);
setServer(record);
} catch (err: any) {
if (err.isAbort) return;
console.error("Failed to load server details:", err);
setError(err.message || t("server.failedToLoad"));
toast.error(t("server.failedToLoad"));
} finally {
if (showLoading) setLoading(false);
}
}, [id, t]);
const fetchServer = async () => {
try {
setLoading(true);
const record = await pb.collection("fh_servers").getOne<Server>(id);
setServer(record);
} catch (err: any) {
if (err.isAbort) return;
console.error("Failed to load server details:", err);
setError(err.message || t("server.failedToLoad"));
toast.error(t("server.failedToLoad"));
} finally {
setLoading(false);
}
};
useEffect(() => {
fetchServer();
}, [id, navigate]);
}, [fetchServer]);
const handleStart = async () => {
if (!id) return;
try {
setActionLoading(true);
const response = await apiPost("/api/frpc/launch", { id });
if (response.ok) {
toast.success(t("server.startSuccess"));
fetchServer(false);
} else {
toast.error(t("server.startFailed"));
}
} catch (err: any) {
toast.error(err.message || t("server.startFailed"));
} finally {
setActionLoading(false);
}
};
const handleStop = async () => {
if (!id) return;
try {
setActionLoading(true);
const response = await apiPost("/api/frpc/terminate", { id });
if (response.ok) {
toast.success(t("server.stopSuccess"));
fetchServer(false);
} else {
toast.error(t("server.stopFailed"));
}
} catch (err: any) {
toast.error(err.message || t("server.stopFailed"));
} finally {
setActionLoading(false);
}
};
// SSE log streaming
useEffect(() => {
@@ -131,6 +169,21 @@ export function ServerDetailPage() {
title={server.serverName}
description={t("server.detailsAndLogs")}
visible={mounted}
extra={
<Flex gap="3" align="center">
{server.bootStatus === "running" ? (
<Button size="2" color="red" variant="soft" onClick={handleStop} disabled={actionLoading}>
{actionLoading ? <Icon icon="lucide:loader-2" className="animate-spin" /> : <Icon icon="lucide:square" width="16" height="16" />}
{t("server.stop")}
</Button>
) : (
<Button size="2" color="green" variant="soft" onClick={handleStart} disabled={actionLoading}>
{actionLoading ? <Icon icon="lucide:loader-2" className="animate-spin" /> : <Icon icon="lucide:play" width="16" height="16" />}
{t("server.start")}
</Button>
)}
</Flex>
}
/>
{/*<motion.div*/}
{/* initial={{ opacity: 0, y: -20 }}*/}
@@ -178,6 +231,16 @@ export function ServerDetailPage() {
{server.serverPort}
</Text>
</Box>
{server.user && (
<Box>
<Text size="2" color="gray">
{t("server.user")}
</Text>
<Text as="div" size="3" weight="medium">
{server.user}
</Text>
</Box>
)}
<Box>
<Text size="2" color="gray">
{t("server.latency")}
@@ -190,6 +190,15 @@ export function ServerFormPageView({
/>
</FormItem>
<FormItem label={t("server.user")}>
<TextField.Root
size="2"
placeholder={t("server.userPlaceholder")}
value={formData.user}
onChange={(e) => onChange("user", e.target.value)}
/>
</FormItem>
<AnimatePresence>
{formData.auth.method === "token" && (
<FormItem key="token-field" label={t("server.token")} animate>
@@ -7,6 +7,7 @@ import { REGEX } from "../../../lib/regex";
export interface ServerFormData {
serverName: string;
user: string;
serverAddr: string;
serverPort: number;
serverVersion: string;
@@ -41,6 +42,7 @@ export interface ServerFormData {
const defaultData: ServerFormData = {
serverName: "",
user: "",
serverAddr: "",
serverPort: 7000,
serverVersion: "built-in",
@@ -100,6 +102,7 @@ export function useServerForm() {
setFormData({
...defaultData,
serverName: record.serverName || "",
user: record.user || "",
serverAddr: record.serverAddr || "",
serverPort: record.serverPort || 7000,
serverVersion: record.serverVersion || "built-in",
+1
View File
@@ -6,6 +6,7 @@ import { toast } from "sonner";
export interface Server {
id: string;
serverName: string;
user: string;
serverAddr: string;
serverPort: number;
description: string;
+2 -2
View File
@@ -87,10 +87,10 @@ export function SetupView({
whileHover={{ scale: 1.1, rotate: 10 }}
whileTap={{ scale: 0.95 }}
src={logo}
alt="Frpc Hub Logo"
alt="Podux Logo"
className="h-16 w-16 cursor-pointer rounded-2xl object-contain"
/>
<Heading size="6">Frpc Hub</Heading>
<Heading size="6">Podux</Heading>
</Flex>
</motion.div>
<motion.div