Commit Graph

1319 Commits

Author SHA1 Message Date
26ed0a9850 Update README-fa.md 2025-05-18 12:55:29 +03:30
0f6df60b23 Update README.md 2025-05-18 12:53:37 +03:30
ca2baf8556 Update README.md 2025-05-18 12:52:34 +03:30
a9b01ef676 📦 v1.10.0 Release 🚀 – Configurable NormalSub & UI Upgrades 2025-05-18 12:27:15 +03:30
9bd7491703 Merge pull request #170 from ReturnFI/beta
Configurable NormalSub
2025-05-18 12:25:56 +03:30
2a2e4bcf26 Update changelog 2025-05-18 12:20:19 +03:30
e3c70a5c33 Update README-fa.md 2025-05-18 12:16:22 +03:30
e252f7b8f4 docs(readme): add sponsorship section with referral link 2025-05-18 12:10:30 +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
ad8faae3aa Update README.md 2025-05-17 13:14:10 +03:30
af198c5b71 Update README-fa.md 2025-05-16 22:36:52 +03:30
a6e80d2c28 Update README.md 2025-05-16 22:36:21 +03:30
c66ea43c7d fix: correct systemd service target for hysteria-ip-limit 2025-05-16 22:09:59 +03:30
d4f86dd30a 📦 v1.9.3 Release 🚀 – Reliable Scheduling & Smarter Scripts 2025-05-16 13:33:20 +03:30
dfe6bc0675 Update changelog 2025-05-16 13:28:00 +03:30
475776b16a Merge pull request #169 from ReturnFI/beta
Reliable Scheduling & Smarter Scripts
2025-05-16 13:25:07 +03:30
ceeea306fc Update changelog 2025-05-16 13:22:56 +03:30
1084b89183 Clone main 2025-05-16 13:08:34 +03:30
c42bf83b34 Update changelog 2025-05-16 13:07:15 +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
9926021ed4 fix scheduler 2025-05-16 11:43:33 +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
1a257fe027 less sleep better life :) 2025-05-16 00:44:44 +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
0f6b5442a6 Update requirements (schedule) 2025-05-15 23:31:13 +03:30
eeec0e4250 Clone Beta 2025-05-15 23:28:27 +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
70b16efedf Update CODEOWNERS 2025-05-14 21:58:48 +03:30
68d16155b6 Merge pull request #168 from ReturnFI/beta
feat(telegram): Enhance add user to show Normal-SUB link and QR
2025-05-14 21:58:21 +03:30
0ac101c43b Fix : Restart normal-sub service after change path 2025-05-14 21:57:00 +03:30
dcb41ebab1 Delete python-app.yml 2025-05-14 21:54:27 +03:30
4943ab2e7f Create python-app.yml 2025-05-14 21:50:47 +03:30
a1ae44549b useless 2025-05-14 21:47:51 +03:30
81ae08ae1d Merge pull request #163 from ReturnFI/dependabot/pip/python-dotenv-1.1.0
chore(deps): Bump python-dotenv from 1.0.1 to 1.1.0
2025-05-14 21:47:00 +03:30
0b89355ff0 Merge pull request #164 from ReturnFI/dependabot/pip/anyio-4.9.0
chore(deps): Bump anyio from 4.8.0 to 4.9.0
2025-05-14 21:46:47 +03:30
2a9084a15e Merge pull request #165 from ReturnFI/dependabot/pip/frozenlist-1.6.0
chore(deps): Bump frozenlist from 1.5.0 to 1.6.0
2025-05-14 21:46:32 +03:30