-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mouday
committed
Aug 28, 2024
1 parent
bebca65
commit d753147
Showing
9 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,10 @@ DB_CONNECT_URL=mysql://root:[email protected]:3306/data | |
APP_MODE=production | ||
|
||
# allow commands eg: | ||
ALLOW_COMMANDS=/opt/nginx/sbin/nginx -s reload | ||
ALLOW_COMMANDS=/opt/nginx/sbin/nginx -s reload | ||
|
||
# allow user register | ||
ENABLED_REGISTER=true | ||
|
||
# icp | ||
ICP= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
- 修复zerossl无法申请的问题 | ||
- fix #126 | ||
- 版本升级 | ||
- fix | ||
- 修改权限策略 | ||
- add zerossl | ||
- 优化权限控制 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
@File : migrate_1647_to_1648.py | ||
@Date : 2024-08-28 | ||
cmd: | ||
$ python domain_admin/migrate/migrate_1647_to_1648.py | ||
""" | ||
from __future__ import print_function, unicode_literals, absolute_import, division | ||
|
||
from domain_admin.config import ADMIN_USERNAME | ||
from domain_admin.enums.role_enum import RoleEnum | ||
from domain_admin.migrate import migrate_common | ||
from domain_admin.model.base_model import db | ||
from domain_admin.model.issue_certificate_model import IssueCertificateModel, DeployStatusEnum | ||
from domain_admin.model.tag_model import TagModel | ||
from domain_admin.model.user_model import UserModel | ||
|
||
|
||
def execute_migrate(): | ||
""" | ||
版本升级 1.6.47 => 1.6.48 | ||
:return: | ||
""" | ||
UserModel.update( | ||
role=RoleEnum.ADMIN | ||
).where( | ||
UserModel.username == ADMIN_USERNAME | ||
).execute() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters