Files
nodeServer/src/config.ts
2024-09-26 00:03:34 +08:00

21 lines
431 B
TypeScript

const config = {
cors: {
origin: ['http://localhost:5173'],
allowedHeaders: ['Content-Type'],
methods: ['GET', 'POST']
},
mysql: {
host: 'localhost',
port: 3306,
database: '',
user: 'root',
password: ''
},
redis: {
host: 'localhost',
port: 6379,
password: '' // localhost
},
API_Port: 8080
};
export default config;