File size: 833 Bytes
b7560a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// 内置用户配置
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 || 'pptist-secret-key-2025';
export const JWT_EXPIRES_IN = '24h';

// GitHub配置
export const GITHUB_CONFIG = {
  token: process.env.GITHUB_TOKEN,
  repositories: (process.env.GITHUB_REPOS || 'https://github.com/CaPaCaptain/PPTist_huggingface_db').split(','),
  apiUrl: 'https://api.github.com'
};