This commit is contained in:
vipg
2025-12-19 12:11:43 +08:00
parent 778da4cce2
commit 0b5dbd2ed8
2 changed files with 23 additions and 2 deletions

21
.env Normal file
View File

@@ -0,0 +1,21 @@
# 数据库配置
DB_USER=postgres
DB_PASSWORD=postgres12341234
DB_NAME=postgres
DB_PORT=5432
DB_SSL_MODE=disable
DB_MAX_OPEN_CONNS=25
DB_MAX_IDLE_CONNS=25
DB_TIMEOUT=30s
# 时区配置
TZ=Asia/Shanghai
# 网关端口
PORT=80
# 日志配置
LOG_LEVEL=info
# Gin模式 (debug/release/test)
GIN_MODE=release

4
.gitignore vendored
View File

@@ -174,7 +174,7 @@ celerybeat.pid
*.sage.py *.sage.py
# Environments # Environments
.env # .env
.venv .venv
env/ env/
venv/ venv/
@@ -324,7 +324,7 @@ web_modules/
.yarn-integrity .yarn-integrity
# dotenv environment variable files # dotenv environment variable files
.env # .env
.env.development.local .env.development.local
.env.test.local .env.test.local
.env.production.local .env.production.local