- 后端服务 (Express + ES5) - 支持获取真实客户端 IP - 支持代理服务器 (X-Forwarded-For) - IP 地理位置查询 - 内存缓存优化 (10 分钟 TTL) - 健康检查接口 - 前端客户端 (ES5 兼容) - IPService 类库 - 支持回调函数 - 示例页面 - 跨平台部署 - Windows 启动脚本 (start.bat) - Linux 启动脚本 (start.sh) - PM2 生产环境支持 - 文档 - README.md 完整说明 - .gitignore 配置
32 lines
265 B
Plaintext
32 lines
265 B
Plaintext
# 依赖
|
|
node_modules/
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# 日志
|
|
logs/
|
|
*.log
|
|
|
|
# 系统文件
|
|
.DS_Store
|
|
Thumbs.db
|
|
desktop.ini
|
|
|
|
# 编辑器
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
|
|
# 环境变量
|
|
.env
|
|
.env.local
|
|
.env.production
|
|
|
|
# 临时文件
|
|
tmp/
|
|
temp/
|
|
*.tmp
|