mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 16:55:56 +03:00
[GH-ISSUE #1501] 健康检查能否设置为配置项,按需启动 #6604
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#6604
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sea-ten on GitHub (Dec 26, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1501
我看源码显示这个健康检查功能是默认启用的。
const formData = ref({
// Basic settings (health check is always enabled)
enabled: true,
interval: 300,
timeout: 10,
userAgent: 'Nginx-UI Enhanced Checker/2.0',
maxRedirects: 3,
followRedirects: true,
checkFavicon: true,
但由于有些服务可能临时启动一下,然后就关闭了,这种情况下,会产生大量的502日志:
[26/Dec/2025:00:19:56 +0800] "GET / HTTP/1.1" 502 154 "-" "Nginx-UI Enhanced Checker/2.0"
[26/Dec/2025:00:19:56 +0800] "GET / HTTP/1.1" 502 154 "-" "Nginx-UI Site Checker/1.0"
不知能否在[server]配置项增加一个EnhancedHealthCheck的子项?
@0xJacky commented on GitHub (Dec 26, 2025):
可以在站点仪表盘的右上角设置
@0xJacky commented on GitHub (Dec 26, 2025):
@sea-ten commented on GitHub (Dec 26, 2025):
我知道这个地方,我之前已经手动把十几个站点的健康检查关了,然后昨天启动了一些临时服务,把禁用的站点列表启用了,后面临时服务停止了,但是站点忘记继续禁用,就产生了很多日志。感觉以后还可能遇到这样的情况。
当然我这个也不是什么紧急和重要的需求,只是反馈有这样的场景,并提供一个建议而已。