From cc3085050ce7c5417adb4650a56134966c5768c9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-L8OUL9F\\gfl0034" <1003614916@qq.com> Date: Tue, 22 Sep 2026 15:20:21 +0800 Subject: [PATCH] Hide developer docs from Spark Messenger marketing site. Remove the sparkapi /docs CTA from the landing page and block docs/openapi/swagger/architecture paths on the website Nginx vhost. Co-authored-by: Cursor --- deploy/nginx/host/sparkmessenger.conf | 8 ++++++++ website/index.html | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deploy/nginx/host/sparkmessenger.conf b/deploy/nginx/host/sparkmessenger.conf index be3dba3..75a9074 100644 --- a/deploy/nginx/host/sparkmessenger.conf +++ b/deploy/nginx/host/sparkmessenger.conf @@ -31,6 +31,9 @@ server { add_header X-Content-Type-Options nosniff always; add_header Referrer-Policy "strict-origin-when-cross-origin" always; + # Mainland CN except Shanghai → Chinese deny page (overseas + Shanghai allow) + include /etc/nginx/snippets/wyrs-cn-geo-access.conf; + root /var/www/sparkmessenger.wyrs365.com; index index.html; @@ -47,6 +50,11 @@ server { try_files $uri =404; } + # Marketing site only — never expose API / OpenAPI / architecture docs here. + location ~* ^/(docs|openapi|swagger|architecture)(/|\.|$) { + return 404; + } + location / { try_files $uri $uri/ /index.html; } diff --git a/website/index.html b/website/index.html index 33f2429..7102e83 100644 --- a/website/index.html +++ b/website/index.html @@ -36,7 +36,6 @@

把对话、群聊与朋友圈收进同一束火花——安静、可靠、随处可达。

获取应用 - 开发者文档