onestudy: initial placeholder

This commit is contained in:
inca 2026-06-08 21:10:34 +09:00
commit 59216a4962
2 changed files with 54 additions and 0 deletions

22
README.md Normal file
View File

@ -0,0 +1,22 @@
# onestudy
incaai 클러스터에 배포되는 서비스. 정적 사이트(HTML/CSS/JS).
## 라이브 주소
- https://onestudy.onebiohealth.co.kr
- https://onestudy.wonlab.co.kr
## 노트북에서 배포(업데이트)하는 법
```bash
git clone https://git.onebiohealth.co.kr/inca/onestudy.git
cd onestudy
# 파일 추가/수정 (index.html 등)
git add -A && git commit -m "update" && git push
```
push하면 소스가 갱신되고, 배포는 다음 중 하나로 반영된다:
- (수동) 관리자가 `kubectl -n onestudy rollout restart deploy/onestudy`
- (자동) Gitea webhook/Actions 설정 시 push만으로 자동 반영
## 구조
nginx 파드가 시작 시 이 repo를 clone해서 서비스한다 (레지스트리 불필요).
배포 매니페스트: `incaai:/home/inca/incaai/k8s/onestudy.yaml`

32
index.html Normal file
View File

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>onestudy</title>
<style>
body{margin:0;font-family:system-ui,"Segoe UI",sans-serif;background:#0f172a;color:#e2e8f0;
display:flex;min-height:100vh;align-items:center;justify-content:center;text-align:center}
.card{max-width:640px;padding:48px}
h1{font-size:2.4rem;margin:0 0 .3em}
.ok{color:#4ade80;font-weight:600}
code{background:#1e293b;padding:2px 8px;border-radius:6px;color:#93c5fd}
p{line-height:1.7;color:#94a3b8}
.pipe{margin-top:28px;font-size:.9rem;color:#64748b}
</style>
</head>
<body>
<div class="card">
<h1>onestudy <span class="ok">● live</span></h1>
<p>이 페이지가 보이면 <b>배포 파이프라인이 정상</b>입니다.<br>
incaai k3s에서 서비스되고, Let's Encrypt HTTPS가 자동 적용됐습니다.</p>
<p>실제 콘텐츠로 바꾸려면 노트북에서:</p>
<p style="text-align:left;display:inline-block">
<code>git clone https://git.onebiohealth.co.kr/inca/onestudy.git</code><br>
<code># 파일 교체 후</code><br>
<code>git add -A &amp;&amp; git commit -m update &amp;&amp; git push</code>
</p>
<div class="pipe">Gitea → k3s(nginx) → Traefik + Let's Encrypt → onestudy.onebiohealth.co.kr</div>
</div>
</body>
</html>