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 <cursoragent@cursor.com>
This commit is contained in:
DESKTOP-L8OUL9F\gfl0034 2026-09-22 15:20:21 +08:00
parent 5b53dd906c
commit cc3085050c
2 changed files with 8 additions and 1 deletions

View File

@ -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;
}

View File

@ -36,7 +36,6 @@
<p class="lede">把对话、群聊与朋友圈收进同一束火花——安静、可靠、随处可达。</p>
<div class="cta">
<a class="btn btn-primary" href="#download">获取应用</a>
<a class="btn btn-ghost" href="https://sparkapi.wyrs365.com/docs" rel="noopener">开发者文档</a>
</div>
</div>