From 2449c7766df5cb16f77e925df7651ce465be638b Mon Sep 17 00:00:00 2001 From: ILSEON-RYU Date: Fri, 1 May 2026 10:09:59 +0900 Subject: [PATCH] =?UTF-8?q?.env=20=EC=8B=9C=ED=81=AC=EB=A6=BF=EC=9D=84=20?= =?UTF-8?q?=EC=B6=94=EC=A0=81=EC=97=90=EC=84=9C=20=EC=A0=9C=EC=99=B8?= =?UTF-8?q?=ED=95=98=EA=B3=A0=20.env.example=20=ED=8C=A8=ED=84=B4=20?= =?UTF-8?q?=EB=8F=84=EC=9E=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 변경 사항 - git rm --cached .env : 토큰/채팅ID 가 평문으로 git push 되지 않도록 추적 해제. 로컬 파일은 그대로 유지. - .env.example 추가 : 클론하는 사람이 어떤 환경변수가 필요한지 알 수 있게 placeholder 만 담은 템플릿 커밋. - .gitignore 에 .env : 향후 실수로 추가되는 것 방지. ## 주의 - 이미 git history 에 들어간 옛날 토큰은 그대로 남아있음. 해당 토큰은 이미 revoke 되어 무효화되었으므로 별도 history 재작성은 진행하지 않음. - 새 환경(서버 등)에 배포할 때는 .env.example 을 .env 로 복사한 뒤 실제 토큰/ID 를 채워 넣어야 함. Co-Authored-By: Claude Opus 4.7 (1M context) --- .env | 2 -- .env.example | 2 ++ .gitignore | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 .env create mode 100644 .env.example diff --git a/.env b/.env deleted file mode 100644 index 8c6cb74..0000000 --- a/.env +++ /dev/null @@ -1,2 +0,0 @@ -TELEGRAM_TOKEN=8642481485:AAEv4fox0zmz60h77htRfNpV5w2uWLdHbrU -TELEGRAM_CHAT_ID=5604587238 \ No newline at end of file diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..9c6dcb3 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +TELEGRAM_TOKEN=your_telegram_bot_token_here +TELEGRAM_CHAT_ID=your_telegram_chat_id_here diff --git a/.gitignore b/.gitignore index e59efd7..63d6241 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .claude/settings.local.json streamlit.log streamlit.err.log +.env