From f05eb0aeab6fb3604ff2f614332ab9bafd2fee0a Mon Sep 17 00:00:00 2001 From: ayou <550244300@qq.com> Date: Thu, 28 Aug 2025 23:08:20 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=92=8C=E5=89=8D=E7=AB=AF=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改后端端口号和JWT密钥配置 更新前端标题和品牌名称为"道友" 调整前端环境变量配置 --- backend/.env.example | 2 +- backend/.env.prod | 2 +- frontend/.env | 15 ++++++++++++++- frontend/index.html | 2 +- frontend/src/layouts/MainLayout.tsx | 2 +- frontend/src/pages/Dashboard.tsx | 2 +- 6 files changed, 19 insertions(+), 6 deletions(-) diff --git a/backend/.env.example b/backend/.env.example index 0627495..4efd4b2 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -1,7 +1,7 @@ RUST_LOG=info,udmin=debug APP_ENV=development APP_HOST=0.0.0.0 -APP_PORT=8080 +APP_PORT=9898 DB_URL=mysql://root:123456@127.0.0.1:3306/udmin JWT_SECRET=please_change_me JWT_ISS=udmin diff --git a/backend/.env.prod b/backend/.env.prod index 6e9412f..97abd73 100644 --- a/backend/.env.prod +++ b/backend/.env.prod @@ -3,7 +3,7 @@ APP_ENV=prod APP_HOST=0.0.0.0 APP_PORT=9898 DB_URL=mysql://root:109ysy!@149.104.0.182:3306/udmin -JWT_SECRET=dev_secret_change_me +JWT_SECRET=prod_secret_change_me JWT_ISS=udmin JWT_ACCESS_EXP_SECS=1800 JWT_REFRESH_EXP_SECS=1209600 diff --git a/frontend/.env b/frontend/.env index 99fa403..0ff8de8 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1 +1,14 @@ -VITE_API_BASE=http://localhost:8080 \ No newline at end of file +# port 端口号 +VITE_PORT = 8888 + +# 浏览器自动打开 +VITE_OPEN = true + +# 本地环境 +ENV = 'development' + +# ADMIN 服务地址(开发代理目标) +VITE_ADMIN_PROXY_PATH = http://127.0.0.1:9898 + +# API 基地址(留空则走相对 /api,经由开发代理转发) +VITE_API_BASE = \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index aae83aa..c006bdf 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,7 @@
-