-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitignore
More file actions
65 lines (54 loc) · 2.36 KB
/
Copy path.gitignore
File metadata and controls
65 lines (54 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# log files #
*.log
log/
# OS Files #
*.swp
# web root #
# www/
# nginx cache #
nginx_cache/
# ssl files
**/ssl/
# data
compose/web_service/nginx_gunicorn/ssl/
compose/web_service/nginx_gunicorn/redis/
compose/web_service/nginx_php/ssl/
compose/web_service/nginx_php/redis/
compose/web_service/nginx_uwsgi/ssl/
compose/web_service/nginx_uwsgi/redis/
# Redis 실시간 dump (테스트/운영 중 컨테이너가 생성) — 모든 스택 공통
# .gitkeep 은 negation 으로 유지 (디렉터리 자체는 트리 상에 보존)
**/redis/data/*
!**/redis/data/.gitkeep
# ---------------------------------------------------------------------------
# .env — 자격증명 보호
# - compose/web_service/*/.env 는 FLOWER_BASIC_AUTH, REDIS_PASSWORD 등을 포함
# - 운영 자격증명은 git 추적 대상에서 제외하고, 동일 폴더의 .env.example 만 추적
# - 기존에 추적되던 파일을 untrack 하려면:
# git rm --cached compose/web_service/nginx_*/.env
# (placeholder 만 들어가도록 정비된 상태이므로 미실행 시에도 즉시 leak 위험은 없음)
# ---------------------------------------------------------------------------
**/.env
!**/.env.example
# Python / uv virtualenv (컨테이너가 mount 된 /www 안에 생성)
**/.venv/
**/__pycache__/
*.py[cod]
*.egg-info/
# ---------------------------------------------------------------------------
# 런타임 SQLite DB / 시크릿 파일은 추적 금지.
# - 기존에 추적되던 파일은 인덱스에서 제거: git rm --cached www/django_sample/db.sqlite3 www/django_sample/secrets.json
# - secrets.json 은 .example 패턴 또는 env 주입으로 관리 권장.
# ---------------------------------------------------------------------------
www/*/db.sqlite3
www/*/secrets.json
*.sqlite3
# uv.lock 은 커밋 권장 (재현 가능 빌드). 환경별로 다른 락이 필요하다면 추가 정책 검토.
# !**/uv.lock
# ---------------------------------------------------------------------------
# docs/ 디렉터리는 운영 가이드 / 아키텍처 문서 / 마이그레이션 노트 등을 포함하며
# 위의 패턴(*.log, **/ssl/ 등) 에 영향받지 않고 반드시 commit / push 되어야 한다.
# 아래 negation rule 이 상위 패턴을 덮어쓴다 — docs/ 하위 모든 파일을 추적.
# ---------------------------------------------------------------------------
!docs/
!docs/**