mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-16 02:35:12 +00:00
fix: change webui port
This commit is contained in:
parent
5e9615542c
commit
8fe578615d
@ -128,8 +128,8 @@ Deploy:
|
||||
WebuiHost: 0.0.0.0
|
||||
# --port. Port to listen
|
||||
# You will be able to access webui via `http://{host}:{port}`
|
||||
# [In most cases] Default to 22367
|
||||
WebuiPort: 22367
|
||||
# [In most cases] Default to 23467
|
||||
WebuiPort: 23467
|
||||
# Language to use on web ui
|
||||
# 'zh-CN' for Chinese simplified
|
||||
# 'en-US' for English
|
||||
|
||||
@ -128,8 +128,8 @@ Deploy:
|
||||
WebuiHost: 0.0.0.0
|
||||
# --port. Port to listen
|
||||
# You will be able to access webui via `http://{host}:{port}`
|
||||
# [In most cases] Default to 22367
|
||||
WebuiPort: 22367
|
||||
# [In most cases] Default to 23467
|
||||
WebuiPort: 23467
|
||||
# Language to use on web ui
|
||||
# 'zh-CN' for Chinese simplified
|
||||
# 'en-US' for English
|
||||
|
||||
@ -55,7 +55,7 @@ class ConfigModel:
|
||||
|
||||
# Webui
|
||||
WebuiHost: str = "0.0.0.0"
|
||||
WebuiPort: int = 22367
|
||||
WebuiPort: int = 23467
|
||||
Language: str = "en-US"
|
||||
Theme: str = "default"
|
||||
DpiScaling: bool = True
|
||||
|
||||
@ -128,8 +128,8 @@ Deploy:
|
||||
WebuiHost: 0.0.0.0
|
||||
# --port. Port to listen
|
||||
# You will be able to access webui via `http://{host}:{port}`
|
||||
# [In most cases] Default to 22367
|
||||
WebuiPort: 22367
|
||||
# [In most cases] Default to 23467
|
||||
WebuiPort: 23467
|
||||
# Language to use on web ui
|
||||
# 'zh-CN' for Chinese simplified
|
||||
# 'en-US' for English
|
||||
|
||||
2
gui.py
2
gui.py
@ -49,7 +49,7 @@ def func(ev: threading.Event):
|
||||
args, _ = parser.parse_known_args()
|
||||
|
||||
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
|
||||
|
||||
logger.hr("Launcher config")
|
||||
|
||||
@ -16,8 +16,8 @@ import time
|
||||
from subprocess import PIPE, Popen
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from module.logger import logger
|
||||
from module.config.utils import random_id
|
||||
from module.logger import logger
|
||||
from module.webui.setting import State
|
||||
|
||||
if TYPE_CHECKING:
|
||||
@ -41,7 +41,7 @@ def am_i_the_only_thread() -> bool:
|
||||
|
||||
def remote_access_service(
|
||||
local_host="127.0.0.1",
|
||||
local_port=22367,
|
||||
local_port=23467,
|
||||
server="app.pywebio.online",
|
||||
server_port=1022,
|
||||
remote_port="/",
|
||||
|
||||
@ -128,8 +128,8 @@ Deploy:
|
||||
WebuiHost: 0.0.0.0
|
||||
# --port. Port to listen
|
||||
# You will be able to access webui via `http://{host}:{port}`
|
||||
# [In most cases] Default to 22367
|
||||
WebuiPort: 22367
|
||||
# [In most cases] Default to 23467
|
||||
WebuiPort: 23467
|
||||
# Language to use on web ui
|
||||
# 'zh-CN' for Chinese simplified
|
||||
# 'en-US' for English
|
||||
|
||||
@ -9,6 +9,6 @@ export async function initAppConfigStore() {
|
||||
appStore.setRepository(
|
||||
(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 ?? '');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user