Commit Graph

573 Commits

Author SHA1 Message Date
787184bb8a fix: prevent duplicate WARP outbound entries and improve installation flow 2025-04-27 11:57:38 +03:30
7546e13cfb fix: handle domain names in IP4 configuration variable
Previously, when the IP4 variable contained a domain name instead of an actual IP address, the SNI validation would fail and force the use of self-signed certificates. This update adds detection and resolution of domain names in the IP4 variable, ensuring proper DNS comparison when checking if the SNI domain points to the server.
2025-04-27 11:32:43 +03:30
57993d7602 feat: Add Decoy Site feature
Adds a new Decoy Site configuration tab in the settings section.
2025-04-26 20:33:12 +03:30
c1d8c422af Add decoy status API 2025-04-26 13:31:19 +03:30
fa7090a88b feat(api): Add endpoints for webpanel decoy management using background tasks
- Add POST `/api/v1/config/hysteria/webpanel/decoy/setup` endpoint to configure the decoy site.
- Add POST `/api/v1/config/hysteria/webpanel/decoy/stop` endpoint to remove the decoy site configuration.
- Implement `BackgroundTasks` for both endpoints to prevent Caddy service restarts from interrupting the API response.
- Add `SetupDecoyRequest` Pydantic schema for the setup endpoint payload.
2025-04-25 21:58:04 +03:30
7ff72e720c feat: Add decoy site functionality to Hysteria web panel
- Add ability to configure a decoy site on port 443 while hiding the web panel
- Support both same-port and separate-port configurations
- Add commands to manage decoy sites: 'decoy' to add/configure and 'stopdecoy' to remove
- Ensure clean reversion of Caddy configuration when stopping decoy sites
- Make decoy path optional during panel startup

This enhancement improves obfuscation capabilities by serving legitimate-looking 
content on standard HTTPS port while keeping the actual panel hidden behind a 
secret path.
2025-04-25 20:50:24 +03:30
748d0bf2bd add init_paths to handle sys.path setup for importing shared modules like paths.py 2025-04-24 20:23:31 +03:30
ff194d0098 Changes:
feat: Add SNI checker and certificate manager
Key features:
- Domain-to-IP resolution verification
- Automatic Let's Encrypt certificate acquisition
- Self-signed fallback for domains not pointed to the server
- Updates insecure flag in config.json based on certificate type
- Updates SNI in environment config
- Generates and updates SHA-256 fingerprint

