1337 Commits

Author SHA1 Message Date
SaintShit
7f396db3e7 bump version to 0.8.4 v0.8.4 2025-01-09 19:37:39 +03:30
SaintShit
98a71001e3 Merge branch 'master' into dev 2025-01-09 19:37:08 +03:30
Mohammad
216e81ca3c Revert "fix: circular import in models"
This reverts commit 9e24dfbb4c.
2025-01-09 19:08:13 +03:30
SaintShit
dc7d694236 bump version to 0.8.3 v0.8.3 2025-01-09 15:35:14 +03:30
SaintShit
5454c1c4b3 fix: circular import in jobs 2025-01-09 15:25:37 +03:30
SaintShit
9e24dfbb4c fix: circular import in models 2025-01-09 14:33:14 +03:30
SaintShit
40041f2acb bump version to 0.8.2 v0.8.2 2025-01-09 01:01:26 +03:30
Mohammad
4c6d4db634 fix: json uuid encoder (#1582) 2025-01-07 14:06:13 +03:30
Mohammad
843e61aead fix: clash tcp http config (#1574) 2025-01-06 16:14:37 +03:30
Mohammad
09fd3297e4 fix: send delete reports (#1573) 2025-01-06 15:10:56 +03:30
Mohammad
ee55da10db bump version to 0.8.1 v0.8.1 2025-01-05 17:57:07 +03:30
SaintShit
84edad6b82 bump version to 0.8.0 v0.8.0 2025-01-05 14:48:00 +03:30
Mohammad
a054e9740b Merge pull request #1557 from ImMohammad20000/xray
feat(xray): add hex type support for noise
2025-01-03 09:35:59 +03:30
Mohammad
f41c648711 feat(xray): add hex type support for noise 2025-01-03 08:59:04 +03:30
Mohammad
14c64ac1f6 remove: host from headers in ws for v2ray-json format (#1554) 2025-01-01 13:11:42 +03:30
Nikita Korotaev
ff663266be add HAPP proxy app custom json (#1549) 2024-12-29 21:38:47 +03:30
SaintShit
a44327f62b fix: remove single quotes from error messages 2024-12-26 23:24:31 +03:30
SaintShit
5a855f29af fix: use for header in 401 response 2024-12-26 13:33:40 +03:30
Mohammad
1c26cd1dcd fix: float bug when creating users and showing float data (#1541)
* fix: float bug when creating users and showing float data

* update pydantic

* fix: cast reseted_usage and lifetime_used_traffic to int
2024-12-25 12:43:42 +03:30
NotHacking (https://silverflag.net)
bc7aedff65 Fix minor typo (#1538) 2024-12-24 12:40:28 +03:30
Mohammad
d87bccd54e feat(cli): Add users usage to admin list command (#1530) 2024-12-19 21:07:36 +03:30
WhyMan
b3118cb1fd fix: delete deprecates and optimize (#1528) 2024-12-18 23:20:07 +03:30
Mohammad
c9cbafa104 fix: float node coefficient (#1524) 2024-12-16 11:45:44 +03:30
Mohammad
4bc248ef3e remove execution_options when recording usages (#1523) 2024-12-16 11:13:19 +03:30
Mohammad
52f95020de fix(cli): error when get reseted usage (#1520) 2024-12-15 20:13:44 +03:30
Mohammad
43ccc2d71a don't send keepAlivePeriod if it not in the config (#1517) 2024-12-15 16:31:00 +03:30
Mohammad
5c217e9694 feat: Add use sni as host (#1516)
* feat: Add use sni as host

* check if there is any sni
2024-12-15 14:31:32 +03:30
Mohammad
c05ba174f6 Update .gitignore 2024-12-14 19:23:31 +03:30
Mohammad
05851bdddf fix: error when sending reports for autodelete (#1512) 2024-12-14 19:00:58 +03:30
Mohammad
8f662d417c feat(db): increase length of the host and sni columns (#1505)
* feat(db): increase length of the host and sni columns

* remove unnesserly code
2024-12-12 20:45:45 +03:30
Mohammad
dab0cdbbf7 Fix bugs (#1503)
* fix(jobs): not record usages

* fix(webhook): notify user onhold is actvated
2024-12-11 18:55:07 +03:30
Mohammad
17e1cdb76b fix value error (#1501) 2024-12-11 15:54:45 +03:30
Mohammad
432564343d Migrate to SQLAlchemy 2.0 (#1500)
* Migrate to SQLAlchemy 2.0

* change all raw sqls to sqlAlchemy syntax
2024-12-11 08:48:51 +03:30
Mohammad
ea6a3d2eb6 Migrate to Pydantic V2 (#1495)
* chore: update pydantic to version 2.10.2 and refactor model validators

* refactor: simplify field validators by removing unnecessary pre and always flags

* remove typing_extensions==4.9.0 from requirements.txt

* refactor: remove allow_reuse flag from status field validator

* refactor: simplify field validators by removing pre and always flags

* refactor: update user model imports and enhance account class with abstract method

* refactor: update model_config to use dictionary format in Admin and SubscriptionUserResponse classes

* fix typo in UserDataResetByNext

* change pre=True to mode="before"

* refactor: update validation methods and model configuration in User and Proxy classes

* change pre=False with mode="after"

* Migrated to Pydantic V2

* fix: custom subscriptions not workong

* some small changes

* add missing properties to example schema

* replace from_orm with model_validate

---------

Co-authored-by: MahdiButcher <madibutchercoding@gmail.com>
Co-authored-by: Mahdi Butcher <MahdiButcherCoding@gmail.com>
2024-12-09 21:56:24 +03:30
Muhammad
afa6bc41c5 fix(admin): record admin usage (#1498) 2024-12-07 18:02:02 +03:30
Muhammad
4ba7a0c4f7 fix(admin): record admin usage (#1496) 2024-12-07 16:15:31 +03:30
TED
c614b4f365 fix: added a note regarding SSL & Documentation (#1489)
* fix: added a note regarding SSL & Documentation

* fix: added a note to access Marzban dashboard locally
2024-12-04 19:46:45 +03:30
Mohammad
c5d32633a0 feat: Add random selection from reality shortIds (#1490) 2024-12-04 18:28:12 +03:30
TED
f5ca4216c3 fix: added Marzban's installation commands for MySQL & MariaDB and backup-service commands (#1486)
* fix: added Marzban's installation commands for MySQL & MariaDB and backup-service commands

* fix: changed to lowercase

* fix: changed to lowercase

* fix: changed to lowercase

* fix: changed to lowercase

* fix: changed to lowercase
2024-12-03 23:36:25 +03:30
Emmanuel V
ae47dd0e59 fix(api): decorator variable must match the function argument (#1483) 2024-12-03 13:59:53 +03:30
Mohammad
b26f6c7b5f fix: xhttp extra in v2ray links (#1476) 2024-12-02 19:02:23 +03:30
Mohammad
4708436803 fix: path and host not sended in ws (#1475) 2024-12-02 18:05:01 +03:30
Mohammad
b703d89367 fix: multiple heads error (#1474) 2024-12-02 15:45:35 +03:30
Alireza Jafari
8346ce4f53 feat: Add migration to correct last_status_change for expired users (#1187)
* feat: Add migration to correct last_status_change for expired users.

* add check expire not NULL

---------

Co-authored-by: Mohammad <imMohammad20000@ProtonMail.com>
2024-12-01 12:21:58 +03:30
Mohammad
3f8f4af5cd Xray update (#1467)
* feat(xray-core): Add heartbeatPeriod variable support

* feat(xray-core): Add keepAlivePeriod support
2024-11-30 13:07:38 +03:30
Immortale
deb5802078 fix: incorrect status codes on the subscription page (#1463)
* fix: incorrect status codes on the subscription page

* removed unnecessary information about exceptions
2024-11-30 09:10:07 +03:30
Mohammad
2905ae163a fix(tgbot): None type error when sending logs to channel (#1465) 2024-11-28 21:52:17 +03:30
Mohammad
4f6d3136c5 Merge pull request #1455 from v-kamerdinerov/jose-to-jwt
Migrate from python-jose to JWT and refactor dependencies
2024-11-25 21:16:29 +03:30
Mohammad
497ca907ab make users_usage Optional (#1456) 2024-11-25 13:56:13 +03:30
Muhammad
e15789551b feat(admin): admin usage log (#1448)
* admin usage log

* users_usage in admin model
2024-11-25 13:27:40 +03:30