From 00f514ce3d781856b9ae0dcd69066196110dfa84 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 24 Mar 2026 17:15:18 +0800 Subject: [PATCH 1/3] perf: update docker web health check --- default.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.conf b/default.conf index 3f2d715..d627bda 100644 --- a/default.conf +++ b/default.conf @@ -22,7 +22,7 @@ server { location /web/health/ { access_log off; - add_header Content-Type 'application/json'; + default_type application/json; return 200 '{"status": "ok"}'; } From c58102cab69568928882ba7b21eb36ee7b981a81 Mon Sep 17 00:00:00 2001 From: Bai Date: Wed, 25 Mar 2026 16:09:29 +0800 Subject: [PATCH 2/3] fix: nginx log no rotate, so log_file very big --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 7b9a81c..ab34f79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ ARG TOOLS=" \ wget \ curl \ vim \ + logrotate \ " RUN set -ex \ From 1e281f2471e563a26cd8c0fb47845e4f25f53bf0 Mon Sep 17 00:00:00 2001 From: Bai Date: Wed, 25 Mar 2026 16:11:17 +0800 Subject: [PATCH 3/3] fix: nginx log no rotate, so log_file very big --- default.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.conf b/default.conf index d627bda..3f2d715 100644 --- a/default.conf +++ b/default.conf @@ -22,7 +22,7 @@ server { location /web/health/ { access_log off; - default_type application/json; + add_header Content-Type 'application/json'; return 200 '{"status": "ok"}'; }