chore: 将域名从 searchgal.homes 迁移至 searchgal.top并增加API节点

- 更新所有环境配置文件中的 API 和站点域名为 searchgal.top。
- 在 api.json 中新增多个区域的 ClawCloud API 节点。
This commit is contained in:
Jurangren
2026-01-28 04:24:08 +08:00
parent 04c8e43ef7
commit fe5f836b87
22 changed files with 74 additions and 59 deletions

View File

@@ -1,7 +1,7 @@
# 开发环境配置
# API 配置(开发环境可以使用本地 API
VITE_API_BASE_URL=https://cf.api.searchgal.homes
VITE_API_BASE_URL=https://cf.api.searchgal.top
# VITE_API_BASE_URL=http://localhost:8787
# 开发配置

View File

@@ -11,22 +11,22 @@ VITE_APP_VERSION=1.0.0
# ============================================
# API 配置
# ============================================
VITE_API_BASE_URL=https://cf.api.searchgal.homes
VITE_API_BASE_URL=https://cf.api.searchgal.top
VITE_API_TIMEOUT=30000
VITE_TRANSLATE_API_URL=https://translate.searchgal.homes
VITE_TRANSLATE_API_URL=https://translate.searchgal.top
VITE_VNDB_API_URL=https://api.vndb.org/kana/v1
# ============================================
# 外部服务
# ============================================
VITE_STATUS_URL=https://status.searchgal.homes
VITE_STATUS_URL=https://status.searchgal.top
VITE_ARTALK_SERVER=https://artalk.saop.cc
VITE_IMAGE_API_URL=https://api.illlights.com/v1/img
# ============================================
# 网站信息
# ============================================
VITE_SITE_URL=https://searchgal.homes
VITE_SITE_URL=https://searchgal.top
VITE_SITE_NAME=SearchGal
VITE_GITHUB_URL=https://github.com/Moe-Sakura/frontend

View File

@@ -1,7 +1,7 @@
# 生产环境配置
# API 配置
VITE_API_BASE_URL=https://cf.api.searchgal.homes
VITE_API_BASE_URL=https://cf.api.searchgal.top
# 开发配置
VITE_ENABLE_DEBUG=false

View File

