Files
pangolin/web/website/src/config/site.ts
T
wangjia c3b64e8d0f
Deploy Site / deploy-site (push) Successful in 1m22s
feat(website): 下载页接入 macOS(.zip)按钮
macOS 自 client-v1.0.59 起由 CI 产出 pangolin-macos-x64.zip 并部署到
/downloads,官网下载页 macOS 卡片从禁用占位改为真实下载直链;iOS 走
TestFlight 无直链、Linux 未接入,保持禁用。astro build 通过。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013nMthbVEmQquxBRKb9Fj8u
2026-07-07 11:56:21 +08:00

39 lines
1.8 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* site.ts — 站点级配置「单一真相源」:域名、联系方式、对外渠道。
*
* 改这一处即可:组件(Footer / Pricing)与 astro.config 的 canonical 域名都从这里读。
* 此处只承载「事实值」(URL / 邮箱 / handle);可翻译的展示文案仍走 i18n/strings.ts。
*/
export const SITE = {
/** canonical 主域名。镜像部署可用 SITE_URL 环境变量覆盖(见 astro.config.mjs)。 */
url: 'https://pangolin.yanmeiai.com',
/** 联系邮箱。Cloudflare Email Routing 转发到个人 Gmail。 */
email: 'pangolin@yanmeiai.com',
/** Telegram 公开频道(群为私有,公开页不放)。 */
telegram: { handle: '@pangolin_app', url: 'https://t.me/pangolin_app' },
/** LINE 官方账号 —— 待确认(#24)。 */
line: { handle: '@pangolinvpn' },
/** 自助发卡商店 —— 占位待定(#24)。 */
store: { label: 'shop.pangolin.vpn' },
/** Web 用户中心(web/usercenterNext.js 静态导出 → CF Pages)。登录/订阅/设备管理入口。 */
usercenter: 'https://app.yanmeiai.com',
/**
* 客户端安装包直链。控制面 pangolin-server 通过 Cloudflare Tunnel 对外暴露
* /downloads/<file>origin = 127.0.0.1:8080),文件由
* scripts/ci/deploy-client.sh 每次构建 scp 覆盖到 pangolin1:/var/lib/pangolin/downloads/
* 每平台固定文件名、只保留最新一份。macOS 自 client-v1.0.59 起接入;
* iOS 走 TestFlight(无直接下载文件)、Linux 本轮未接入下载按钮。
*/
downloads: {
android: 'https://api.yanmeiai.com/downloads/pangolin-android.apk',
windows: 'https://api.yanmeiai.com/downloads/pangolin-windows-x64-setup.exe',
macos: 'https://api.yanmeiai.com/downloads/pangolin-macos-x64.zip',
},
} as const;