From 9b617ee9ef9c42b66cb33cae06a2e73bbb21e916 Mon Sep 17 00:00:00 2001 From: Chen Gu Date: Sun, 10 May 2026 16:13:59 +0800 Subject: [PATCH] feat: add .gitignore --- .env | 20 ------------ .gitignore | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+), 20 deletions(-) delete mode 100644 .env create mode 100644 .gitignore diff --git a/.env b/.env deleted file mode 100644 index 8678594..0000000 --- a/.env +++ /dev/null @@ -1,20 +0,0 @@ -# 数据库连接 -DATABASE_URL="postgresql://maqt:maqt123456@localhost:5432/maqt?schema=public" - -# JWT 密钥 -JWT_SECRET="maqt-jwt-secret-key-2026-change-in-production" - -# JWT 过期时间 -JWT_EXPIRES_IN="7d" - -# 数据加密密钥(32字节) -ENCRYPTION_KEY="maqt-encryption-key-32bytes!" - -# 服务端口 -PORT=3001 - -# 环境 -NODE_ENV="development" - -# VIP 卡密批次密钥 -BATCH_SECRET="maqt-batch-secret-2026" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..30cd9d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,93 @@ +# 环境变量(敏感信息) +.env +.env.local +.env.*.local +!.env.example + +# 依赖 +node_modules/ +.pnp +.pnp.js + +# 构建 +dist/ +build/ +out/ +*.tsbuildinfo + +# 日志 +logs/ +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +# 运行时数据 +pids/ +*.pid +*.seed +*.pid.lock + +# 系统文件 +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +Desktop.ini + +# IDE / 编辑器 +.idea/ +.vscode/ +*.swp +*.swo +*.sublime-workspace +*.sublime-project +.fleet/ + +# 测试 +coverage/ +.nyc_output/ +*.lcov + +# Prisma +prisma/*.db +prisma/*.db-journal +migrations/ + +# 临时文件 +*.tmp +*.temp +.cache/ +.parcel-cache/ + +# Docker +docker-compose.override.yml + +# 打包文件 +*.zip +*.tar.gz +*.tgz +*.rar + +# 密钥和证书(不应上传) +*.pem +*.key +*.cert +*.crt + +# 调试 +.eslintcache +.stylelintcache + +# TypeScript +*.tsbuildinfo + +# 其他 +*.bak +*.backup +*.orig \ No newline at end of file