Spaces:
Paused
Paused
| // 内置用户配置 | |
| export const USERS = [ | |
| { | |
| id: 'PS01', | |
| username: 'PS01', | |
| password: 'admin_cybercity2025', | |
| role: 'admin' | |
| }, | |
| { | |
| id: 'PS02', | |
| username: 'PS02', | |
| password: 'cybercity2025', | |
| role: 'user' | |
| }, | |
| { | |
| id: 'PS03', | |
| username: 'PS03', | |
| password: 'cybercity2025', | |
| role: 'user' | |
| }, | |
| { | |
| id: 'PS04', | |
| username: 'PS04', | |
| password: 'cybercity2025', | |
| role: 'user' | |
| } | |
| ]; | |
| // JWT配置 - 可选,仅在需要认证时使用 | |
| export const JWT_SECRET = process.env.JWT_SECRET || null; | |
| export const JWT_EXPIRES_IN = '24h'; | |
| export const JWT_ENABLED = !!process.env.JWT_SECRET; | |
| // 修复GitHub配置,去除多余空格 | |
| export const GITHUB_CONFIG = { | |
| apiUrl: 'https://api.github.com', | |
| token: process.env.GITHUB_TOKEN, | |
| repositories: process.env.GITHUB_REPOS | |
| ? process.env.GITHUB_REPOS.split(',').map(repo => repo.trim()) // 去除每个仓库URL的空格 | |
| : [] | |
| }; |