Compare commits

..

3 Commits

Author SHA1 Message Date
king 7f37402561 fix: 운영 포트를 80에서 8000으로 변경 (NPM과 충돌 해결) 2026-05-22 00:39:36 +09:00
king 6203917ac0 chore: .gitignore에 .claude/ 제외 항목 추가
Claude Code 내부 설정 디렉토리(.claude/)를 저장소에서 제외

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-21 23:47:23 +09:00
king 21de32a568 chore: push-gitea.bat에 민감 파일 사전 검사 추가
푸시 전 git에 추적 중인 민감 파일(.env, *.pem, *.key,
*secret*, *password*, *credential*, *token* 등)을 자동 검사하여
발견 시 푸시를 차단하고 제거 방법을 안내함

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-21 23:45:41 +09:00
3 changed files with 76 additions and 3 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ __pycache__/
*.py[cod] *.py[cod]
.venv/ .venv/
# IDE # IDE / 에디터
.vscode/ .vscode/
.idea/ .idea/
.claude/
+2 -2
View File
@@ -5,7 +5,7 @@ services:
container_name: dbx-main container_name: dbx-main
restart: unless-stopped restart: unless-stopped
ports: ports:
# NPM이 192.168.0.194:80 으로 프록시 → 컨테이너 8000으로 전달 # NPM이 192.168.0.194:8000 으로 프록시 → 컨테이너 8000으로 전달
- "80:8000" - "8000:8000"
env_file: env_file:
- .env - .env
+72
View File
@@ -0,0 +1,72 @@
@echo off
cd /d "%~dp0"
echo.
echo [1/2] Checking for sensitive files...
echo.
set FOUND=0
:: git? ??? ??(tracked)?? ?? ?? ??
for %%F in (
.env
.env.local
.env.production
.env.secret
) do (
git ls-files --error-unmatch "%%F" >nul 2>&1
if not errorlevel 1 (
echo [ERROR] Sensitive file is tracked by git: %%F
set FOUND=1
)
)
:: ??? ?? ?? ??? git? ????? ??
for %%P in (
*.pem *.key *.p12 *.pfx id_rsa id_ed25519
*secret* *password* *credential* *token* *apikey* *api_key*
db.conf database.conf
) do (
git ls-files "%%P" 2>nul | findstr /r "." >nul 2>&1
if not errorlevel 1 (
echo [ERROR] Sensitive file pattern tracked by git: %%P
set FOUND=1
)
)
if %FOUND%==1 (
echo.
echo ============================================================
echo PUSH BLOCKED: Sensitive file found in git.
echo.
echo Remove it with:
echo git rm --cached ^<filename^>
echo git commit -m "remove sensitive file"
echo.
echo Then add it to .gitignore to prevent future accidents.
echo ============================================================
echo.
pause
exit /b 1
)
echo No sensitive files detected. Safe to push.
echo.
echo [2/2] Pushing to Gitea...
echo https://gitea.no1king.freeddns.org/king/dbx-main.git
echo.
git push -u origin master
if %errorlevel%==0 (
echo.
echo [OK] Push complete.
echo https://gitea.no1king.freeddns.org/king/dbx-main
echo.
) else (
echo.
echo [ERROR] Push failed. Check your credentials or network.
echo.
)
pause