From f98650118c0c61a399fb154954bdf2070f796f05 Mon Sep 17 00:00:00 2001 From: fanfpy Date: Tue, 1 Jul 2025 22:13:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(traefik):=20=E6=B7=BB=E5=8A=A0=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89API=E8=B7=AF=E5=BE=84=E5=89=8D=E7=BC=80?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为Traefik仪表板API添加prefix配置项,允许自定义API路径前缀以提高安全性 --- traefik/traefik.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/traefik/traefik.yml b/traefik/traefik.yml index 84f204b..c6dbeb6 100644 --- a/traefik/traefik.yml +++ b/traefik/traefik.yml @@ -11,4 +11,5 @@ providers: api: dashboard: true - insecure: true \ No newline at end of file + insecure: true + prefix: "/traefik-api" # 自定义 API 路径前缀 \ No newline at end of file