镜像制作
This commit is contained in:
57
docker/config/web/index.ts
Normal file
57
docker/config/web/index.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* @description 应用配置 - Docker生产环境
|
||||
* @author yslg
|
||||
* @since 2025-10-18
|
||||
*/
|
||||
|
||||
// 生产环境配置
|
||||
const isDev = false;
|
||||
|
||||
// API 基础路径 - Docker环境使用相对路径
|
||||
export const API_BASE_URL = '/schoolNewsServ';
|
||||
|
||||
// 文件下载路径
|
||||
export const FILE_DOWNLOAD_URL = `${API_BASE_URL}/file/download/`;
|
||||
|
||||
// 应用配置
|
||||
export const APP_CONFIG = {
|
||||
// 应用标题
|
||||
title: '校园新闻管理系统',
|
||||
|
||||
// 基础路径
|
||||
baseUrl: '/schoolNewsWeb/',
|
||||
|
||||
// API 配置
|
||||
api: {
|
||||
baseUrl: API_BASE_URL,
|
||||
timeout: 30000
|
||||
},
|
||||
|
||||
// 文件配置
|
||||
file: {
|
||||
downloadUrl: FILE_DOWNLOAD_URL,
|
||||
uploadUrl: `${API_BASE_URL}/file/upload`,
|
||||
maxSize: {
|
||||
image: 5, // MB
|
||||
video: 100, // MB
|
||||
document: 10 // MB
|
||||
},
|
||||
acceptTypes: {
|
||||
image: 'image/*',
|
||||
video: 'video/*',
|
||||
document: '.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx'
|
||||
}
|
||||
},
|
||||
|
||||
// Token 配置
|
||||
token: {
|
||||
key: 'token',
|
||||
refreshThreshold: 5 * 60 * 1000 // 提前5分钟刷新
|
||||
}
|
||||
};
|
||||
|
||||
// 公共资源路径 - Docker环境
|
||||
export const PUBLIC_IMG_PATH = '/schoolNewsWeb/img';
|
||||
export const PUBLIC_WEB_PATH = '/schoolNewsWeb';
|
||||
|
||||
export default APP_CONFIG;
|
||||
Reference in New Issue
Block a user