Commit Graph

34 Commits

Author SHA1 Message Date
8a5a647dcc feat(proxy): add proxy switch endpoint to enable/disable proxies, and all enabled parameter to display the status of each proxy when fetching the proxies list 2026-06-06 16:15:54 +08:00
933c12fca1 feat(system): add restart server endpoint with authentication 2026-05-10 18:09:49 +08:00
ef27e7e0a9 refactor(watchdog): remove tcp socket connection and add local unix sock connection 2026-05-10 14:38:52 +08:00
00319d790d chore: change service && filename rule to "superfrpc_instanceID" 2026-05-07 22:46:28 +08:00
6e705ce2f3 fix: change permission level for instance listing to visitor and making sure all instances could be listed for all users 2026-05-07 21:38:52 +08:00
9ffb4263cf feat(sys): add self-check functionality for system settings and frpc binary 2026-05-07 21:07:16 +08:00
a2869c1e0e fix(proxy): add "oldName" && "newName" paras to fix unable to modify proxy name 2026-05-05 12:52:04 +08:00
d71672e40f docs: update API endpoint paths in documentation 2026-04-29 11:51:52 +08:00
b93c3b0e78 docs(api): update webhook configuration and add notification docs
- Simplify webhook headers and body configuration format
- Add documentation for available notification methods and parameters
2026-04-29 10:01:07 +08:00
ac51641e93 feat(settings): add settings management API endpoints
- Add GET /settings/get and POST /settings/set endpoints for managing system settings
- Implement config file persistence for settings changes
- Update config schema to include notification and webhook settings
- Add API documentation for new endpoints
- Move config path variables to global package for consistency
2026-04-23 12:43:11 +08:00
0e578c422f feat(proxy): add modify proxy API endpoint and functionality
Implement proxy modification feature including:
- New modifyFrpcProxy function in config.go
- New ModifyProxyHandler in frpcProxyAct.go
- New API endpoint in router.go
- Updated API documentation in docs/api.md
2026-03-31 23:04:43 +08:00
f4d742de04 feat(user): add user modification API and handler
implement user modification functionality including:
- new endpoint /userMgr/modify
- database update function DBUpdateUser
- request/response structures
- handler with proper authentication and validation
- updated API documentation
- marked as completed in README checklist
2026-03-31 21:52:15 +08:00
4aa58b2f3d feat(user): add user type modification endpoint
- Implement new endpoint `/userMgr/modifyType` for updating user types
- Add database function DBUpdateUserType to handle type updates
- Include request validation and proper error handling
- Update API documentation with new endpoint details
2026-03-30 14:22:15 +08:00
839bad3c94 feat(frpLogger): add real-time instance log streaming functionality
Implement cross-platform log streaming for frpc instances with support for Windows, systemd, and init.d systems. Includes WebSocket API endpoint for real-time log streaming, token validation, and instance ownership checks. Update README and API documentation to reflect new functionality.

