Compare commits
27 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 11b675486b | |||
| 78ce9d2371 | |||
| 3007705693 | |||
| c6f1368298 | |||
| a371fcf53d | |||
| ea12d9ffae | |||
| c7bdf33c77 | |||
| 5e1b92fe88 | |||
| aee8a2a59c | |||
| ae2a08e79c | |||
| 3fbab6c512 | |||
| 8be43f46e8 | |||
| d1afde8406 | |||
| 438869f1ec | |||
| 0f89112e14 | |||
| 2c3b7efda4 | |||
| 594fdd60ac | |||
| 61d61f57f4 | |||
| 93106cbf3b | |||
| 0782e7f94f | |||
| 42c5f445be | |||
| edb9857e4a | |||
| ac3a42d0e3 | |||
| b25c738dbf | |||
| 7f73c00e0a | |||
| dd2edc48b3 | |||
| 9bfbf2d11d |
@@ -61,8 +61,8 @@ jobs:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/moontv:latest
|
||||
ghcr.io/${{ github.repository_owner }}/moontv:${{ github.sha }}
|
||||
ghcr.io/${{ github.repository_owner }}/katelyatv:latest
|
||||
ghcr.io/${{ github.repository_owner }}/katelyatv:${{ github.sha }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
@@ -81,4 +81,4 @@ jobs:
|
||||
echo "🚀 Images pushed to GitHub Container Registry"
|
||||
else
|
||||
echo "🧪 Build test completed (no push for PR/non-main branch)"
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
name: Build & Push Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -12,15 +11,11 @@ on:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -29,24 +24,22 @@ jobs:
|
||||
packages: write
|
||||
attestations: write
|
||||
id-token: write
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set image name to lowercase
|
||||
run: echo "IMAGE_NAME=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
version: latest
|
||||
driver-opts: image=moby/buildkit:buildx-stable-1
|
||||
|
||||
- name: Log in to Container Registry
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
@@ -54,7 +47,6 @@ jobs:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
@@ -67,14 +59,13 @@ jobs:
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
labels: |
|
||||
org.opencontainers.image.title=${{ github.repository }}
|
||||
org.opencontainers.image.description=KatelyaTV - A modern streaming platform
|
||||
org.opencontainers.image.description=katelyatv - A modern streaming platform
|
||||
org.opencontainers.image.url=${{ github.server_url }}/${{ github.repository }}
|
||||
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
|
||||
org.opencontainers.image.version=${{ steps.meta.outputs.version }}
|
||||
org.opencontainers.image.created=${{ steps.meta.outputs.created }}
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
org.opencontainers.image.licenses=MIT
|
||||
|
||||
- name: Build Docker image
|
||||
id: build
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -87,14 +78,14 @@ jobs:
|
||||
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-${{ matrix.platform }}
|
||||
outputs: |
|
||||
type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' }}
|
||||
|
||||
provenance: false
|
||||
sbom: false
|
||||
- name: Export digest
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
mkdir -p /tmp/digests
|
||||
digest="${{ steps.build.outputs.digest }}"
|
||||
touch "/tmp/digests/${digest#sha256:}"
|
||||
|
||||
- name: Upload digest
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -103,7 +94,6 @@ jobs:
|
||||
path: /tmp/digests/*
|
||||
if-no-files-found: error
|
||||
retention-days: 1
|
||||
|
||||
merge-images:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
@@ -114,25 +104,23 @@ jobs:
|
||||
needs:
|
||||
- build-and-push
|
||||
if: github.event_name != 'pull_request'
|
||||
|
||||
steps:
|
||||
- name: Set image name to lowercase
|
||||
run: echo "IMAGE_NAME=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||
- name: Download digests
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: /tmp/digests
|
||||
pattern: digests-*
|
||||
merge-multiple: true
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
@@ -142,21 +130,32 @@ jobs:
|
||||
type=ref,event=branch
|
||||
type=sha,prefix={{branch}}-
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
|
||||
- name: Create manifest list and push
|
||||
working-directory: /tmp/digests
|
||||
run: |
|
||||
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
||||
$(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)
|
||||
|
||||
- name: Get multi-arch digest
|
||||
id: get_digest
|
||||
run: |
|
||||
# 直接从 docker pull 获取 digest,这是最可靠的方法
|
||||
digest=$(docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }} 2>&1 | grep "Digest:" | cut -d' ' -f2 || echo "")
|
||||
if [ -z "$digest" ]; then
|
||||
# 备选方案:使用 crane 风格的检查(如果支持的话)
|
||||
digest=$(docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }} | grep "Digest:" | head -1 | cut -d' ' -f2 || echo "")
|
||||
fi
|
||||
if [ -z "$digest" ]; then
|
||||
# 最后备选:从 raw manifest 计算
|
||||
digest=$(docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }} --raw | sha256sum | awk '{print "sha256:"$1}')
|
||||
fi
|
||||
echo "digest=$digest" >> $GITHUB_OUTPUT
|
||||
- name: Inspect image
|
||||
run: |
|
||||
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}
|
||||
|
||||
- name: Generate artifact attestation
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: actions/attest-build-provenance@v1
|
||||
with:
|
||||
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
|
||||
subject-digest: ${{ steps.build.outputs.digest }}
|
||||
push-to-registry: true
|
||||
subject-digest: ${{ steps.get_digest.outputs.digest }}
|
||||
push-to-registry: true
|
||||
|
||||
@@ -0,0 +1,251 @@
|
||||
# KatelyaTV Docker 部署指南
|
||||
|
||||
> 本文档提供 KatelyaTV 的完整 Docker 部署指南,确保用户能够成功拉取和部署镜像。
|
||||
|
||||
## 📦 镜像信息
|
||||
|
||||
- **镜像地址**: `ghcr.io/katelya77/katelyatv:latest`
|
||||
- **支持架构**: linux/amd64, linux/arm64
|
||||
- **基础镜像**: node:20-alpine
|
||||
- **暴露端口**: 3000
|
||||
|
||||
## 🚀 快速部署
|
||||
|
||||
### 1. 单容器部署(推荐新手)
|
||||
|
||||
```bash
|
||||
# 拉取最新镜像
|
||||
docker pull ghcr.io/katelya77/katelyatv:latest
|
||||
|
||||
# 启动容器
|
||||
docker run -d \
|
||||
--name katelyatv \
|
||||
-p 3000:3000 \
|
||||
--env PASSWORD=your_secure_password \
|
||||
--restart unless-stopped \
|
||||
ghcr.io/katelya77/katelyatv:latest
|
||||
|
||||
# 查看运行状态
|
||||
docker ps | grep katelyatv
|
||||
|
||||
# 查看日志
|
||||
docker logs katelyatv
|
||||
```
|
||||
|
||||
### 2. Docker Compose 部署(推荐生产环境)
|
||||
|
||||
创建 `docker-compose.yml` 文件:
|
||||
|
||||
```yaml
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
katelyatv:
|
||||
image: ghcr.io/katelya77/katelyatv:latest
|
||||
container_name: katelyatv
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- PASSWORD=your_secure_password
|
||||
- SITE_NAME=KatelyaTV
|
||||
volumes:
|
||||
# 可选:挂载自定义配置
|
||||
# - ./config.json:/app/config.json:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
```
|
||||
|
||||
启动服务:
|
||||
|
||||
```bash
|
||||
# 启动服务
|
||||
docker-compose up -d
|
||||
|
||||
# 查看状态
|
||||
docker-compose ps
|
||||
|
||||
# 查看日志
|
||||
docker-compose logs -f
|
||||
```
|
||||
|
||||
## 🗄️ 数据持久化部署(Redis)
|
||||
|
||||
对于需要多用户支持和数据同步的场景:
|
||||
|
||||
```yaml
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
katelyatv:
|
||||
image: ghcr.io/katelya77/katelyatv:latest
|
||||
container_name: katelyatv
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- USERNAME=admin
|
||||
- PASSWORD=admin_password
|
||||
- NEXT_PUBLIC_STORAGE_TYPE=redis
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- NEXT_PUBLIC_ENABLE_REGISTER=true
|
||||
depends_on:
|
||||
- redis
|
||||
networks:
|
||||
- katelyatv-network
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: katelyatv-redis
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
networks:
|
||||
- katelyatv-network
|
||||
command: redis-server --appendonly yes
|
||||
|
||||
volumes:
|
||||
redis_data:
|
||||
|
||||
networks:
|
||||
katelyatv-network:
|
||||
driver: bridge
|
||||
```
|
||||
|
||||
## 🔧 环境变量配置
|
||||
|
||||
| 变量名 | 描述 | 默认值 | 示例 |
|
||||
|--------|------|--------|------|
|
||||
| `PASSWORD` | 访问密码 | - | `my_secure_password` |
|
||||
| `USERNAME` | 管理员用户名(Redis模式) | - | `admin` |
|
||||
| `SITE_NAME` | 站点名称 | `KatelyaTV` | `我的影视站` |
|
||||
| `NEXT_PUBLIC_STORAGE_TYPE` | 存储类型 | `localstorage` | `redis`, `d1`, `upstash` |
|
||||
| `REDIS_URL` | Redis连接地址 | - | `redis://redis:6379` |
|
||||
| `NEXT_PUBLIC_ENABLE_REGISTER` | 开放注册 | `false` | `true` |
|
||||
| `NEXT_PUBLIC_SEARCH_MAX_PAGE` | 搜索最大页数 | `5` | `10` |
|
||||
|
||||
## 🔍 故障排查
|
||||
|
||||
### 常见问题
|
||||
|
||||
1. **容器启动失败**
|
||||
```bash
|
||||
# 查看详细错误信息
|
||||
docker logs katelyatv
|
||||
|
||||
# 检查端口占用
|
||||
netstat -tulpn | grep :3000
|
||||
```
|
||||
|
||||
2. **镜像拉取失败**
|
||||
```bash
|
||||
# 确认镜像地址正确
|
||||
docker pull ghcr.io/katelya77/katelyatv:latest
|
||||
|
||||
# 如果是私有仓库,需要先登录
|
||||
docker login ghcr.io
|
||||
```
|
||||
|
||||
3. **数据丢失问题**
|
||||
- localStorage 模式:数据存储在浏览器,清除缓存会丢失
|
||||
- 建议使用 Redis 模式进行数据持久化
|
||||
|
||||
### 健康检查
|
||||
|
||||
```bash
|
||||
# 检查容器状态
|
||||
docker ps
|
||||
|
||||
# 检查容器健康状态
|
||||
docker inspect katelyatv | grep -A 5 "Health"
|
||||
|
||||
# 测试应用响应
|
||||
curl -I http://localhost:3000
|
||||
```
|
||||
|
||||
## 🔄 更新升级
|
||||
|
||||
### 更新到最新版本
|
||||
|
||||
```bash
|
||||
# 停止旧容器
|
||||
docker stop katelyatv
|
||||
docker rm katelyatv
|
||||
|
||||
# 拉取最新镜像
|
||||
docker pull ghcr.io/katelya77/katelyatv:latest
|
||||
|
||||
# 启动新容器(使用相同配置)
|
||||
docker run -d \
|
||||
--name katelyatv \
|
||||
-p 3000:3000 \
|
||||
--env PASSWORD=your_secure_password \
|
||||
--restart unless-stopped \
|
||||
ghcr.io/katelya77/katelyatv:latest
|
||||
```
|
||||
|
||||
### Docker Compose 更新
|
||||
|
||||
```bash
|
||||
# 拉取最新镜像
|
||||
docker-compose pull
|
||||
|
||||
# 重新创建容器
|
||||
docker-compose up -d --force-recreate
|
||||
```
|
||||
|
||||
## 🔐 安全建议
|
||||
|
||||
1. **设置强密码**: 使用复杂密码保护访问
|
||||
2. **限制访问**: 配置防火墙或反向代理限制访问来源
|
||||
3. **定期更新**: 保持镜像版本最新
|
||||
4. **数据备份**: 定期备份 Redis 数据(如果使用)
|
||||
5. **监控日志**: 关注异常访问和错误日志
|
||||
|
||||
## 📊 性能优化
|
||||
|
||||
### 资源限制
|
||||
|
||||
```yaml
|
||||
services:
|
||||
katelyatv:
|
||||
image: ghcr.io/katelya77/katelyatv:latest
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
cpus: '0.5'
|
||||
reservations:
|
||||
memory: 256M
|
||||
cpus: '0.25'
|
||||
```
|
||||
|
||||
### 反向代理(Nginx)
|
||||
|
||||
```nginx
|
||||
server {
|
||||
listen 80;
|
||||
server_name your-domain.com;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:3000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## 🆘 获取帮助
|
||||
|
||||
- 📖 [项目文档](README.md)
|
||||
- 🐛 [问题反馈](https://github.com/katelya77/KatelyaTV/issues)
|
||||
- 💬 [讨论区](https://github.com/katelya77/KatelyaTV/discussions)
|
||||
|
||||
---
|
||||
|
||||
**注意**: 本项目仅供学习和个人使用,请遵守当地法律法规。
|
||||
+11
-4
@@ -13,8 +13,8 @@
|
||||
### 1. 快速启动
|
||||
|
||||
```bash
|
||||
# 拉取最新镜像(当前镜像沿用上游命名空间)
|
||||
docker pull ghcr.io/senshinya/moontv:latest
|
||||
# 拉取最新镜像
|
||||
docker pull ghcr.io/katelya77/katelyatv:latest
|
||||
|
||||
# 启动容器
|
||||
docker run -d \
|
||||
@@ -22,7 +22,7 @@ docker run -d \
|
||||
-p 3000:3000 \
|
||||
--env PASSWORD=your_password \
|
||||
--restart unless-stopped \
|
||||
ghcr.io/senshinya/moontv:latest
|
||||
ghcr.io/katelya77/katelyatv:latest
|
||||
```
|
||||
|
||||
### 2. 访问应用
|
||||
@@ -91,11 +91,13 @@ nano .env.local
|
||||
```
|
||||
|
||||
**必需配置:**
|
||||
|
||||
```bash
|
||||
PASSWORD=your_secure_password
|
||||
```
|
||||
|
||||
**推荐配置:**
|
||||
|
||||
```bash
|
||||
SITE_NAME=我的影视站
|
||||
NEXT_PUBLIC_STORAGE_TYPE=localstorage
|
||||
@@ -197,15 +199,19 @@ NEXT_PUBLIC_STORAGE_TYPE=d1
|
||||
## 🚨 常见问题
|
||||
|
||||
### Q: 无法访问应用
|
||||
|
||||
**A:** 检查端口是否被占用,防火墙设置,或尝试其他端口。
|
||||
|
||||
### Q: 搜索无结果
|
||||
|
||||
**A:** 检查网络连接,资源站点是否可用,或尝试其他关键词。
|
||||
|
||||
### Q: 视频无法播放
|
||||
|
||||
**A:** 检查视频源是否有效,浏览器是否支持相关格式。
|
||||
|
||||
### Q: 数据丢失
|
||||
|
||||
**A:** 如果使用 localStorage,数据存储在浏览器中,清除缓存会丢失数据。
|
||||
|
||||
## 📱 移动端使用
|
||||
@@ -233,10 +239,11 @@ NEXT_PUBLIC_STORAGE_TYPE=d1
|
||||
现在您已经完成了基础配置,可以开始享受 KatelyaTV 带来的影视体验了!
|
||||
|
||||
**重要提醒:**
|
||||
|
||||
- 本项目仅供学习和个人使用
|
||||
- 请遵守当地法律法规
|
||||
- 不要用于商业用途或公开服务
|
||||
|
||||
---
|
||||
|
||||
如有任何问题,欢迎在 GitHub 上提出 Issue 或参与讨论!
|
||||
如有任何问题,欢迎在 GitHub 上提出 Issue 或参与讨论!
|
||||
|
||||
@@ -176,11 +176,11 @@
|
||||
|
||||
```bash
|
||||
# 拉取预构建镜像
|
||||
docker pull ghcr.io/senshinya/moontv:latest
|
||||
docker pull ghcr.io/katelya77/katelyatv:latest
|
||||
|
||||
# 运行容器
|
||||
# -d: 后台运行 -p: 映射端口 3000 -> 3000
|
||||
docker run -d --name katelyatv -p 3000:3000 --env PASSWORD=your_password ghcr.io/senshinya/moontv:latest
|
||||
docker run -d --name katelyatv -p 3000:3000 --env PASSWORD=your_password ghcr.io/katelya77/katelyatv:latest
|
||||
```
|
||||
|
||||
访问 `http://服务器 IP:3000` 即可。(需自行到服务器控制台放通 `3000` 端口)
|
||||
@@ -194,7 +194,7 @@ docker run -d --name katelyatv -p 3000:3000 --env PASSWORD=your_password ghcr.io
|
||||
```yaml
|
||||
services:
|
||||
katelyatv:
|
||||
image: ghcr.io/senshinya/moontv:latest
|
||||
image: ghcr.io/katelya77/katelyatv:latest
|
||||
container_name: katelyatv
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
@@ -211,7 +211,7 @@ services:
|
||||
```yaml
|
||||
services:
|
||||
katelyatv-core:
|
||||
image: ghcr.io/senshinya/moontv:latest
|
||||
image: ghcr.io/katelya77/katelyatv:latest
|
||||
container_name: katelyatv
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
@@ -355,7 +355,7 @@ KatelyaTV 支持标准的苹果 CMS V10 API 格式。
|
||||
|
||||
- [ts-nextjs-tailwind-starter](https://github.com/theodorusclarence/ts-nextjs-tailwind-starter) — 项目最初基于该脚手架。
|
||||
- [LibreTV](https://github.com/LibreSpark/LibreTV) — 由此启发,站在巨人的肩膀上。
|
||||
- MoonTV 原始项目与作者社区 — 感谢原作奠定坚实基础。
|
||||
- [LunaTV-原MoonTV](https://github.com/MoonTechLab/LunaTV) — 原始项目与作者社区,感谢原作奠定坚实基础。
|
||||
- [ArtPlayer](https://github.com/zhw2590582/ArtPlayer) — 提供强大的网页视频播放器。
|
||||
- [HLS.js](https://github.com/video-dev/hls.js) — 实现 HLS 流媒体在浏览器中的播放支持。
|
||||
- 感谢所有提供免费影视接口的站点。
|
||||
|
||||
+13
-4
@@ -3,12 +3,14 @@
|
||||
> 本项目在「MoonTV」基础上进行二创与继承,由 Katelya 持续维护。保留并致谢原作与社区贡献,在不改变核心理念的前提下,专注于更易部署、更友好体验与更稳定维护。
|
||||
|
||||
## 亮点
|
||||
|
||||
- 全面延续上游核心:多源聚合搜索、在线播放、收藏与观看历史、PWA 支持、响应式布局、多用户系统等
|
||||
- 文档重写与梳理:README、QUICKSTART、PROJECT_STATUS、CONTRIBUTING、CHANGELOG 全面适配 KatelyaTV 品牌
|
||||
- 部署指引优化:Vercel / Docker / Cloudflare Pages 一站式说明,提供 Compose 最佳实践
|
||||
- 安全与隐私提醒:新增部署安全提示与法律风险说明
|
||||
|
||||
## 变更摘要
|
||||
|
||||
- 品牌与文档
|
||||
- 将项目品牌统一为 KatelyaTV,并明确二创与继承来源
|
||||
- 更新部署与使用说明,优化快速上手体验
|
||||
@@ -18,36 +20,43 @@
|
||||
- 默认站点名改为 `KatelyaTV`(可通过 `SITE_NAME` 环境变量覆盖)
|
||||
|
||||
## 安装与升级
|
||||
|
||||
- 首次安装(Docker 推荐)
|
||||
|
||||
```bash
|
||||
# 拉取镜像(当前仍沿用上游命名空间)
|
||||
docker pull ghcr.io/senshinya/moontv:latest
|
||||
# 拉取镜像
|
||||
docker pull ghcr.io/katelya77/katelyatv:latest
|
||||
|
||||
# 启动示例
|
||||
docker run -d --name katelyatv \
|
||||
-p 3000:3000 \
|
||||
--env PASSWORD=your_password \
|
||||
--restart unless-stopped \
|
||||
ghcr.io/senshinya/moontv:latest
|
||||
ghcr.io/katelya77/katelyatv:latest
|
||||
```
|
||||
|
||||
- 或使用 README 中的 Docker Compose 示例
|
||||
|
||||
## 兼容性
|
||||
|
||||
- 保持与上游 MoonTV v0.1.0 行为一致
|
||||
- 支持存储后端:localStorage / Redis / Cloudflare D1 / Upstash Redis
|
||||
- 运行环境:Node.js 18+;容器镜像支持多架构
|
||||
|
||||
## 已知问题
|
||||
|
||||
- 部分第三方资源站可用性受其自身状态影响
|
||||
- Android TV 端收藏与网页端暂未完全互通(后续版本优化)
|
||||
|
||||
## 后续路线
|
||||
|
||||
- 弹幕系统、字幕支持、下载功能、社交分享
|
||||
- 数据同步与多端互通完善
|
||||
- 性能与稳定性持续优化
|
||||
|
||||
## 鸣谢
|
||||
|
||||
- 原始项目 MoonTV 及其作者与社区
|
||||
- 所有为本项目提供反馈、贡献代码与文档的开发者
|
||||
|
||||
— Katelya
|
||||
— Katelya
|
||||
|
||||
@@ -0,0 +1,167 @@
|
||||
# KatelyaTV v0.2.0 发布说明
|
||||
|
||||
> 本版本主要修复了 Docker 部署配置问题,确保用户能够正确使用 KatelyaTV 的 Docker 镜像进行部署。
|
||||
|
||||
## 🚀 重要更新
|
||||
|
||||
### Docker 部署修复
|
||||
|
||||
- **修复镜像路径**:将所有文档中的 Docker 镜像路径从 `ghcr.io/senshinya/moontv:latest` 更新为 `ghcr.io/katelya77/katelyatv:latest`
|
||||
- **统一部署说明**:确保 README.md、QUICKSTART.md 和发布说明中的 Docker 部署指令一致
|
||||
- **验证部署流程**:确认所有 Docker Compose 配置文件使用正确的镜像路径
|
||||
|
||||
### 代码兼容性验证
|
||||
|
||||
- **构建验证**:通过完整的构建测试,确保所有 KatelyaTV 品牌更改不影响功能
|
||||
- **向后兼容**:保持与 MoonTV v0.1.0 的完全兼容性
|
||||
- **环境变量支持**:支持通过 `SITE_NAME` 等环境变量自定义配置
|
||||
|
||||
## 🐳 Docker 部署指南
|
||||
|
||||
### 快速启动
|
||||
|
||||
```bash
|
||||
# 拉取最新镜像
|
||||
docker pull ghcr.io/katelya77/katelyatv:latest
|
||||
|
||||
# 启动容器
|
||||
docker run -d \
|
||||
--name katelyatv \
|
||||
-p 3000:3000 \
|
||||
--env PASSWORD=your_password \
|
||||
--restart unless-stopped \
|
||||
ghcr.io/katelya77/katelyatv:latest
|
||||
```
|
||||
|
||||
### Docker Compose 部署
|
||||
|
||||
#### 基础版本(localStorage)
|
||||
|
||||
```yaml
|
||||
services:
|
||||
katelyatv:
|
||||
image: ghcr.io/katelya77/katelyatv:latest
|
||||
container_name: katelyatv
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '3000:3000'
|
||||
environment:
|
||||
- PASSWORD=your_password
|
||||
```
|
||||
|
||||
#### Redis 版本(推荐,支持多用户)
|
||||
|
||||
```yaml
|
||||
services:
|
||||
katelyatv-core:
|
||||
image: ghcr.io/katelya77/katelyatv:latest
|
||||
container_name: katelyatv
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '3000:3000'
|
||||
environment:
|
||||
- USERNAME=admin
|
||||
- PASSWORD=admin_password
|
||||
- NEXT_PUBLIC_STORAGE_TYPE=redis
|
||||
- REDIS_URL=redis://katelyatv-redis:6379
|
||||
- NEXT_PUBLIC_ENABLE_REGISTER=true
|
||||
networks:
|
||||
- katelyatv-network
|
||||
depends_on:
|
||||
- katelyatv-redis
|
||||
|
||||
katelyatv-redis:
|
||||
image: redis
|
||||
container_name: katelyatv-redis
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- katelyatv-network
|
||||
volumes:
|
||||
- ./data:/data
|
||||
|
||||
networks:
|
||||
katelyatv-network:
|
||||
driver: bridge
|
||||
```
|
||||
|
||||
## 📋 环境变量配置
|
||||
|
||||
| 变量名 | 说明 | 默认值 | 示例 |
|
||||
| ----------------------------- | ----------------------------------------- | -------------- | ------------------------ |
|
||||
| `PASSWORD` | 访问密码(localStorage 模式)或管理员密码 | - | `your_password` |
|
||||
| `USERNAME` | 管理员用户名(非 localStorage 模式) | - | `admin` |
|
||||
| `SITE_NAME` | 站点名称 | `KatelyaTV` | `我的影视站` |
|
||||
| `NEXT_PUBLIC_STORAGE_TYPE` | 存储类型 | `localstorage` | `redis`, `d1`, `upstash` |
|
||||
| `REDIS_URL` | Redis 连接地址 | - | `redis://localhost:6379` |
|
||||
| `NEXT_PUBLIC_ENABLE_REGISTER` | 是否开放注册 | `false` | `true` |
|
||||
|
||||
## 🔧 部署验证
|
||||
|
||||
部署完成后,请验证以下功能:
|
||||
|
||||
1. **基础访问**:浏览器访问 `http://localhost:3000` 能正常打开
|
||||
2. **密码验证**:使用设置的密码能正常登录
|
||||
3. **搜索功能**:能正常搜索和播放视频
|
||||
4. **数据持久化**:重启容器后数据保持(Redis 模式)
|
||||
|
||||
## 🐛 已知问题
|
||||
|
||||
- 部分第三方资源站可用性受其自身状态影响
|
||||
- Android TV 端收藏与网页端暂未完全互通(计划在后续版本优化)
|
||||
|
||||
## 📝 变更日志
|
||||
|
||||
### 修复
|
||||
|
||||
- 修复 README.md 中 Docker 镜像路径错误
|
||||
- 修复 QUICKSTART.md 中 Docker 部署说明
|
||||
- 修复 Docker Compose 配置示例中的镜像路径
|
||||
|
||||
### 改进
|
||||
|
||||
- 统一所有文档中的 Docker 部署说明
|
||||
- 完善环境变量配置说明
|
||||
- 添加部署验证步骤
|
||||
|
||||
### 兼容性
|
||||
|
||||
- 保持与 MoonTV v0.1.0 完全兼容
|
||||
- 支持从旧版本无缝升级
|
||||
- 保留所有现有功能和配置选项
|
||||
|
||||
## 🔄 升级指南
|
||||
|
||||
### 从 v0.1.0-katelya 升级
|
||||
|
||||
```bash
|
||||
# 停止旧容器
|
||||
docker stop katelyatv
|
||||
docker rm katelyatv
|
||||
|
||||
# 拉取新镜像
|
||||
docker pull ghcr.io/katelya77/katelyatv:latest
|
||||
|
||||
# 使用新镜像启动
|
||||
docker run -d \
|
||||
--name katelyatv \
|
||||
-p 3000:3000 \
|
||||
--env PASSWORD=your_password \
|
||||
--restart unless-stopped \
|
||||
ghcr.io/katelya77/katelyatv:latest
|
||||
```
|
||||
|
||||
### 从 MoonTV 迁移
|
||||
|
||||
如果您之前使用的是 MoonTV,只需将 Docker 镜像路径更改为 `ghcr.io/katelya77/katelyatv:latest`,其他配置保持不变。
|
||||
|
||||
## 🙏 鸣谢
|
||||
|
||||
- 感谢社区用户反馈的 Docker 部署问题
|
||||
- 感谢原始项目 MoonTV 及其作者与社区
|
||||
- 感谢所有为本项目提供反馈和建议的开发者
|
||||
|
||||
---
|
||||
|
||||
**完整部署文档**:请参考 [README.md](README.md) 和 [QUICKSTART.md](QUICKSTART.md)
|
||||
|
||||
— Katelya
|
||||
+1
-1
@@ -1 +1 @@
|
||||
20250928125318
|
||||
20250830155949
|
||||
+5
-1
@@ -1 +1,5 @@
|
||||
if(!self.define){let e,s={};const n=(n,a)=>(n=new URL(n+".js",a).href,s[n]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()}).then(()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e}));self.define=(a,i)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(s[c])return;let t={};const r=e=>n(e,c),o={module:{uri:c},exports:t,require:r};s[c]=Promise.all(a.map(e=>o[e]||r(e))).then(e=>(i(...e),t))}}define(["./workbox-e9849328"],function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/app-build-manifest.json",revision:"165f11a0a3d5db6c1c8dc7aa005033e2"},{url:"/_next/static/0Xa7Nn4iRGMNLwKw4hJZP/_buildManifest.js",revision:"85aecd8a55db42fc901f52386fd2a680"},{url:"/_next/static/0Xa7Nn4iRGMNLwKw4hJZP/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/151-467740e7dc8a9501.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/180-9f7b03cf3105da2f.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/242-3804d87f50553b94.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/348-637558541eb689b6.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/402-abec0144ce81ad6a.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/62-9dcc8624f6dcf545.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/78-2aa39dfce34bcd40.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/866-d2269a3038f10b5a.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/app/_not-found/page-d6cb5fee19b812f4.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/app/admin/page-cf6fa07173bfdcbf.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/app/douban/page-984df666dd74a3f5.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/app/layout-f2be6b03f6eb1026.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/app/login/page-21403bbd4848f696.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/app/page-e8549ab6c668cffc.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/app/play/page-c55fbb62b2dc4ace.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/app/search/page-5dc770f3abeac649.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/app/warning/page-e6b20b93b37dc516.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/b145b63a-b7e49c063d2fa255.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/c72274ce-909438a8a5dd87a5.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/da9543df-c2ce5269243dd748.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/framework-6e06c675866dc992.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/main-app-0cf6afdd74694b9f.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/main-e84422daeb8eaf88.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/pages/_app-3fcac1a2c632f1ef.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/pages/_error-d3fe151bf402c134.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-4a57793b45c0f940.js",revision:"0Xa7Nn4iRGMNLwKw4hJZP"},{url:"/_next/static/css/23100062f5d4aac0.css",revision:"23100062f5d4aac0"},{url:"/_next/static/css/a7b7a98490e311ff.css",revision:"a7b7a98490e311ff"},{url:"/_next/static/media/26a46d62cd723877-s.woff2",revision:"befd9c0fdfa3d8a645d5f95717ed6420"},{url:"/_next/static/media/55c55f0601d81cf3-s.woff2",revision:"43828e14271c77b87e3ed582dbff9f74"},{url:"/_next/static/media/581909926a08bbc8-s.woff2",revision:"f0b86e7c24f455280b8df606b89af891"},{url:"/_next/static/media/8e9860b6e62d6359-s.woff2",revision:"01ba6c2a184b8cba08b0d57167664d75"},{url:"/_next/static/media/97e0cb1ae144a2a9-s.woff2",revision:"e360c61c5bd8d90639fd4503c829c2dc"},{url:"/_next/static/media/df0a9ae256c0569c-s.woff2",revision:"d54db44de5ccb18886ece2fda72bdfe0"},{url:"/_next/static/media/e4af272ccee01ff0-s.p.woff2",revision:"65850a373e258f1c897a2b3d75eb74de"},{url:"/favicon.ico",revision:"c5de6e56c5664adda146825f75ea6ecf"},{url:"/icons/icon-192x192.png",revision:"4a56c090828a1ad254c903c7aec0389d"},{url:"/icons/icon-256x256.png",revision:"f6409eb1a001f754121e3a8281c0319c"},{url:"/icons/icon-384x384.png",revision:"f6efc3e357b9ffdf4e0d8c14b2ed0ac1"},{url:"/icons/icon-512x512.png",revision:"9c008cbbeb6a576fe07bb1284a83f4d2"},{url:"/logo.png",revision:"40de611b143c47c6291c7bdad2c959ca"},{url:"/manifest.json",revision:"f8a4f2b082d6396d3b1a84ce0e267dfe"},{url:"/robots.txt",revision:"0483b37fb6cf7455cefe516197e39241"},{url:"/screenshot.png",revision:"05a86e8d4faae6b384d19f02173ea87f"},{url:"/screenshot1.png",revision:"d7de3a25686c5b9c9d8c8675bc6109fc"},{url:"/screenshot2.png",revision:"b0b715a3018d2f02aba5d94762473bb6"},{url:"/screenshot3.png",revision:"7e454c28e110e291ee12f494fb3cf40c"}],{ignoreURLParametersMatching:[]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({request:e,response:s,event:n,state:a})=>s&&"opaqueredirect"===s.type?new Response(s.body,{status:200,statusText:"OK",headers:s.headers}):s}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>{if(!(self.origin===e.origin))return!1;const s=e.pathname;return!s.startsWith("/api/auth/")&&!!s.startsWith("/api/")},new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>{if(!(self.origin===e.origin))return!1;return!e.pathname.startsWith("/api/")},new e.NetworkFirst({cacheName:"others",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>!(self.origin===e.origin),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")});
|
||||
<<<<<<< Current (Your changes)
|
||||
if(!self.define){let e,s={};const n=(n,t)=>(n=new URL(n+".js",t).href,s[n]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()}).then(()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e}));self.define=(t,a)=>{const i=e||("document"in self?document.currentScript.src:"")||location.href;if(s[i])return;let c={};const r=e=>n(e,i),o={module:{uri:i},exports:c,require:r};s[i]=Promise.all(t.map(e=>o[e]||r(e))).then(e=>(a(...e),c))}}define(["./workbox-e9849328"],function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/app-build-manifest.json",revision:"1f7f5a2aec7f945336c0ae43e2e57c47"},{url:"/_next/static/6qB3epXmqsAy-GeVOS_bt/_buildManifest.js",revision:"85aecd8a55db42fc901f52386fd2a680"},{url:"/_next/static/6qB3epXmqsAy-GeVOS_bt/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/151-467740e7dc8a9501.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/242-3804d87f50553b94.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/402-0111ac7d0edfee14.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/484-4de9b8ccd6b187b0.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/609-bd706105e16d4e38.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/78-2f748e0c099ee9b7.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/866-d2269a3038f10b5a.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/887-3888edb42bd5ac06.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/app/_not-found/page-d6cb5fee19b812f4.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/app/admin/page-02699fb3c7542f31.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/app/douban/page-6cadcedaf8538fd6.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/app/layout-f2be6b03f6eb1026.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/app/login/page-9a89981161d4a992.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/app/page-fd24f7135fef556d.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/app/play/page-648b8b5fd8c19287.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/app/search/page-89eb23c28fc11ef5.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/app/warning/page-e6b20b93b37dc516.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/b145b63a-b7e49c063d2fa255.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/c72274ce-909438a8a5dd87a5.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/da9543df-c2ce5269243dd748.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/framework-6e06c675866dc992.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/main-app-0cf6afdd74694b9f.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/main-e84422daeb8eaf88.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/pages/_app-3fcac1a2c632f1ef.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/pages/_error-d3fe151bf402c134.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-4a57793b45c0f940.js",revision:"6qB3epXmqsAy-GeVOS_bt"},{url:"/_next/static/css/23100062f5d4aac0.css",revision:"23100062f5d4aac0"},{url:"/_next/static/css/a7b7a98490e311ff.css",revision:"a7b7a98490e311ff"},{url:"/_next/static/media/26a46d62cd723877-s.woff2",revision:"befd9c0fdfa3d8a645d5f95717ed6420"},{url:"/_next/static/media/55c55f0601d81cf3-s.woff2",revision:"43828e14271c77b87e3ed582dbff9f74"},{url:"/_next/static/media/581909926a08bbc8-s.woff2",revision:"f0b86e7c24f455280b8df606b89af891"},{url:"/_next/static/media/8e9860b6e62d6359-s.woff2",revision:"01ba6c2a184b8cba08b0d57167664d75"},{url:"/_next/static/media/97e0cb1ae144a2a9-s.woff2",revision:"e360c61c5bd8d90639fd4503c829c2dc"},{url:"/_next/static/media/df0a9ae256c0569c-s.woff2",revision:"d54db44de5ccb18886ece2fda72bdfe0"},{url:"/_next/static/media/e4af272ccee01ff0-s.p.woff2",revision:"65850a373e258f1c897a2b3d75eb74de"},{url:"/favicon.ico",revision:"c5de6e56c5664adda146825f75ea6ecf"},{url:"/icons/icon-192x192.png",revision:"4a56c090828a1ad254c903c7aec0389d"},{url:"/icons/icon-256x256.png",revision:"f6409eb1a001f754121e3a8281c0319c"},{url:"/icons/icon-384x384.png",revision:"f6efc3e357b9ffdf4e0d8c14b2ed0ac1"},{url:"/icons/icon-512x512.png",revision:"9c008cbbeb6a576fe07bb1284a83f4d2"},{url:"/logo.png",revision:"40de611b143c47c6291c7bdad2c959ca"},{url:"/manifest.json",revision:"7bd3dabc1cfbfe40f09577efca223d31"},{url:"/robots.txt",revision:"0483b37fb6cf7455cefe516197e39241"},{url:"/screenshot.png",revision:"05a86e8d4faae6b384d19f02173ea87f"},{url:"/screenshot1.png",revision:"d7de3a25686c5b9c9d8c8675bc6109fc"},{url:"/screenshot2.png",revision:"b0b715a3018d2f02aba5d94762473bb6"},{url:"/screenshot3.png",revision:"7e454c28e110e291ee12f494fb3cf40c"}],{ignoreURLParametersMatching:[]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({request:e,response:s,event:n,state:t})=>s&&"opaqueredirect"===s.type?new Response(s.body,{status:200,statusText:"OK",headers:s.headers}):s}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>{if(!(self.origin===e.origin))return!1;const s=e.pathname;return!s.startsWith("/api/auth/")&&!!s.startsWith("/api/")},new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>{if(!(self.origin===e.origin))return!1;return!e.pathname.startsWith("/api/")},new e.NetworkFirst({cacheName:"others",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>!(self.origin===e.origin),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")});
|
||||
=======
|
||||
if(!self.define){let e,s={};const n=(n,a)=>(n=new URL(n+".js",a).href,s[n]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()}).then(()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e}));self.define=(a,i)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(s[c])return;let t={};const r=e=>n(e,c),o={module:{uri:c},exports:t,require:r};s[c]=Promise.all(a.map(e=>o[e]||r(e))).then(e=>(i(...e),t))}}define(["./workbox-e9849328"],function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/app-build-manifest.json",revision:"e835516f55e089231cd3a13c3d1bfcfb"},{url:"/_next/static/I621_uJyyXyq0s9YsYe1C/_buildManifest.js",revision:"85aecd8a55db42fc901f52386fd2a680"},{url:"/_next/static/I621_uJyyXyq0s9YsYe1C/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/151-467740e7dc8a9501.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/242-3804d87f50553b94.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/402-0111ac7d0edfee14.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/484-4de9b8ccd6b187b0.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/609-bd706105e16d4e38.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/78-2f748e0c099ee9b7.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/866-d2269a3038f10b5a.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/887-3888edb42bd5ac06.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/app/_not-found/page-d6cb5fee19b812f4.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/app/admin/page-02699fb3c7542f31.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/app/douban/page-6cadcedaf8538fd6.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/app/layout-f2be6b03f6eb1026.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/app/login/page-9a89981161d4a992.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/app/page-fd24f7135fef556d.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/app/play/page-648b8b5fd8c19287.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/app/search/page-89eb23c28fc11ef5.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/app/warning/page-e6b20b93b37dc516.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/b145b63a-b7e49c063d2fa255.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/c72274ce-909438a8a5dd87a5.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/da9543df-c2ce5269243dd748.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/framework-6e06c675866dc992.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/main-app-0cf6afdd74694b9f.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/main-e84422daeb8eaf88.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/pages/_app-3fcac1a2c632f1ef.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/pages/_error-d3fe151bf402c134.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-4a57793b45c0f940.js",revision:"I621_uJyyXyq0s9YsYe1C"},{url:"/_next/static/css/23100062f5d4aac0.css",revision:"23100062f5d4aac0"},{url:"/_next/static/css/a7b7a98490e311ff.css",revision:"a7b7a98490e311ff"},{url:"/_next/static/media/26a46d62cd723877-s.woff2",revision:"befd9c0fdfa3d8a645d5f95717ed6420"},{url:"/_next/static/media/55c55f0601d81cf3-s.woff2",revision:"43828e14271c77b87e3ed582dbff9f74"},{url:"/_next/static/media/581909926a08bbc8-s.woff2",revision:"f0b86e7c24f455280b8df606b89af891"},{url:"/_next/static/media/8e9860b6e62d6359-s.woff2",revision:"01ba6c2a184b8cba08b0d57167664d75"},{url:"/_next/static/media/97e0cb1ae144a2a9-s.woff2",revision:"e360c61c5bd8d90639fd4503c829c2dc"},{url:"/_next/static/media/df0a9ae256c0569c-s.woff2",revision:"d54db44de5ccb18886ece2fda72bdfe0"},{url:"/_next/static/media/e4af272ccee01ff0-s.p.woff2",revision:"65850a373e258f1c897a2b3d75eb74de"},{url:"/favicon.ico",revision:"c5de6e56c5664adda146825f75ea6ecf"},{url:"/icons/icon-192x192.png",revision:"4a56c090828a1ad254c903c7aec0389d"},{url:"/icons/icon-256x256.png",revision:"f6409eb1a001f754121e3a8281c0319c"},{url:"/icons/icon-384x384.png",revision:"f6efc3e357b9ffdf4e0d8c14b2ed0ac1"},{url:"/icons/icon-512x512.png",revision:"9c008cbbeb6a576fe07bb1284a83f4d2"},{url:"/logo.png",revision:"40de611b143c47c6291c7bdad2c959ca"},{url:"/manifest.json",revision:"7bd3dabc1cfbfe40f09577efca223d31"},{url:"/robots.txt",revision:"0483b37fb6cf7455cefe516197e39241"},{url:"/screenshot.png",revision:"05a86e8d4faae6b384d19f02173ea87f"},{url:"/screenshot1.png",revision:"d7de3a25686c5b9c9d8c8675bc6109fc"},{url:"/screenshot2.png",revision:"b0b715a3018d2f02aba5d94762473bb6"},{url:"/screenshot3.png",revision:"7e454c28e110e291ee12f494fb3cf40c"}],{ignoreURLParametersMatching:[]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({request:e,response:s,event:n,state:a})=>s&&"opaqueredirect"===s.type?new Response(s.body,{status:200,statusText:"OK",headers:s.headers}):s}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>{if(!(self.origin===e.origin))return!1;const s=e.pathname;return!s.startsWith("/api/auth/")&&!!s.startsWith("/api/")},new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>{if(!(self.origin===e.origin))return!1;return!e.pathname.startsWith("/api/")},new e.NetworkFirst({cacheName:"others",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>!(self.origin===e.origin),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")});
|
||||
>>>>>>> Incoming (Background Agent changes)
|
||||
|
||||
@@ -35,7 +35,10 @@ function VersionDisplay() {
|
||||
return (
|
||||
<button
|
||||
onClick={() =>
|
||||
window.open('https://github.com/senshinya/MoonTV', '_blank')
|
||||
window.open(
|
||||
process.env.NEXT_PUBLIC_REPO_URL || 'https://github.com/katelya77/KatelyaTV',
|
||||
'_blank'
|
||||
)
|
||||
}
|
||||
className='absolute bottom-4 left-1/2 transform -translate-x-1/2 flex items-center gap-2 text-xs text-gray-500 dark:text-gray-400 transition-colors cursor-pointer'
|
||||
>
|
||||
|
||||
@@ -403,7 +403,7 @@ export const UserMenu: React.FC = () => {
|
||||
{/* 版本信息 */}
|
||||
<button
|
||||
onClick={() =>
|
||||
window.open('https://github.com/senshinya/MoonTV', '_blank')
|
||||
window.open('https://github.com/katelya77/KatelyaTV', '_blank')
|
||||
}
|
||||
className='w-full px-3 py-2 text-center flex items-center justify-center text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-800/50 transition-colors text-xs'
|
||||
>
|
||||
|
||||
+5
-2
@@ -287,8 +287,9 @@ export class RedisStorage implements IStorage {
|
||||
|
||||
// 单例 Redis 客户端
|
||||
function getRedisClient(): RedisClientType {
|
||||
const globalKey = Symbol.for('__MOONTV_REDIS_CLIENT__');
|
||||
let client: RedisClientType | undefined = (global as any)[globalKey];
|
||||
const legacyKey = Symbol.for('__MOONTV_REDIS_CLIENT__');
|
||||
const globalKey = Symbol.for('__KATELYATV_REDIS_CLIENT__');
|
||||
let client: RedisClientType | undefined = (global as any)[globalKey] || (global as any)[legacyKey];
|
||||
|
||||
if (!client) {
|
||||
const url = process.env.REDIS_URL;
|
||||
@@ -349,6 +350,8 @@ function getRedisClient(): RedisClientType {
|
||||
connectWithRetry();
|
||||
|
||||
(global as any)[globalKey] = client;
|
||||
// 同步旧键,保持兼容
|
||||
(global as any)[legacyKey] = client;
|
||||
}
|
||||
|
||||
return client;
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
'use client';
|
||||
|
||||
const CURRENT_VERSION = '20250928125318';
|
||||
const CURRENT_VERSION = '20250831153112';
|
||||
|
||||
// 版本检查结果枚举
|
||||
export enum UpdateStatus {
|
||||
|
||||
Reference in New Issue
Block a user