appsettings.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. //"Connection": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORA12C)));User Id=myjob;Password=HHwx4ISVN51cDam;Connection Timeout=120;",
  3. "Connection": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1539))(CONNECT_DATA=(SERVICE_NAME=ORA12C)));User Id=Kitty_Fall;Password=123456;Connection Timeout=120;",
  4. "OracleSessionTimeZone": "UTC",
  5. "wsUrl": "http://127.0.0.1:8199/KittyFallWs?wsdl",
  6. "wsUser": "ws_KittyFall",
  7. "wsPass": "KittyFall@123A",
  8. "RewardWorker": {
  9. // Worker chi goi moi reward NEW mot lan; loi/timeout/PROCESSING de admin doi soat, khong auto retry.
  10. "IntervalSeconds": 10,
  11. "BatchSize": 20,
  12. "ServiceId": "KittyFall",
  13. "DataPackageName": "GAME_DATA",
  14. "LoyaltyPackageName": "GAME_LOYALTY",
  15. "DefaultPackageName": "GAME_REWARD"
  16. },
  17. "MonthlyWinner": {
  18. // Bat/tat worker tu sinh ky quay, ticket va winner draft cho giai thang.
  19. "AutoGenerate": true,
  20. // Neu true, worker tu chon winner nhap tu danh sach ticket de CMS duyet.
  21. "AutoSelectDraftWinners": true,
  22. // Neu true, winner duoc cong bo luon; neu false CMS doi status 0 -> 1.
  23. "AutoAnnounceWinners": false,
  24. // So giay giua moi lan worker quet xu ly giai thang.
  25. "IntervalSeconds": 3600,
  26. // Ngay worker duoc phep tong ket. Production de 1; khi test co the doi 1..28.
  27. "RunDay": 1,
  28. // Gio/phut cutoff theo gio local cua server. Sau moc nay restart van catch-up.
  29. "CutoffHour": 2,
  30. "CutoffMinute": 0,
  31. // Thang can xu ly so voi thang hien tai, -1 la thang truoc.
  32. "TargetMonthOffset": -1,
  33. // Diem toi thieu de user duoc sinh ticket tham gia giai thang.
  34. "MinEligibleScore": 5000,
  35. // So luot choi toi thieu trong thang de duoc tham gia.
  36. "MinEligiblePlay": 1,
  37. // So ticket mac dinh neu DB chua co rule theo khoang diem.
  38. "DefaultTicketCount": 1,
  39. // Gioi han so ticket toi da cho moi user.
  40. "MaxTicketsPerUser": 100,
  41. // Gioi han tong ticket worker sinh cho mot ky thang.
  42. "MaxTotalTicket": 100000,
  43. // Khong auto chon lai user da trung trong so thang gan nhat.
  44. "ExcludeRecentWinnerMonths": 3
  45. },
  46. "Logging": {
  47. "LogLevel": {
  48. "Default": "Information",
  49. "Microsoft.AspNetCore": "Warning"
  50. }
  51. },
  52. "Kestrel": {
  53. "EndPoints": {
  54. "Http": {
  55. "Url": "http://127.0.0.1:8311"
  56. }
  57. }
  58. },
  59. "Jwt": {
  60. "Key": "MyJobApiJwtSecretKey-2026-CHANGE-THIS-IN-PRODUCTION-aB7xK9pQ2wL5nR8",
  61. "Issuer": "MyJobApi",
  62. "Audience": "MyJobClient"
  63. },
  64. "AllowedHosts": "*"
  65. }