The implementation handles:
- Platform-specific log collection (Windows Event Log, journalctl, log files)
- WebSocket-based real-time streaming
- Token validation and instance access control
- Log level parsing and formatting
- Historical log retrieval since service start
2026-03-26 17:46:50 +08:00
e83436fe9b feat(instanceMgr): add getInfo endpoint to retrieve instance details
Implement new GET endpoint `/frpcAct/instanceMgr/getInfo` to fetch frpc instance information
Add documentation for the new API endpoint in docs/api.md
The handler returns different information based on user permission level
2026-03-25 22:20:32 +08:00
25f88249c2 refactor(api): simplify instance listing response and add running status
Remove sensitive information from instance listing response for all users and add isRunning field
Fix backend to prevent starting already running frpc instances
2026-03-25 21:50:52 +08:00
92a0e24db7 refactor(frpc): restructure instance management and config handling
- Move instance-related structs and functions to config.go
- Remove serverAddr, serverPort, and authMethod from database schema
- Implement new config parsing and encoding with nested key support
- Update service management to use instanceID instead of username/name
- Add GetServiceNameByInstanceID helper function
- Update API documentation for auth.method field change
2026-03-25 20:00:34 +08:00
802a726464 feat(frpAct): add Windows/Systemd/Init.d service boot control. BUT WINDOWS STILL HAS BUGS AND LINUX HAS NOT BEEN TESTED. 2026-03-24 23:23:34 +08:00
e335ce4da6 docs(api): update field names to use camelCase in API documentation 2026-03-23 22:14:04 +08:00
40d4ccaa8a feat(proxy): add endpoint to list proxy configurations
Implement new GET endpoint `/frpcAct/proxyMgr/list` to retrieve proxy configurations from frpc instance config files. Includes handler function, API documentation, and route setup. The endpoint validates user permissions, reads and parses the config file, and returns structured proxy data with instance information.
2026-03-21 08:57:44 +08:00
1ec3602ec1 docs(api): add delete proxy endpoint documentation
Add documentation for the new DELETE proxy endpoint including request/response formats, headers, and important notes about the operation.
2026-03-19 22:42:14 +08:00
8215c0faee feat(proxy): add proxy management endpoint and proxy creation API
- Implement new endpoint for creating frpc proxy configurations
- Add DBQueryFrpcInstanceByID function to fetch instances by ID
- Move proxy generation logic to separate function in frpcProxyAct.go
- Update API documentation with new proxy creation endpoint
2026-03-19 17:34:31 +08:00
702ecb7de4 docs(api): update websocket endpoint and auth requirements 2026-03-17 22:39:55 +08:00
33e5119b0a feat(logging): add real-time log streaming via websocket
- Implement WebSocket endpoint for streaming logs to clients
- Add log broadcaster to manage client connections and history
- Update documentation with new WebSocket API details
- Include gorilla/websocket dependency for WebSocket support
2026-03-17 19:12:15 +08:00
49048597f2 refactor(database): make DBListFrpcInstances able to list all users' frpc instances but not single user
feat(frpcAct): user will get createdBy when query frpc instances on current server
docs(api): update related api documentation
2026-03-12 22:41:17 +08:00
f2b07a7732 docs(api): fix some abnormal response templete in API docs 2026-03-10 14:52:18 +08:00
f3fca7f07b feat(user): add createdAt field to user model
- Add createdAt field to User struct and database schema
- Update all user queries to include createdAt field
- Document new field in API documentation
- Fix server online status flag timing
2026-03-10 14:34:16 +08:00
a142fb17a8 feat(system): add system status and software info endpoints
Add new endpoints to expose system status and software information:
- /system/getStatus returns current system status (online/offline)
- /system/getSoftwareInfo returns software version and build details
Update API documentation to include new endpoints
2026-03-09 19:02:56 +08:00
8b9a757bea feat(session): add session removal endpoint and refactor session management
- Implement new `/sessionMgr/remove` endpoint for superusers to remove sessions
- Refactor session and token management to use sessionTokenMap for better tracking
- Update session cleanup logic to handle both tokens and sessions
- Add documentation for new API endpoint in docs/api.md
- Modify logout handler to use new session removal approach
2026-03-06 19:22:52 +08:00
f07b89842a docs(api): update API documentation with new session listing endpoint
feat(session): add API endpoint to list active sessions
2026-03-05 18:29:58 +08:00
783b06ff94 feat(userMgr): add list users endpoint
Add new endpoint `/userMgr/list` to retrieve all users with superuser permission. Includes handler implementation, database query function, and API documentation update.
2026-03-04 11:20:01 +08:00
8f901dac08 feat(userMgr): add user removal functionality
- Implement RemoveUser function in database.go to delete users
- Add RemoveUserHandler to handle HTTP requests for user removal
- Update API documentation with new /userMgr/remove endpoint
- Add route for user removal in router.go
2026-03-04 11:14:35 +08:00
d7260e0cf6 feat(user): add user creation endpoint for superusers
- Add new `/userMgr/create` endpoint for superusers to create users with specified types
- Update AddUser function to accept user type parameter
- Add documentation for the new endpoint in api.md
- Remove debug log comment in auth.go
2026-03-04 11:07:37 +08:00
0f3bf18fc1 docs: move API documentation to separate file
Restructure documentation by moving API details from README.md to docs/api.md
Update README.md to reference the new API documentation location
2026-03-03 23:16:40 +08:00