From 8ac39cf007e36668bf19c80fa6a3ddb4e597a7e0 Mon Sep 17 00:00:00 2001 From: caoxiaozhu Date: Fri, 24 Jul 2026 14:33:18 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E5=B7=B2=E5=BA=9F?= =?UTF-8?q?=E5=BC=83=E7=9A=84=20.env.example=20=E7=A4=BA=E4=BE=8B=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 配置入口已迁移至 backend/config.yaml(本地,已 gitignore) 与各环境实际的 .env 文件,示例文件不再需要维护。 --- backend/.env.example | 9 -------- docker/app/.env.example | 46 ----------------------------------------- 2 files changed, 55 deletions(-) delete mode 100644 backend/.env.example delete mode 100644 docker/app/.env.example diff --git a/backend/.env.example b/backend/.env.example deleted file mode 100644 index 436987d..0000000 --- a/backend/.env.example +++ /dev/null @@ -1,9 +0,0 @@ -APP_NAME=YG Fine-Tune Platform API -APP_ENV=local -API_PREFIX=/api -LOG_LEVEL=INFO -LOG_DIR=./logs -LOG_FILE_PREFIX=backend -LOG_ERROR_FILE_PREFIX=error -LOG_MAX_BYTES=20971520 -LOG_RETENTION_DAYS=10 diff --git a/docker/app/.env.example b/docker/app/.env.example deleted file mode 100644 index d10ccb9..0000000 --- a/docker/app/.env.example +++ /dev/null @@ -1,46 +0,0 @@ -APP_ENV=prod -APP_NAME=YG Fine-Tune Platform API -MODELTF_ROUTE_PREFIX=/modelTF -CORS_ALLOW_ORIGINS=http://localhost:16801,http://127.0.0.1:16801 - -FRONTEND_IMAGE=yg-ft-frontend-runtime:latest -BACKEND_API_IMAGE=yg-ft-backend-api:latest - -# Five-digit host ports exposed outside the application server. -FRONTEND_PORT=16801 -BACKEND_API_PORT=17861 -POSTGRES_PORT=15432 -REDIS_PORT=16379 - -POSTGRES_DB=yg_ft -POSTGRES_USER=yg_ft -POSTGRES_PASSWORD=change_me -DATABASE_URL=postgresql+psycopg://yg_ft:change_me@postgres:5432/yg_ft - -REDIS_URL=redis://redis:6379/0 - -# Development uses the built-in PostgreSQL/Redis services in docker-compose.yml. -# For enterprise infrastructure, replace DATABASE_URL/REDIS_URL and remove or disable those services. -USE_BUILTIN_POSTGRES=true -USE_BUILTIN_REDIS=true - -LOG_LEVEL=INFO -LOG_DIR=/opt/yg-ft/logs/backend -LOG_FILE_PREFIX=backend -LOG_ERROR_FILE_PREFIX=error -LOG_MAX_BYTES=20971520 -LOG_RETENTION_DAYS=10 - -BACKEND_PROXY_PASS=http://backend-api:8000 - -# Split deployment: set these to the compute server address, for example http://10.10.20.31:19100. -COMPUTE_API_BASE_URL=http://compute-api:9100 -COMPUTE_SERVICE_TOKEN=change_me -FILE_GATEWAY_BASE_URL=http://compute-api:9101 - -# The application side polls Compute API for job state to avoid opening reverse network access. -COMPUTE_MODE=real -COMPUTE_STATUS_SYNC_MODE=polling -COMPUTE_POLL_INTERVAL_SECONDS=3 -COMPUTE_POLL_BATCH_SIZE=100 -COMPUTE_REQUEST_TIMEOUT_SECONDS=5