fix(urls): Update URI generator to respect TLS insecure flag
Changes:
- Added insecure parameter to generate_uri() function
- Read TLS insecure flag from config.json
- Set insecure=0 for valid certificates and insecure=1 for self-signed ones
- Updated all URI generation calls to include the insecure parameter
2025-04-21 00:17:28 +03:30
ae8a872059 Delete show_user_uri.sh 2025-04-19 19:30:46 +03:30
46f9b9580e Optimize server_info.sh for better performance and error handling
- Improved error handling for missing files and null values
- Enhanced JSON parsing to properly handle malformed entries
- Fixed CPU usage calculation
- Made memory stats extraction more robust
- Added fallback mechanisms for jq processing failures
- Improved handling of null numeric values in traffic statistics
- Added stderr redirection to suppress error messages
- Implemented safer variable expansions with default values
- Overall code cleanup and optimization
2025-04-19 19:22:49 +03:30
32c21126ed add UserUriResponse schem 2025-04-19 18:43:06 +03:30
fb221d350e Changes log:
feat: add user URI API endpoint
feat: integrate show_user_uri_api in users page
refactor: remove URI generation from viewmodel
2025-04-19 18:18:01 +03:30
325c130fd0 feat: add show-user-uri-json command 2025-04-19 13:12:33 +03:30
e79123364f refactor show user uri 2025-04-19 12:25:11 +03:30
578301eb8d Fix title typo 2025-04-18 13:48:53 +03:30
dcea07e8f9 Change Project Name 2025-04-18 13:44:57 +03:30
e91825ca2c Change Project Name 2025-04-18 13:28:34 +03:30
35d917b887 feat : Optimize user edit workflow and eliminate service restart delay 2025-04-14 12:53:15 +03:30
49b9580b60 Improve user reset API 2025-04-14 12:22:42 +03:30
3384095d9e Improve user removal API with proper 404 error handling
- Added user existence check before attempting removal
- Return 404 status code when user is not found
- Leveraged existing get_user functionality for consistency
- Separated HTTPException handling to preserve status codes
- Enhanced error handling to provide clearer feedback to API consumers
2025-04-14 12:11:53 +03:30
6d7dbc33f1 comment unnecessary print 2025-04-14 11:33:09 +03:30
39a091cc02 refactor: Rewrite kickuser script in Python 2025-04-14 11:04:02 +03:30
7297eb9be2 feat: enhance kick functionality with specific user kick and integration 2025-04-14 00:08:14 +03:30
8cd9866309 Fix Status 2025-04-12 13:15:39 +03:30
3eea66a6f5 fix: Allow null values for upload and download bytes in user info 2025-04-12 11:38:07 +03:30
580fe5e487 Update User Info Response
Added more details UserInfoResponse class
2025-04-12 00:08:52 +03:30
10dc20ad8e Remove SingBox Service Status 2025-04-11 21:57:40 +03:30
13f3fd9273 Remove SingBox Status 2025-04-11 21:48:42 +03:30
4e08a632d1 Remove the Singbox subscription 2025-04-11 21:45:21 +03:30
9297cf2467 Remove SingBox 2025-04-11 21:33:28 +03:30
44942e3b70 Fix: simplify SNI fingerprint generation using OpenSSL only 2025-04-11 13:44:23 +03:30
e7603ae756 Remove "SHA256 Fingerprint=" prefix from certificate SHA256 output 2025-04-11 12:49:10 +03:30
bab350bb29 Change pinSHA256 to Hex 2025-04-11 12:33:47 +03:30
7ad4a9839e fix: reload page after user edit for traffic usage update 2025-04-09 23:18:23 +03:30
e38bb4f864 Fix: Update table index references for user status and quota in edit user modal 2025-04-09 18:55:25 +03:30
f17ab3aa19 Merge branch 'original' of https://github.com/SeyedHashtag/dijiq into original 2025-04-08 20:25:16 +03:30
704f0988f3 Refactor: Update traffic usage display and calculations in user model and template 2025-04-08 20:25:13 +03:30
22d9c99ced Fix: Enable "Save Changes" button in Edit User modal 2025-04-05 23:17:02 +03:30
ddc029a0be HotFix: Move restart command outside function 2025-04-02 19:59:05 +03:30
53f3dd49a9 Fix: Return 404 User Not Found 2025-04-01 00:12:36 +03:30
08d1679dc0 Implement noindex headers in responses & noindex tag in html & noindex
in robots.txt & close connection if the path is invalid
2025-03-31 18:39:04 +00:00
7aab7b5489 HotFix: Restart service to clear API traffic 2025-03-27 20:29:34 +03:30
efb2d22672 Improve uninstallation process 2025-03-24 20:23:15 +03:30
53304d9570 Remove default value 2025-03-24 11:35:39 +03:30
20d5204a1a Ensure BLOCK_DURATION and MAX_IPS exist in CONFIG_ENV correctly 2025-03-24 11:33:10 +03:30
f51021555a Fix CONFIG_ENV conflicts by ensuring clean updates for IP4 and IP6 2025-03-24 01:01:39 +03:30
40a5d681b8 Fix: Correct Version Check Response for Up-to-Date Panel 2025-03-24 00:43:26 +03:30
1d78d38bc5 Replace SingboxSub with IP Limit 2025-03-24 00:22:16 +03:30
81eea1bfb9 Added IP Limit 2025-03-24 00:19:08 +03:30
f0fb7811c6 Added API and IPLimit service 2025-03-23 14:17:45 +03:30