app.config.mjs 538 B

12345678910111213141516171819
  1. const PORT = 4000;
  2. const HOST = '0.0.0.0';
  3. const UPLOAD_DIR = 'public/upload';
  4. const STATIC = 'public';
  5. // 数据库相关
  6. const DB_CONFIG = {
  7. host: '127.0.0.1',
  8. user: 'root',
  9. password: 'Jing@123',
  10. database: 'shopping',
  11. waitForConnections: true,
  12. connectionLimit: 10,
  13. maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit`
  14. idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000
  15. queueLimit: 0,
  16. };
  17. export { PORT, HOST, UPLOAD_DIR, STATIC, DB_CONFIG };