Commit Graph

638 Commits

Author SHA1 Message Date
5821c601ce feat: enhance WARP status display with colored indicators and improved UX 2025-05-28 22:56:29 +03:30
475d511345 feat(normalsub): use user password in subscription link path
Refactored normalsub.py to use the user's password as the identifier in the subscription URL path instead of the username, enhancing privacy by making user enumeration harder.
2025-05-27 20:59:37 +03:30
2168080843 feat: Refactor normalsub to use Caddy as reverse proxy 2025-05-27 16:20:02 +03:30
b2cb712c08 feat: Adapt WARP API to handle JSON status output 2025-05-25 12:49:33 +03:30
1ee3fbd0fb feat: Modify WARP status script to output JSON 2025-05-25 12:47:39 +03:30
c7ed9b3aef feat: add reset webpanel admin credentials 2025-05-23 13:01:22 +03:30
b5af06708d feat: add API endpoint to fetch IP Limiter configuration 2025-05-23 12:16:58 +03:30
5d0a9a875e Update footer to remove shield icons 2025-05-23 11:47:26 +03:30
91ca3fb68a fix: align server_info.py RAM usage with free -m output 2025-05-23 10:34:49 +03:30
ec6610571d feat: Add NormalSub subpath configuration to settings UI
Adds a 'Configure' tab to the Normal Subscriptions section in Settings.
This tab allows users to view and edit the subpath for the NormalSub service.

- Modified settings.html:
  - Added new tab link and pane for NormalSub subpath configuration.
  - Tab is only visible and accessible if NormalSub service is active.
- Extended JavaScript:
  - `sendRequest` function now accepts an optional `postSuccessCallback`.
  - Added `isValidSubPath` for client-side validation.
  - `updateServiceUI` now manages visibility of the 'Configure' tab and fetches current subpath.
  - Implemented `fetchNormalSubPath` to get subpath via API.
  - Implemented `editNormalSubPath` to save subpath via API.
  - Integrated new input into `validateForm` and added real-time validation.
- Updated `updateDecoyStatusUI` and its calls from `setupDecoy`/`stopDecoy` to use the new `postSuccessCallback` pattern for consistency.
- Standardized form IDs (e.g., `telegram_form`, `port_form`) for better targeting in `validateForm` and `updateServiceUI`.
2025-05-18 11:25:29 +03:30
3cb8022c7c feat: Add API endpoint to get current NormalSub subpath
- Created `GetSubPathResponse` Pydantic schema for the API response.
- Added a new GET endpoint `/api/v1/config/normalsub/subpath` to fetch
  the current NormalSub subpath using `cli_api.get_normalsub_subpath()`.
- Returns the subpath or null if not found/set.
2025-05-17 23:55:01 +03:30
eaef80b80e feat: Add function to cli_api to get current NormalSub subpath 2025-05-17 23:54:32 +03:30
d86087cf74 feat: Add API endpoint to edit NormalSub subpath
This commit introduces a new PUT endpoint `/api/v1/config/normalsub/edit_subpath`
to allow modification of the NormalSub service's subpath.

- Added `EditSubPathInputBody` Pydantic model for request validation.
- Implemented the API endpoint in `normalsub.py` router, calling the
  corresponding `cli_api.edit_normalsub_subpath` function.
- Includes error handling for validation and general exceptions.
2025-05-17 23:27:17 +03:30
edcc4e32e2 feat: Add CLI command to edit NormalSub subpath
- Added `edit_normalsub_subpath` function to `cli_api.py` to
  interact with the `normalsub.sh edit_subpath` command, including
  input validation for the new subpath.
- Updated the `normal-sub` command in `cli.py`:
  - Added 'edit_subpath' as a valid action.
  - Introduced a '--subpath' option for specifying the new path.
  - Modified the command logic to call the new API function when
    the 'edit_subpath' action is selected.
