Skip to content

[Bug]强制启用https无需配置证书导致报错关闭 #7058

@1rua

Description

@1rua

What happened / 发生了什么

系统配置启用https后,若未配置证书则容器会在启动后立即报错关闭,无法进入webui

Reproduce / 如何复现?

系统配置启用https且未配置证书

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

docker部署

OS

Linux

Logs / 报错日志

raise ValueError(
ValueError: dashboard.ssl.enable 为 true 时,必须配置 cert_file 和 key_file。
sys:1: RuntimeWarning: coroutine 'AstrBotCoreLifecycle.start' was never awaited

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:webuiThe bug / feature is about webui(dashboard) of astrbot.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions