// 카테고리 ID 상수
export const CATEGORY_IDS = {
  YOUTUBE: 2,
  X: 3,
  BIRTHDAY: 8,
};

export default {
  server: {
    port: parseInt(process.env.PORT) || 80,
    host: '0.0.0.0',
  },
  image: {
    medium: { width: 800, quality: 85 },
    thumb: { width: 400, quality: 80 },
  },
  x: {
    defaultUsername: 'realfromis_9',
  },
  db: {
    host: process.env.DB_HOST || 'mariadb',
    port: parseInt(process.env.DB_PORT) || 3306,
    user: process.env.DB_USER || 'fromis9',
    password: process.env.DB_PASSWORD,
    database: process.env.DB_NAME || 'fromis9',
    connectionLimit: 10,
    waitForConnections: true,
  },
  redis: {
    host: process.env.REDIS_HOST || 'fromis9-redis',
    port: parseInt(process.env.REDIS_PORT) || 6379,
  },
  youtube: {
    apiKey: process.env.YOUTUBE_API_KEY,
  },
  jwt: {
    secret: process.env.JWT_SECRET || 'fromis9-admin-secret-key-2026',
    expiresIn: '30d',
  },
  s3: {
    endpoint: process.env.RUSTFS_ENDPOINT,
    accessKey: process.env.RUSTFS_ACCESS_KEY,
    secretKey: process.env.RUSTFS_SECRET_KEY,
    bucket: process.env.RUSTFS_BUCKET || 'fromis-9',
    publicUrl: process.env.RUSTFS_PUBLIC_URL,
  },
  meilisearch: {
    host: process.env.MEILI_HOST || 'http://fromis9-meilisearch:7700',
    apiKey: process.env.MEILI_MASTER_KEY,
    minScore: 0.5,
  },
};
