perf: 默认开启局域网访问

1. 更正 README 使用方法内容
2. 更正 Dockerfile 版本号

Closes #134
Closes #135
Closes #137
This commit is contained in:
JoeanAmier
2024-08-03 21:15:19 +08:00
parent 3e8b69f8e1
commit 678afea954
5 changed files with 10 additions and 9 deletions

View File

@@ -30,8 +30,8 @@ async def example():
record_data = False # 是否保存作品数据至文件
image_format = "WEBP" # 图文作品文件下载格式支持PNG、WEBP
folder_mode = False # 是否将每个作品的文件储存至单独的文件夹
async with XHS() as xhs:
pass # 使用默认参数
# async with XHS() as xhs:
# pass # 使用默认参数
async with XHS(work_path=work_path,
folder_name=folder_name,
name_format=name_format,
@@ -61,7 +61,7 @@ async def app():
await xhs.run_async()
async def server(host="127.0.0.1", port=8000, log_level="info", ):
async def server(host="0.0.0.0", port=8000, log_level="info", ):
async with XHS(**Settings().run()) as xhs:
await xhs.run_server(host, port, log_level, )