Commit Graph

858 Commits

Author SHA1 Message Date
237aff39c4 feat: Add sticky card-header with bokeh effect for improved UI 2025-07-08 18:07:59 +03:30
66bbf6db56 feat: add Enter key functionality to submit login form 2025-07-08 12:48:00 +03:30
6a8b5ec087 fix: prevent decoy site activation when no decoy path provided 2025-06-08 20:12:59 +03:30
e9aa6bcb23 Rollback to version 1.11 2025-06-03 23:47:46 +03:30
dbe347c865 Merge pull request #186 from SeyedHashtag/original
hotfix: Correct address resolver and rule set names in singbox config
2025-06-03 23:09:23 +03:30
33eccb6601 Refactor: Clarify service UI update logic in settings 2025-06-03 20:06:49 +03:30
9f596f465c fix: Correct address resolver and rule set names in singbox configuration 2025-06-03 01:15:55 +03:30
bf191d19fc feat: Enhance UI/UX for settings page 2025-06-02 13:53:21 +03:30
3a13108181 feat: Add WARP management tab to settings page
Integrates WARP (install, uninstall, configure, status) functionality
into the web panel's settings page. Users can now manage WARP
directly from the UI.
2025-06-02 13:29:48 +03:30
5e61afe15c feat: Add OBFS management tab to settings page
- Added a new "OBFS" tab in `settings.html`.
- The tab displays the current OBFS status (active/inactive).
2025-06-02 00:38:53 +03:30
97ade9e4eb feat: Add OBFS status API endpoint 2025-06-02 00:19:25 +03:30
228e01f6e9 feat: Add --check flag to manage_obfs CLI command
Integrates the OBFS status check functionality into the main CLI.
Users can now use `cli.py manage_obfs --check` to see if OBFS is active.
2025-06-02 00:16:41 +03:30
3ddb981077 feat: Add OBFS status check functionality
Adds a new `--check` or `-c` option to `manage_obfs.py` to determine if OBFS is currently configured in `config.json`.
2025-06-02 00:14:55 +03:30
026500f20f Merge pull request #178 from SeyedHashtag/original
Improved Singbox Template Configuration
2025-05-31 19:09:26 +03:30
5d2b8b2bf8 fix: update geosite URLs and tags in singbox.json for consistency 2025-05-30 23:34:26 +03:30
1781ca446d feat: improve edit_subpath function with better error handling and efficient Caddy reload
- Add service status validation before editing subpath
- Use systemctl reload for Caddy config changes
- Add fallback to restart if reload fails
- Enhance user feedback with old/new subpath comparison
- Improve error handling and status verification
2025-05-29 23:21:56 +03:30
8b30b26e0c fix: correct server configuration in singbox.json 2025-05-28 23:09:36 +03:30
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
a532f7969f refactor: reorganize DNS configuration and enhance routing rules in singbox.json 2025-05-27 15:00:14 +03:30
699069adb6 fix: update DNS configuration and logging level in singbox.json 2025-05-26 22:43:02 +03:30
796c15e323 Update singbox.json
fix: Changed DNS-over-HTTPS (DoH) implementation to standard UDP DNS resolution to prevent potential service disruptions in regions where HTTPS DNS domains may be blocked or restricted.
2025-05-26 18:53:17 +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