Commit Graph
14 Commits
Author SHA1 Message Date
NanamiAdmin 182887a66f feat(logging): add detailed logging throughout application components
- Implement logging in router setup, auth handlers, and frpc operations
- Add SoftwareInfo struct for version tracking and logging
- Enhance error messages with more context and logging
- Replace direct error returns with formatted error logging
- Add debug logs for token operations and request validations
2026-02-27 23:44:41 +08:00
NanamiAdmin 3285e9026a refactor(api): switch to header-based auth for GET requests
- Replace body parsing with header validation for GET endpoints
- Update router to properly handle GET vs POST requests
- Add new ValidateRequestWithHeader function
- Update README to document header requirements
2026-02-27 23:17:18 +08:00
NanamiAdmin 7f54e17bf4 fix(auth): skip timestamp validation in debug mode
Modify ValidateTimeStamp to bypass validation when in debug mode. Also update request validation to make timestamp optional in debug mode while maintaining security checks in production.
2026-02-27 23:13:15 +08:00
NanamiAdmin d49090a2ab refactor(auth): extract timestamp validation to separate function
Move timestamp validation logic from handlers to ValidateTimeStamp function in auth.go to avoid code duplication and improve maintainability
2026-02-27 21:21:18 +08:00
NanamiAdmin 6947577377 refactor(database): move database initialization functions to single file
Consolidate InitFrpcDatabase and InitUserDatabase functions into database.go for better code organization and maintainability. Remove duplicate code from frpc.go.
2026-02-27 21:16:27 +08:00
NanamiAdmin 4c041ee922 chore: ignore frp_client binary in gitignore 2026-02-27 21:04:56 +08:00
NanamiAdmin 962a36d74f feat(handlers): add duplicate login check and improve request handling
refactor: move postLog package to root directory and enhance logging
fix(frpc): improve request parsing and type handling for instance creation
chore: update config paths and enable debug mode
2026-02-27 21:04:08 +08:00
NanamiAdmin 7e163b5216 chore: ignore binary files for super-frpc 2026-02-26 11:57:47 +08:00
NanamiAdmin 3c2a2fd826 refactor(logger): add individual log module 2026-02-26 11:56:35 +08:00
NanamiAdmin 3d6f657242 refactor(routor): split routor from main.go 2026-02-26 09:24:33 +08:00
NanamiAdmin ae7a22eb68 refactor(handlers): extract request validation logic to new function
Extract the request validation logic from ValidateRequest into a new ValidateRequestWithBody function to allow passing pre-read request bodies. Update all handler functions to use the new validation function for consistency and to avoid duplicate body reading.
2026-02-23 19:56:16 +08:00
NanamiAdmin 18d82d4560 docs: update README with detailed project documentation
Add comprehensive documentation including features, configuration, build/run instructions, API details, user permissions, and security requirements. The README now serves as complete project reference for users and developers.
2026-02-23 19:36:45 +08:00
NanamiAdmin 2a8a8ef262 feat: implement core functionality for super-frpc service
This commit introduces the core functionality for the super-frpc service including:
- Configuration management
- User authentication and authorization
- Database integration
- FRPC instance management
- API endpoints for user operations
- Token-based authentication system
- Password hashing and validation
2026-02-23 00:19:57 +08:00
NanamiAdmin 6bf143e69e Initial commit 2026-02-22 00:31:39 +08:00