Logo
Explore Help
Sign In
fam/cube
1
0
Fork 0
You've already forked cube
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
09c3236b5bdab38c2edfe49e2af7b4a68e50ff87
cube/apps/piano-sheet/k8s/service.yaml
T

13 lines
192 B
YAML
Raw Normal View History

app #2 piano-sheet: 钢琴谱管理 / 阅读,piano.famzheng.me 后端 axum + sqlite,图片直接 BLOB 存进 pages 表(单张 ≤ 10MB / 单 谱 ≤ 64 页),5 个 endpoint:multipart upload、列表、详情、单页图片 (带 immutable cache header)+ healthz。 前端 vue3 + pinia + vue-router,3 个视图:列表(卡片网格 + 首页缩 略)、上传(拖拽 + 顺序预览)、阅读(全屏,左右点按 / 键盘 / 拖 拽进度条翻页,2.5s 自动隐藏 chrome)。视图状态走 URL(reader 的 当前页是 ?page=N)。 部署:cube-piano-sheet ns + 10Gi PVC + traefik ingress + 一条 buffering middleware 把 body 上限抬到 700MB。镜像 < 20MB(scratch + musl 静态)。
2026-05-05 09:29:02 +01:00
apiVersion: v1
kind: Service
metadata:
name: piano-sheet
namespace: cube-piano-sheet
spec:
selector:
app: piano-sheet
ports:
- name: http
port: 80
targetPort: 8080
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.26.0+rc0 Page: 13ms Template: 2ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API