Files
ailine/.gitignore
root dbc2779973
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 9s
chore: 采用白名单模式并清理错误上传的敏感文件和数据
2026-04-17 01:31:11 +08:00

49 lines
895 B
Plaintext

# ==========================================
# 白名单模式配置 (Allowlist approach)
# 先忽略所有内容,然后再把需要上传的文件夹放行
# ==========================================
# 1. 忽略根目录及子目录下的所有内容
/*
# 2. 放行需要的文件夹及其内容
!app/
!app/**
!frontend/
!frontend/**
!scripts/
!scripts/**
!docker/
!docker/**
!.gitea/
!.gitea/**
# 3. 放行必要的根目录文件
!.gitignore
!README.md
!QUICKSTART.md
!LICENSE
!requirement.txt
!.env.docker
# ==========================================
# 黑名单模式 (即使在放行的文件夹中,也要排除的特定类型文件)
# ==========================================
__pycache__/
*.py[cod]
*$py.class
*.so
.DS_Store
# 包含敏感信息的环境变量配置(绝对不能传)
.env
.env.local
# 日志
*.log
app/*.log
frontend/*.log
# 测试和用户数据
data/