feat: 引入 godotenv 管理环境变量,优化 Dockerfile 构建

- 新增 .env.example 和 .gitignore
- config.go 使用 godotenv 加载 .env,移除硬编码凭据
- docker-compose.yml 改用 env_file 引用 .env
- Dockerfile 使用国内镜像源 + 缓存加速构建
- README.md Hook URL 改为服务器地址,配置说明更新
This commit is contained in:
2026-06-21 22:01:38 +08:00
parent 2566f9f4aa
commit 075a8bf40b
8 changed files with 78 additions and 32 deletions
+2 -4
View File
@@ -4,8 +4,6 @@ services:
container_name: cc-hook
ports:
- "8082:8082"
environment:
- GOTIFY_URL=http://47.121.181.112:40266
- GOTIFY_TOKEN=AiousrPBE4Cn04C
- PORT=:8082
env_file:
- .env
restart: unless-stopped