M2: 사이트 서버 · 사이트 v1 - gvr.tkrmagid.kr 배포
- site/server: Discord OAuth2 + 봇 토큰 멤버 확인, 세션, 1회용 등록 코드·기기 키 인증, 게임 PC WebSocket 중계(JSON·음성 바이너리), 15초 무응답 잠금, 게임 이미지 캐시, 관리 CLI - site/web: 타임라인·따라 읽기 재생(단어 강조·이어듣기·현장 모드·재생 게인)·필터·검색·실시간·교정, 발로란트/롤 경기 상세, 잠금 화면(관리자 등록 코드), 모바일, 효과음 - deploy/site: Dockerfile·compose·deploy.sh·make-env.sh (.5, 포트 2972) - 앱 코어: 사이트 필터 묶음(킬·라운드)과 유저 필터 규칙 맞춤, hello 에 서버 ID Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
# Deploy (site server)
|
||||
# Deploy (사이트 서버)
|
||||
|
||||
- Host: .5 Docker (`root@192.168.10.5:/root/other/game-voice-recorder`), container `gvr-web`, port **2972**.
|
||||
- Domain: `gvr.tkrmagid.kr` → NPMplus on 192.168.10.3 (proxy host id 13, websocket upgrade on) → `192.168.10.5:2972`.
|
||||
- DNS: A record `gvr` → 211.213.11.141 must be added at hosting.co.kr (user). Then run `./cert.sh` (LE cert + force SSL).
|
||||
- `placeholder/` is a static "준비 중" page until the real site server replaces it (same port, same compose project name).
|
||||
Update: `scp -r placeholder/* root@192.168.10.5:/root/other/game-voice-recorder/ && ssh root@192.168.10.5 'cd /root/other/game-voice-recorder && docker compose up -d'`
|
||||
- Secrets (Discord bot token / OAuth client secret) live in `~/.config/ejclaw/secrets.json` under `discord.com/bot/game-voice-recorder`; inject via `.env` on the host, never commit.
|
||||
- 위치: .5 Docker `root@192.168.10.5:/root/other/game-voice-recorder` (compose 프로젝트 `game-voice-recorder`, 컨테이너 `gvr-web`), 포트 **2972 → 8080**
|
||||
- 도메인: `gvr.tkrmagid.kr` → NPMplus(192.168.10.3, proxy host 13, WebSocket 허용) → `192.168.10.5:2972`. Let's Encrypt 인증서는 NPMplus 가 자동 갱신 (`cert.sh`)
|
||||
- 배포: 저장소 루트에서 `deploy/site/deploy.sh` (소스를 tar 로 보내 `.5` 에서 이미지 빌드 → 재시작 → healthz 확인)
|
||||
- 비밀값: `.5` 의 `.env` 에만 있다. 처음 한 번 `deploy/site/make-env.sh` (secrets.json 에서 읽어 원격에 바로 씀)
|
||||
- `DISCORD_CLIENT_ID/SECRET` (OAuth 로그인), `DISCORD_BOT_TOKEN` (서버 멤버 확인), `SESSION_SECRET`
|
||||
- `ALLOWED_GUILD_IDS=457514742940958731` (M&L), `OWNER_DISCORD_IDS=293719842274541579` (등록 코드를 만들 수 있는 관리자)
|
||||
- 관리 명령 (컨테이너 안):
|
||||
- `docker exec gvr-web node dist/cli.js code [분]` — 게임 PC 1회용 등록 코드 (사이트에서 관리자도 만들 수 있음)
|
||||
- `docker exec gvr-web node dist/cli.js device` — 등록된 게임 PC
|
||||
- `docker exec gvr-web node dist/cli.js unregister && docker restart gvr-web` — 등록 해제
|
||||
- 서버 데이터(`data/`): `server.json`(기기 키 해시·세션), `codes.json`(등록 코드), `asset-cache/`(게임 이미지). 기록 내용은 저장하지 않는다.
|
||||
- `placeholder/` 는 M2 이전 "준비 중" 페이지 (기록용으로 남김)
|
||||
|
||||
Reference in New Issue
Block a user