외부 통계 API 추가
This commit is contained in:
@@ -32,6 +32,7 @@ WEB_PORT=44082
|
||||
APP_BASE_URL=http://localhost:44082
|
||||
RESEND_API_KEY=Resend_API_Key
|
||||
RESEND_FROM_EMAIL=UNIARE <인증된_발신주소>
|
||||
STATS_API_TOKEN=대시보드용_토큰_또는_빈값
|
||||
```
|
||||
|
||||
랜덤 문자열은 `openssl rand -hex 32`로 만들 수 있다.
|
||||
@@ -65,6 +66,7 @@ CORS_ORIGINS=https://uniare.sori.studio
|
||||
APP_BASE_URL=https://uniare.sori.studio
|
||||
RESEND_API_KEY=Resend_API_Key
|
||||
RESEND_FROM_EMAIL=UNIARE <account@인증된_발신도메인>
|
||||
STATS_API_TOKEN=대시보드용_긴_랜덤_문자열
|
||||
```
|
||||
|
||||
Resend에서 소유한 도메인 또는 발신용 하위 도메인을 먼저 추가하고 DNS 인증을 완료해야 한다. API Key에는 메일 발송 권한이 필요하며 `.env` 외에는 기록하지 않는다.
|
||||
@@ -75,6 +77,8 @@ Docker 실행: `docker compose -f docker-compose.prod.yml up -d --build`
|
||||
|
||||
API 확인: `curl -fsS http://localhost:44082/api/v1/health`
|
||||
|
||||
운영 지표 확인: `curl -fsS http://localhost:44082/api/stats`
|
||||
|
||||
정상이면 `{"ok":true,"version":"4.0.16"}`이 표시된다.
|
||||
|
||||
이메일 기능 확인:
|
||||
|
||||
Reference in New Issue
Block a user