diff --git a/.env b/.env new file mode 100644 index 0000000..de606ef --- /dev/null +++ b/.env @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3e0f3c3..1350f64 100644 --- a/.gitignore +++ b/.gitignore @@ -174,7 +174,7 @@ celerybeat.pid *.sage.py # Environments -.env +# .env .venv env/ venv/ @@ -324,7 +324,7 @@ web_modules/ .yarn-integrity # dotenv environment variable files -.env +# .env .env.development.local .env.test.local .env.production.local