2025-05-17 23:24:43 +03:30
6c5486eafc feat: Add function to edit Normalsub subpath
This commit introduces a new 'edit_subpath' command to the
normalsub.sh script. This allows users to change the SUBPATH
variable in the .env file and automatically restarts the
hysteria-normal-sub service to apply the changes.
2025-05-17 23:20:04 +03:30
c66ea43c7d fix: correct systemd service target for hysteria-ip-limit 2025-05-16 22:09:59 +03:30
8de1bedb34 Remove wait 2025-05-16 12:28:23 +03:30
94842aa2dc wait process 2025-05-16 12:26:04 +03:30
3680117f24 revert changes 2025-05-16 12:19:20 +03:30
b759f98620 Refactor hysteria scheduler setup: consolidate functions and add automatic execution 2025-05-16 12:10:00 +03:30
8c43375519 Fix(upgrade): Improve scheduler setup 2025-05-16 11:54:45 +03:30
fe7fa3cd2d Add service verification to confirm successful installation 2025-05-16 11:42:22 +03:30
2e35c62c48 Fix scheduler service installation to ensure stable upgrade process 2025-05-16 11:36:47 +03:30
37aafa8c61 refactor: enhance upgrade script with backup, color UI, service checks, and error handling 2025-05-16 00:42:02 +03:30
cfd29c458d Add service status for scheduler
Add a default user
2025-05-15 23:50:09 +03:30
ec81500e85 typo 2025-05-15 23:40:41 +03:30
1e94e08ffb Improve uninstall script 2025-05-15 23:25:54 +03:30
61874a4acc hysteria-scheduler service setup
- Create installation script to automate setup and migration from cron
- Update both install.sh and upgrade.sh to use the shared functions
2025-05-15 23:10:08 +03:30
08f90a3246 Implement robust scheduler for traffic monitoring and backups
- Replace cron jobs with a systemd service for better reliability
- Add file locking mechanism to prevent conflicts on users.json
- Schedule traffic status updates every minute with proper error handling
- Maintain 6-hour backup schedule with independent lock management
- Add comprehensive logging for easier troubleshooting

This change resolves issues where system updates or other programs
would cause conflicts with the traffic monitoring process accessing
the users.json file simultaneously.
2025-05-15 21:18:23 +03:30
80c519a66f feat(telegram): Enhance add user to show Normal-SUB link and QR
Modifies the Telegram bot's 'Add User' functionality.
After adding a user, the bot now attempts to retrieve and display
the Normal-SUB subscription link and its QR code if available.
If Normal-SUB is not found, it falls back to showing the direct
Hysteria2 IPv4 URI and QR code. The direct URI is also provided as a
fallback if Normal-SUB is shown. 
Usernames are quoted in CLI calls
for robustness. Improved input validation for username, traffic,
and expiration days.
2025-05-14 00:34:23 +03:30
d852c21a9d Refactor QR code generation to use Python 2025-05-10 23:29:05 +03:30
dc49f5d74f feat: Merge traffic collection and user kicking 2025-05-10 14:06:55 +03:30
e581a92b60 Refactored cli_api.run_cmd 2025-05-09 01:22:03 +03:30
9d58ce49db Revert CLI Change 2025-05-09 01:04:05 +03:30
5b04b47e60 feat(frontend): Enhance user management UI and error handling in users.html
-   Added default values for "Traffic Limit" and "Expiration Days" in the "Add User" modal.
2025-05-09 00:12:42 +03:30
69e9605414 feat(api): Implement user existence checks in add user API endpoint 2025-05-09 00:11:10 +03:30
049e3f7601 refactor(cli): Improve script error propagation and handling 2025-05-09 00:07:17 +03:30
a5dac82255 Refactor: Implement kick users in Python 2025-05-08 20:25:49 +03:30
1b3f9ee351 Refactor: Implement Hysteria Restore in Python 2025-05-06 00:23:13 +03:30
24338dfe1f Refactor: Implement Change SNI in Python 2025-05-05 23:55:36 +03:30
ce4d23d18e Refactor: Implement TCP Brutal installation in Python 2025-05-05 23:31:14 +03:30
b8e6a5475b refactor: masquerade management in Python3 2025-05-03 21:49:26 +03:30
976f080523 Refactor: Implement server stats in Python 2025-05-03 00:20:36 +03:30
ae12afced1 Refactor: Implement IP address config manager in Python 2025-05-02 22:03:59 +03:30
1c08a4adbb Refactor: Implement Hysteria Bakcup in Python 2025-05-02 21:52:17 +03:30
1da884dba4 Refactor: Implement Telegram bot service manager in Python 2025-05-02 21:45:18 +03:30
9d0a13a226 Refactor: Implement WARP ACL configuration in Python
- remove WARP Plus/Key
2025-05-02 18:24:58 +03:30
07cb999259 Refactor: Implement warp status in Python 2025-05-02 17:35:43 +03:30
0e0d054d5d Refactor: Warp setup and uninstallation scripts to Python3 2025-05-02 17:21:26 +03:30
10526df4ea Update hysteria-server.service to use Blitz Panel config.json 2025-05-02 14:55:16 +03:30