Merge pull request #315 from Websoft9/temp_branch

temp commit
This commit is contained in:
qiaofeng1227 2023-08-26 18:25:52 +08:00 committed by GitHub
commit 714e913e38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 12 additions and 12 deletions

View file

@ -18,7 +18,7 @@ from api.service import db
from api.model.response import Response from api.model.response import Response
from api.model.config import Config from api.model.config import Config
from api.model.status_reason import StatusReason from api.model.status_reason import StatusReason
from api.utils.common_log import myLogger from api.utils.log import myLogger
from redis import Redis from redis import Redis
from rq import Queue, Worker, Connection from rq import Queue, Worker, Connection
from rq.registry import StartedJobRegistry, FinishedJobRegistry, DeferredJobRegistry, FailedJobRegistry, ScheduledJobRegistry, CanceledJobRegistry from rq.registry import StartedJobRegistry, FinishedJobRegistry, DeferredJobRegistry, FailedJobRegistry, ScheduledJobRegistry, CanceledJobRegistry

View file

@ -1,4 +1,4 @@
from api.utils.common_log import myLogger from api.utils.log import myLogger
from api.utils.helper import Singleton from api.utils.helper import Singleton

View file

@ -4,7 +4,7 @@ from api.utils import shell_execute
from dotenv import load_dotenv, find_dotenv from dotenv import load_dotenv, find_dotenv
import dotenv import dotenv
from pathlib import Path from pathlib import Path
from api.utils.common_log import myLogger from api.utils.log import myLogger
from api.utils import shell_execute, const from api.utils import shell_execute, const
from api.exception.command_exception import CommandException from api.exception.command_exception import CommandException
from api.service import manage from api.service import manage

View file

@ -1,4 +1,4 @@
from api.utils.common_log import myLogger from api.utils.log import myLogger
from api.utils.helper import Singleton from api.utils.helper import Singleton
@ -66,4 +66,4 @@ class SettingsFile(object):
# This class is add/modify/cat/delete content from file # This class is add/modify/cat/delete content from file
# src: path | URL # src: path | URL

View file

@ -1 +1 @@
# connect Nginx Proxy Manager and executive API commands # connect Nginx Proxy Manager and executive API endpoint

View file

@ -1,6 +1,6 @@
#!/usr/bin/python3 #!/usr/bin/python3
import os, io, sys, platform, shutil, time, subprocess, json, datetime import os, io, sys, platform, shutil, time, subprocess, json, datetime
from api.utils.common_log import myLogger from api.utils.log import myLogger
from api.exception.command_exception import CommandException from api.exception.command_exception import CommandException
from api.utils import const from api.utils import const

View file

@ -9,7 +9,7 @@ from api.model.app import App
from api.model.response import Response from api.model.response import Response
from api.service import manage, db from api.service import manage, db
from api.utils import shell_execute, const from api.utils import shell_execute, const
from api.utils.common_log import myLogger from api.utils.log import myLogger
from api.exception.command_exception import CommandException from api.exception.command_exception import CommandException
from api.settings.settings import settings from api.settings.settings import settings

0
appmanage/create.sql Normal file
View file

View file

@ -1,5 +1,5 @@
from api.utils.common_log import myLogger from api.utils.log import myLogger
from api.utils import shell_execute from api.utils import shell_execute
shell_execute.execute_command_output_all("sed -i '/websoft9-appmanage/d' /etc/hosts") shell_execute.execute_command_output_all("sed -i '/websoft9-appmanage/d' /etc/hosts")
shell_execute.execute_command_output_all("echo $(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' websoft9-appmanage) websoft9-appmanage >> /etc/hosts") shell_execute.execute_command_output_all("echo $(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' websoft9-appmanage) websoft9-appmanage >> /etc/hosts")

View file

@ -12,7 +12,7 @@ from fastapi.openapi.docs import (
import api.v1.api as api_router_v1 import api.v1.api as api_router_v1
from api.utils.common_log import myLogger from api.utils.log import myLogger
from api.utils import shell_execute from api.utils import shell_execute
from api.settings.settings import settings from api.settings.settings import settings
@ -66,4 +66,4 @@ if __name__ == "__main__":
parser = argparse.ArgumentParser(description='websoft9') parser = argparse.ArgumentParser(description='websoft9')
parser.add_argument("--port", type=int, dest='port', default=5000, metavar="port") parser.add_argument("--port", type=int, dest='port', default=5000, metavar="port")
args = parser.parse_args() args = parser.parse_args()
uvicorn.run("main:get_app", host='0.0.0.0', port=args.port, reload=True) uvicorn.run("main:get_app", host='0.0.0.0', port=args.port, reload=True)