From 6bf070ab66270432c7d03c0fd66c532ca52be431 Mon Sep 17 00:00:00 2001 From: lingyuzeng Date: Thu, 2 Oct 2025 23:12:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=8B=E5=89=8D=E7=9A=84=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E9=87=8C=E6=8A=8A=E4=B8=AD=E9=97=B4=E4=BB=B6?= =?UTF-8?q?=E5=86=99=E6=88=90=E4=BA=86=20security-headers@file=EF=BC=88?= =?UTF-8?q?=E8=BF=98=E5=87=BA=E7=8E=B0=E8=BF=87=E4=B8=80=E4=B8=AA=E5=B8=A6?= =?UTF-8?q?=E9=80=97=E5=8F=B7=E7=9A=84=20security-headers@file,=EF=BC=89?= =?UTF-8?q?=E3=80=82=E8=80=8C=E5=9C=A8=E4=BD=A0=E7=9A=84=20routes/global.y?= =?UTF-8?q?ml=20=E9=87=8C=E7=9C=9F=E6=AD=A3=E5=AE=9A=E4=B9=89=E7=9A=84?= =?UTF-8?q?=E5=90=8D=E5=AD=97=E6=98=AF=20sec-headers@file=E3=80=82=20?= =?UTF-8?q?=E7=9B=AE=E7=9A=84=E5=B0=B1=E6=98=AF=E5=AF=B9=E9=BD=90=E4=B8=AD?= =?UTF-8?q?=E9=97=B4=E4=BB=B6=E5=90=8D=E7=A7=B0=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=20Traefik=20=E5=9C=A8=E8=A3=85=E9=85=8D=20router=20=E6=97=B6?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E4=BA=86=E4=B8=80=E4=B8=AA=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E7=9A=84=E4=B8=AD=E9=97=B4=E4=BB=B6=EF=BC=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E8=AF=A5=E6=9D=A1=20router=20=E6=8A=A5=E5=91=8A=20war?= =?UTF-8?q?ning=20/=20=E8=A2=AB=E9=99=8D=E7=BA=A7=EF=BC=8C=E8=BF=9B?= =?UTF-8?q?=E8=80=8C=E8=A2=AB=E5=85=B6=E5=AE=83=E2=80=9C=E6=9B=B4=E6=B3=9B?= =?UTF-8?q?=E2=80=9D=E7=9A=84=E8=B7=AF=E7=94=B1=EF=BC=88=E6=AF=94=E5=A6=82?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E8=87=AA=E5=B8=A6=E9=9D=A2=E6=9D=BF=208000/5?= =?UTF-8?q?666=EF=BC=89=E6=8A=A2=E8=B5=B0=E5=9F=9F=E5=90=8D=E6=B5=81?= =?UTF-8?q?=E9=87=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- registrar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registrar.sh b/registrar.sh index f7445ee..5f3918a 100755 --- a/registrar.sh +++ b/registrar.sh @@ -43,7 +43,7 @@ if [ "$SERVICE_PROTOCOL" = "http" ]; then # 抢占路由:给当前 Host 的 router 设置更高优先级 TAGS="$TAGS${NL}traefik.http.routers.${SERVICE_NAME}.priority=10000" # 可选中间件(注意:值里有逗号也安全) - TAGS="$TAGS${NL}traefik.http.routers.${SERVICE_NAME}.middlewares=gzip-all@file,security-headers@file" + TAGS="$TAGS${NL}traefik.http.routers.${SERVICE_NAME}.middlewares=gzip-all@file,sec-headers@file" # 如需 ACME 证书解析器可再加一行(取消注释) # TAGS="$TAGS${NL}traefik.http.routers.${SERVICE_NAME}.tls.certresolver=${TRAEFIK_CERT_RESOLVER}" elif [ "$SERVICE_PROTOCOL" = "tcp" ]; then