Adds an 8th development stage that lets users keep a free-form journal alongside habit tracking, reusing the existing Google OAuth/DB/PWA infrastructure instead of a separate project. Users organize entries into custom categories, filter by a month calendar with day-detail drill-down, attach photos/videos (served via an authenticated route, never /static), tag entries, and pick multiple emotions per entry from a curated 9-option set. Includes a global journal prompt bank for lightweight guided journaling. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
27 lines
1.3 KiB
Bash
27 lines
1.3 KiB
Bash
# 이 파일을 복사해 .env로 저장한 뒤 값을 채워넣으세요. .env는 git에 커밋되지 않습니다.
|
|
|
|
# 세션 쿠키 서명에 쓰이는 임의의 긴 무작위 문자열 (예: python -c "import secrets; print(secrets.token_hex(32))")
|
|
SECRET_KEY=change-me
|
|
|
|
# 원격 MariaDB 서버 접속 정보
|
|
# 형식: mysql+pymysql://<user>:<password>@<host>:<port>/<database>
|
|
DATABASE_URL=mysql+pymysql://habit_tracker:password@your-db-host:3306/habit_tracker
|
|
|
|
# 구글 로그인용 OAuth 클라이언트 정보.
|
|
# https://console.cloud.google.com/apis/credentials 에서 "OAuth 클라이언트 ID"(웹 애플리케이션)를
|
|
# 만들고, "승인된 리디렉션 URI"에 GOOGLE_REDIRECT_URI와 정확히 같은 값을 등록하세요.
|
|
GOOGLE_CLIENT_ID=
|
|
GOOGLE_CLIENT_SECRET=
|
|
# 로컬 개발: http://localhost:8000/auth/google/callback
|
|
# 배포(Tailscale HTTPS 등): https://<host>.<tailnet>.ts.net/auth/google/callback
|
|
GOOGLE_REDIRECT_URI=http://localhost:8000/auth/google/callback
|
|
|
|
# Web Push용 VAPID 키 (scripts/generate_vapid_keys.py로 생성)
|
|
VAPID_PUBLIC_KEY=
|
|
VAPID_PRIVATE_KEY=
|
|
VAPID_SUBJECT=mailto:you@example.com
|
|
|
|
# 저널 사진/영상 첨부 저장 경로(로컬 디스크)와 업로드 용량 제한(MB). 둘 다 기본값이 있어 생략 가능.
|
|
# JOURNAL_MEDIA_ROOT=app/media/journal
|
|
# JOURNAL_MAX_UPLOAD_MB=20
|