1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-02-06 02:25:14 +00:00

fix: change webui port

This commit is contained in:
YoursFunny 2023-11-22 21:02:00 +08:00
parent 5e9615542c
commit 8fe578615d
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C
8 changed files with 13 additions and 13 deletions

View File

@ -128,8 +128,8 @@ Deploy:
WebuiHost: 0.0.0.0 WebuiHost: 0.0.0.0
# --port. Port to listen # --port. Port to listen
# You will be able to access webui via `http://{host}:{port}` # You will be able to access webui via `http://{host}:{port}`
# [In most cases] Default to 22367 # [In most cases] Default to 23467
WebuiPort: 22367 WebuiPort: 23467
# Language to use on web ui # Language to use on web ui
# 'zh-CN' for Chinese simplified # 'zh-CN' for Chinese simplified
# 'en-US' for English # 'en-US' for English

View File

@ -128,8 +128,8 @@ Deploy:
WebuiHost: 0.0.0.0 WebuiHost: 0.0.0.0
# --port. Port to listen # --port. Port to listen
# You will be able to access webui via `http://{host}:{port}` # You will be able to access webui via `http://{host}:{port}`
# [In most cases] Default to 22367 # [In most cases] Default to 23467
WebuiPort: 22367 WebuiPort: 23467
# Language to use on web ui # Language to use on web ui
# 'zh-CN' for Chinese simplified # 'zh-CN' for Chinese simplified
# 'en-US' for English # 'en-US' for English

View File

@ -55,7 +55,7 @@ class ConfigModel:
# Webui # Webui
WebuiHost: str = "0.0.0.0" WebuiHost: str = "0.0.0.0"
WebuiPort: int = 22367 WebuiPort: int = 23467
Language: str = "en-US" Language: str = "en-US"
Theme: str = "default" Theme: str = "default"
DpiScaling: bool = True DpiScaling: bool = True

View File

@ -128,8 +128,8 @@ Deploy:
WebuiHost: 0.0.0.0 WebuiHost: 0.0.0.0
# --port. Port to listen # --port. Port to listen
# You will be able to access webui via `http://{host}:{port}` # You will be able to access webui via `http://{host}:{port}`
# [In most cases] Default to 22367 # [In most cases] Default to 23467
WebuiPort: 22367 WebuiPort: 23467
# Language to use on web ui # Language to use on web ui
# 'zh-CN' for Chinese simplified # 'zh-CN' for Chinese simplified
# 'en-US' for English # 'en-US' for English

2
gui.py
View File

@ -49,7 +49,7 @@ def func(ev: threading.Event):
args, _ = parser.parse_known_args() args, _ = parser.parse_known_args()
host = args.host or State.deploy_config.WebuiHost or "0.0.0.0" host = args.host or State.deploy_config.WebuiHost or "0.0.0.0"
port = args.port or int(State.deploy_config.WebuiPort) or 22367 port = args.port or int(State.deploy_config.WebuiPort) or 23467
State.electron = args.electron State.electron = args.electron
logger.hr("Launcher config") logger.hr("Launcher config")

View File

@ -16,8 +16,8 @@ import time
from subprocess import PIPE, Popen from subprocess import PIPE, Popen
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
from module.logger import logger
from module.config.utils import random_id from module.config.utils import random_id
from module.logger import logger
from module.webui.setting import State from module.webui.setting import State
if TYPE_CHECKING: if TYPE_CHECKING:
@ -41,7 +41,7 @@ def am_i_the_only_thread() -> bool:
def remote_access_service( def remote_access_service(
local_host="127.0.0.1", local_host="127.0.0.1",
local_port=22367, local_port=23467,
server="app.pywebio.online", server="app.pywebio.online",
server_port=1022, server_port=1022,
remote_port="/", remote_port="/",

View File

@ -128,8 +128,8 @@ Deploy:
WebuiHost: 0.0.0.0 WebuiHost: 0.0.0.0
# --port. Port to listen # --port. Port to listen
# You will be able to access webui via `http://{host}:{port}` # You will be able to access webui via `http://{host}:{port}`
# [In most cases] Default to 22367 # [In most cases] Default to 23467
WebuiPort: 22367 WebuiPort: 23467
# Language to use on web ui # Language to use on web ui
# 'zh-CN' for Chinese simplified # 'zh-CN' for Chinese simplified
# 'en-US' for English # 'en-US' for English

View File

@ -9,6 +9,6 @@ export async function initAppConfigStore() {
appStore.setRepository( appStore.setRepository(
(repositoryValueMap[config?.repository] as 'global' | 'china') ?? 'global', (repositoryValueMap[config?.repository] as 'global' | 'china') ?? 'global',
); );
appStore.setWebuiUrl(config?.webuiUrl ?? '127.0.0.1:22367'); appStore.setWebuiUrl(config?.webuiUrl ?? '127.0.0.1:23467');
appStore.setAlasPath(config?.alasPath ?? ''); appStore.setAlasPath(config?.alasPath ?? '');
} }