@@ -7,7 +7,7 @@
[![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue.svg)](https://www.typescriptlang.org/)
[![Tailwind CSS](https://img.shields.io/badge/Tailwind-4.1-38bdf8.svg)](https://tailwindcss.com/)
🌐 **在线访问**: [searchgal.homes](https://searchgal.homes)
🌐 **在线访问**: [searchgal.top](https://searchgal.top)
## ✨ 特性
@@ -169,7 +169,7 @@ frontend/
默认使用 Cloudflare Workers API
```typescript
// src/api/search.ts
const apiUrl = 'https://cf.api.searchgal.homes'
const apiUrl = 'https://cf.api.searchgal.top'
```
支持自定义 API 地址,在搜索页面输入框中填写即可。
@@ -220,7 +220,7 @@ pnpm run build
本项目遵循 [llms.txt](https://llmstxt.org/) 规范,为 AI 助手和大语言模型提供了结构化的项目文档。
- 📄 访问 `/llms.txt` 获取项目的 LLM 友好文档
- 🔗 在线地址: [searchgal.homes/llms.txt](https://searchgal.homes/llms.txt)
- 🔗 在线地址: [searchgal.top/llms.txt](https://searchgal.top/llms.txt)
## 🤝 贡献
@@ -278,7 +278,7 @@ vim .env
## 📮 联系方式
- GitHub: [@Moe-Sakura](https://github.com/Moe-Sakura)
- 项目主页: [searchgal.homes](https://searchgal.homes)
- 项目主页: [searchgal.top](https://searchgal.top)
---

View File

@@ -77,7 +77,7 @@
### 🔧 API 集成
- **Cloudflare Workers API**
- 端点:`https://cf.api.searchgal.homes`
- 端点:`https://cf.api.searchgal.top`
- POST `/gal` - 搜索游戏资源
- POST `/patch` - 搜索补丁资源
- SSE 流式响应

View File

@@ -28,7 +28,7 @@ import { CONFIG } from '@/config'
// 使用 API 配置
const apiUrl = CONFIG.api.defaultApiUrl
console.log(apiUrl) // https://cf.api.searchgal.homes
console.log(apiUrl) // https://cf.api.searchgal.top
// 使用功能开关
if (CONFIG.features.enableComments) {

View File

@@ -37,16 +37,16 @@ pnpm dev
| 变量名 | 说明 | 默认值 |
|--------|------|--------|
| `VITE_API_BASE_URL` | 搜索 API 地址 | https://cf.api.searchgal.homes |
| `VITE_API_BASE_URL` | 搜索 API 地址 | https://cf.api.searchgal.top |
| `VITE_API_TIMEOUT` | API 超时时间(毫秒) | 30000 |
| `VITE_TRANSLATE_API_URL` | 翻译 API 地址 | https://translate.searchgal.homes |
| `VITE_TRANSLATE_API_URL` | 翻译 API 地址 | https://translate.searchgal.top |
| `VITE_VNDB_API_URL` | VNDB API 地址 | https://api.vndb.org/kana/v1 |
### 外部服务
| 变量名 | 说明 | 默认值 |
|--------|------|--------|
| `VITE_STATUS_URL` | 状态检查 URL | https://status.searchgal.homes |
| `VITE_STATUS_URL` | 状态检查 URL | https://status.searchgal.top |
| `VITE_ARTALK_SERVER` | Artalk 评论服务器 | https://artalk.saop.cc |
| `VITE_IMAGE_API_URL` | 随机图片 API | https://api.illlights.com/v1/img |
@@ -54,7 +54,7 @@ pnpm dev
| 变量名 | 说明 | 默认值 |
|--------|------|--------|
| `VITE_SITE_URL` | 网站 URL | https://searchgal.homes |
| `VITE_SITE_URL` | 网站 URL | https://searchgal.top |
| `VITE_SITE_NAME` | 网站名称 | SearchGal |
| `VITE_GITHUB_URL` | GitHub 仓库 | https://github.com/Moe-Sakura/frontend |

View File

@@ -6,7 +6,7 @@
**之前(硬编码):**
```typescript
const response = await fetch('https://cf.api.searchgal.homes/search')
const response = await fetch('https://cf.api.searchgal.top/search')
```
**之后(使用配置):**

View File

@@ -81,13 +81,13 @@
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://searchgal.homes/" />
<meta property="og:url" content="https://searchgal.top/" />
<meta property="og:title" content="SearchGal - Galgame 聚合搜索" />
<meta
property="og:description"
content="Galgame 资源聚合搜索引擎,支持多站点搜索、游戏信息查询、补丁下载。一站式搜索体验,快速找到你想要的 Galgame 资源。"
/>
<meta property="og:image" content="https://searchgal.homes/logo.svg" />
<meta property="og:image" content="https://searchgal.top/logo.svg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:locale" content="zh_CN" />
@@ -95,7 +95,7 @@
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://searchgal.homes/" />
<meta property="twitter:url" content="https://searchgal.top/" />
<meta property="twitter:title" content="SearchGal - Galgame 聚合搜索" />
<meta
property="twitter:description"
@@ -103,7 +103,7 @@
/>
<meta
property="twitter:image"
content="https://searchgal.homes/logo.svg"
content="https://searchgal.top/logo.svg"
/>
<!-- Favicon -->
@@ -122,14 +122,14 @@
<meta name="msapplication-config" content="/browserconfig.xml" />
<!-- Canonical URL -->
<link rel="canonical" href="https://searchgal.homes/" />
<link rel="canonical" href="https://searchgal.top/" />
<!-- 预连接关键资源 -->
<link rel="preconnect" href="https://api.illlights.com" />
<link rel="preconnect" href="https://api.vndb.org" />
<link rel="preconnect" href="https://registry.npmmirror.com" />
<link rel="dns-prefetch" href="https://artalk.saop.cc" />
<link rel="dns-prefetch" href="https://status.searchgal.homes" />
<link rel="dns-prefetch" href="https://status.searchgal.top" />
<!-- 性能优化 Meta 标签 -->
<meta http-equiv="x-dns-prefetch-control" content="on" />

View File

@@ -1,3 +1,3 @@
/* /404 404
https://www.searchgal.homes/* https://searchgal.homes/:splat 301!
https://sg.saop.cc/* https://searchgal.homes/:splat 301!
https://www.searchgal.top/* https://searchgal.top/:splat 301!
https://sg.saop.cc/* https://searchgal.top/:splat 301!

View File

@@ -1,3 +1,3 @@
User-agent: *
Allow: /
Sitemap: https://searchgal.homes/sitemap.xml
Sitemap: https://searchgal.top/sitemap.xml

View File

@@ -9,24 +9,24 @@
<!-- 主页 -->
<url>
<loc>https://searchgal.homes/</loc>
<loc>https://searchgal.top/</loc>
<lastmod>2025-12-21</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
<image:image>
<image:loc>https://searchgal.homes/logo.svg</image:loc>
<image:loc>https://searchgal.top/logo.svg</image:loc>
<image:title>SearchGal - Galgame 聚合搜索</image:title>
<image:caption>Galgame 资源聚合搜索引擎,支持多站点搜索</image:caption>
</image:image>
<image:image>
<image:loc>https://searchgal.homes/og-image.png</image:loc>
<image:loc>https://searchgal.top/og-image.png</image:loc>
<image:title>SearchGal 社交分享图</image:title>
</image:image>
</url>
<!-- AI/LLM 信息页 -->
<url>
<loc>https://searchgal.homes/llms.txt</loc>
<loc>https://searchgal.top/llms.txt</loc>
<lastmod>2025-12-21</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
@@ -34,7 +34,7 @@
<!-- PWA Manifest -->
<url>
<loc>https://searchgal.homes/manifest.json</loc>
<loc>https://searchgal.top/manifest.json</loc>
<lastmod>2025-12-21</lastmod>
<changefreq>monthly</changefreq>
<priority>0.3</priority>

View File

@@ -84,7 +84,7 @@ export async function searchGameStream(
},
) {
try {
const apiUrl = searchParams.get('api') || 'https://cf.api.searchgal.homes'
const apiUrl = searchParams.get('api') || 'https://cf.api.searchgal.top'
const gameName = searchParams.get('game')
const searchMode = searchParams.get('mode') || 'game'

View File

@@ -146,7 +146,7 @@ function initArtalk() {
try {
artalkInstance = Artalk.init({
el: '#Comments',
pageKey: 'https://searchgal.homes',
pageKey: 'https://searchgal.top',
pageTitle: 'Galgame 聚合搜索',
server: 'https://artalk.saop.cc',
site: 'Galgame 聚合搜索',

View File

@@ -272,7 +272,7 @@
关闭提示
</button>
<a
href="https://status.searchgal.homes"
href="https://status.searchgal.top"
target="_blank"
rel="noopener noreferrer"
class="px-3 py-1.5 rounded-lg text-xs font-medium text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-900/20 hover:bg-red-100 dark:hover:bg-red-900/40 border border-red-200/50 dark:border-red-800/30 transition-colors flex items-center gap-1.5"

View File

@@ -369,7 +369,7 @@
<input
v-model="localVndbImageProxyUrl"
type="url"
placeholder="https://rp.searchgal.homes/"
placeholder="https://rp.searchgal.top/"
class="api-input w-full px-4 py-3 text-sm rounded-xl bg-slate-50 dark:bg-slate-800/80 shadow-inner focus:shadow-lg focus:shadow-cyan-500/10 transition-all duration-200 outline-none border-2 border-transparent focus:border-cyan-500 text-gray-800 dark:text-slate-100 placeholder:text-gray-400"
@input="handleTyping"
/>
@@ -383,7 +383,7 @@
<input
v-model="localAiTranslateApiUrl"
type="url"
placeholder="https://ai.searchgal.homes/v1/chat/completions"
placeholder="https://ai.searchgal.top/v1/chat/completions"
class="api-input w-full px-4 py-3 text-sm rounded-xl bg-slate-50 dark:bg-slate-800/80 shadow-inner focus:shadow-lg focus:shadow-cyan-500/10 transition-all duration-200 outline-none border-2 border-transparent focus:border-cyan-500 text-gray-800 dark:text-slate-100 placeholder:text-gray-400"
@input="handleTyping"
/>
@@ -439,7 +439,7 @@
<input
v-model="localVideoParseApiUrl"
type="url"
placeholder="https://vp.searchgal.homes/"
placeholder="https://vp.searchgal.top/"
class="api-input w-full px-4 py-3 text-sm rounded-xl bg-slate-50 dark:bg-slate-800/80 shadow-inner focus:shadow-lg focus:shadow-cyan-500/10 transition-all duration-200 outline-none border-2 border-transparent focus:border-cyan-500 text-gray-800 dark:text-slate-100 placeholder:text-gray-400"
@input="handleTyping"
/>

View File

@@ -2,7 +2,7 @@
<!-- 左上角状态指示器 -->
<div class="fixed top-4 left-4 z-40">
<a
href="https://status.searchgal.homes"
href="https://status.searchgal.top"
target="_blank"
rel="noopener noreferrer"
:class="[

View File

@@ -5,10 +5,10 @@
// API 配置
export const API_CONFIG = {
defaultApiUrl: import.meta.env.VITE_DEFAULT_API_URL || 'https://cf.api.searchgal.homes',
defaultApiUrl: import.meta.env.VITE_DEFAULT_API_URL || 'https://cf.api.searchgal.top',
vndbApiUrl: import.meta.env.VITE_VNDB_API_URL || 'https://api.vndb.org/kana/vn',
translateApiUrl: import.meta.env.VITE_TRANSLATE_API_URL || 'https://cf.api.searchgal.homes/translate',
statusApiUrl: import.meta.env.VITE_STATUS_API_URL || 'https://status.searchgal.homes',
translateApiUrl: import.meta.env.VITE_TRANSLATE_API_URL || 'https://cf.api.searchgal.top/translate',
statusApiUrl: import.meta.env.VITE_STATUS_API_URL || 'https://status.searchgal.top',
randomImageApi: import.meta.env.VITE_RANDOM_IMAGE_API || 'https://api.illlights.com/v1/img',
} as const
@@ -17,7 +17,7 @@ export const APP_CONFIG = {
name: import.meta.env.VITE_APP_NAME || 'SearchGal',
title: import.meta.env.VITE_APP_TITLE || 'SearchGal - Galgame 聚合搜索',
description: import.meta.env.VITE_APP_DESCRIPTION || 'Galgame 资源聚合搜索引擎',
url: import.meta.env.VITE_APP_URL || 'https://searchgal.homes',
url: import.meta.env.VITE_APP_URL || 'https://searchgal.top',
} as const
// 功能开关

View File

@@ -117,20 +117,20 @@ export const config: AppConfig = {
},
api: {
baseUrl: getEnv('VITE_API_BASE_URL', 'https://cf.api.searchgal.homes'),
baseUrl: getEnv('VITE_API_BASE_URL', 'https://cf.api.searchgal.top'),
timeout: getEnv('VITE_API_TIMEOUT', 30000),
translateUrl: getEnv('VITE_TRANSLATE_API_URL', 'https://translate.searchgal.homes'),
translateUrl: getEnv('VITE_TRANSLATE_API_URL', 'https://translate.searchgal.top'),
vndbUrl: getEnv('VITE_VNDB_API_URL', 'https://api.vndb.org/kana/v1'),
},
services: {
statusUrl: getEnv('VITE_STATUS_URL', 'https://status.searchgal.homes'),
statusUrl: getEnv('VITE_STATUS_URL', 'https://status.searchgal.top'),
artalkServer: getEnv('VITE_ARTALK_SERVER', 'https://artalk.saop.cc'),
imageApiUrl: getEnv('VITE_IMAGE_API_URL', 'https://api.illlights.com/v1/img'),
},
site: {
url: getEnv('VITE_SITE_URL', 'https://searchgal.homes'),
url: getEnv('VITE_SITE_URL', 'https://searchgal.top'),
name: getEnv('VITE_SITE_NAME', 'SearchGal'),
githubUrl: getEnv('VITE_GITHUB_URL', 'https://github.com/Moe-Sakura/frontend'),
},

View File

@@ -3,37 +3,52 @@
{
"key": "vercelapi",
"label": "Vercel",
"url": "https://vercel.api.searchgal.homes"
"url": "https://vercel.api.searchgal.top"
},
{
"key": "cfapi",
"label": "Cloudflare",
"url": "https://cf.api.searchgal.homes"
"url": "https://cf.api.searchgal.top"
},
{
"key": "netlifyapi",
"label": "Netlify",
"url": "https://netlify.api.searchgal.homes"
"url": "https://netlify.api.searchgal.top"
},
{
"key": "api",
"label": "香港 雨云",
"url": "https://api.searchgal.homes"
"url": "https://api.searchgal.top"
},
{
"key": "gzapi",
"label": "广州 腾讯云",
"url": "https://gz.api.searchgal.homes"
"url": "https://gz.api.searchgal.top"
},
{
"key": "jpapi",
"label": "东京 ClawCloud",
"url": "https://jp.api.searchgal.homes"
"key": "us-westapi",
"label": "洛杉矶 ClawCloud",
"url": "https://us-west.api.searchgal.top"
},
{
"key": "us-eastapi",
"label": "弗吉尼亚州 ClawCloud",
"url": "https://us-east.api.searchgal.top"
},
{
"key": "sgapi",
"label": "新加坡 ClawCloud",
"url": "https://sg.api.searchgal.top"
},
{
"key": "deapi",
"label": "法兰克福 ClawCloud",
"url": "https://de.api.searchgal.homes"
"url": "https://de.api.searchgal.top"
},
{
"key": "jpapi",
"label": "东京 ClawCloud",
"url": "https://jp.api.searchgal.top"
}
],
"deployUrl": "https://github.com/Moe-Sakura/SearchGal",

View File

@@ -26,12 +26,12 @@ export interface UserSettings {
// 默认 API 配置
export const DEFAULT_API_CONFIG = {
vndbApiBaseUrl: 'https://api.vndb.org/kana',
vndbImageProxyUrl: 'https://rp.searchgal.homes/',
aiTranslateApiUrl: 'https://ai.searchgal.homes/v1/chat/completions',
vndbImageProxyUrl: 'https://rp.searchgal.top/',
aiTranslateApiUrl: 'https://ai.searchgal.top/v1/chat/completions',
aiTranslateApiKey: 'sk-Md5kXePgq6HJjPa1Cf3265511bEe4e4c888232A0837e371e',
aiTranslateModel: 'Qwen/Qwen2.5-32B-Instruct',
backgroundImageApiUrl: 'https://api.illlights.com/v1/img',
videoParseApiUrl: 'https://vp.searchgal.homes/',
videoParseApiUrl: 'https://vp.searchgal.top/',
}
const DEFAULT_SETTINGS: UserSettings = {

View File

@@ -46,7 +46,7 @@ export const useStatsStore = defineStore('stats', () => {
// 服务状态
const serviceStatuses = ref<Map<string, ServiceStatus>>(new Map([
['api', { name: 'API 服务', status: 'unknown', lastChecked: 0, url: 'https://status.searchgal.homes' }],
['api', { name: 'API 服务', status: 'unknown', lastChecked: 0, url: 'https://status.searchgal.top' }],
['vndb', { name: 'VNDB', status: 'unknown', lastChecked: 0, url: 'https://api.vndb.org' }],
]))