NanamiAdmin e400cc1869 feat(session): add session list API
- Move token-related functions from auth.go to new session.go
- Add session tracking with expiration and cleanup
- Implement session list API endpoint
- Update login/logout handlers to use session system
- Add hourly cleanup of expired tokens and sessions
2026-03-05 18:24:19 +08:00
2026-02-28 23:00:57 +08:00
2026-03-05 18:24:19 +08:00
2026-03-05 18:24:19 +08:00
2026-03-05 18:24:19 +08:00
2026-03-05 18:24:19 +08:00
2026-03-05 18:24:19 +08:00

Super-frpc

A backend application for managing local frpc instances, allowing users to easily start, stop, restart, and perform daily maintenance operations on frpc instances. It also provides automated error handling, such as automatic restart when an instance crashes.

Features

  • User authentication with token-based login
  • Create, delete, and modify frpc instances
  • Automatic startup configuration (systemd/init.d)
  • User permission management (superuser/admin/visitor)
  • SQLite database for data persistence

Supported Platforms

  • GNU/Linux
  • Windows

Configuration

Create a config.json file in the project root:

{
  "listenAddr": "0.0.0.0",
  "listenPort": "8080",
  "frpcPath": "/usr/bin/frpc",
  "instancePath": "./configs"
}
Field Description Default
listenAddr Server listening address 0.0.0.0
listenPort Server listening port 8080
frpcPath Path to frpc executable /usr/bin/frpc
instancePath Path to store instance config files ./configs

Build

go build -o super-frpc

For Linux:

GOOS=linux GOARCH=amd64 go build -o super-frpc

Run

./super-frpc -config ./config.json -db ./database.db

API Documentation

For detailed API documentation, please see docs/api.md

TODO

  • Add Windows boot service support
  • Add session list API
  • Add session management API
  • Add codes per file documentation
  • Add user config modify API

License

GPL-3.0

Description
No description provided
Readme GPL-3.0 294 MiB
Languages
Go 100%