You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

106 regels
3.3 KiB

  1. # Device + printer connectivity monitoring (heartbeats, printer TCP checks).
  2. fpsms:
  3. monitoring:
  4. enabled: true
  5. # Session length in production; frontend can call /refresh-token before expiry to stay logged in.
  6. jwt:
  7. expiration-minutes: 480 # 8 hours access token (was 30 min); increase if users need longer AFK
  8. refresh-expiration-days: 7
  9. # Required for stable JWT across restarts; set JWT_SECRET in the deployment environment (long random string).
  10. secret: ${JWT_SECRET:fpsms-dev-jwt-signing-secret-change-for-production-use-long-random-JWT_SECRET}
  11. spring:
  12. datasource:
  13. jdbc-url: jdbc:mysql://127.0.0.1:3306/fpsmsdb?useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8
  14. username: root
  15. password: secret
  16. hikari:
  17. max-lifetime: 1740000 # 29 minutes (1740000 ms) — safe below typical 8-hour default
  18. # Or if your wait_timeout is lower (e.g. 10 min), set to e.g. 540000 (9 min)
  19. # Other helpful settings:
  20. idle-timeout: 600000 # 10 min — evict idle sooner
  21. minimum-idle: 5 # Adjust based on your traffic
  22. maximum-pool-size: 20 # Tune to your needs
  23. connection-test-query: SELECT 1 # Explicit test (good for MySQL)
  24. validation-timeout: 5000 # 5 sec
  25. scheduler:
  26. m18Sync:
  27. enabled: true
  28. m18Grn:
  29. createEnabled: true
  30. postCompletedDnGrn:
  31. enabled: true
  32. # Missing-success GRN retry window: receiptDate (default yesterday) back N days inclusive. E.g. run 27/3 with receiptDate=26/3 and N=6 => 20/3–26/3.
  33. retryMissingGrnLookbackDays: 6
  34. grnCodeSync:
  35. enabled: true
  36. syncOffsetDays: 10 # from (today − 10) 00:00 to now, rows missing grn_code
  37. inventoryLotExpiry:
  38. enabled: true
  39. # One-time DO1 catch-ups (only registered when scheduler.m18Sync.enabled=true — production profile).
  40. # skipExistingDo defaults true for catch-up: already-synced/picked DOs are not overwritten.
  41. do1CatchUp:
  42. enabled: false # 17/6 catch-up completed — disabled to avoid confusion on startup
  43. skipExistingDo: true
  44. dDate: "2026-06-17"
  45. runAt: "2026-06-17T11:45:00"
  46. do1CatchUp2:
  47. enabled: true
  48. skipExistingDo: true
  49. dDate: "2026-06-18"
  50. runAt: "2026-06-17T12:26:00"
  51. sync-alert:
  52. enabled: true
  53. sms:
  54. enabled: false
  55. provider: log
  56. channel: whatsapp
  57. to-numbers: ""
  58. email:
  59. enabled: true
  60. to-addresses: ""
  61. po-line:
  62. enabled: true
  63. # From = MAIL.smtp.username in DB settings.
  64. # Laser Bag2 (/laserPrint) TCP auto-send; uses LASER_PRINT host/port/itemCodes from DB and sends first matching job only.
  65. laser:
  66. bag2:
  67. auto-send:
  68. enabled: true
  69. sends-per-job: 1
  70. m18:
  71. config:
  72. grant-type: password
  73. client-id: Y2EwOTgyMDYtNGUwNS00ZmIxLTgxOWEtOTMxNDExOTA1ZGNi
  74. client-secret: N2IzMjY5ZTEtZDIyYy00M2FlLWJhZjktZWU0ODBhYzAyNDA3
  75. username: MTMS2
  76. password: ea5bfbd761dd1b97bc08354d66169155f11ddaf1
  77. base-url: https://toa.m18saas.com/jsf/rfws
  78. base-url-uat: https://toauat.m18saas.com/jsf/rfws
  79. base-password: 1648414877
  80. supplier:
  81. shop-po: P06, P07
  82. oem-po: T62
  83. supplier-not:
  84. material-po: P06, P07
  85. beId:
  86. toa: 1
  87. pf: 27
  88. pp: 29
  89. seriesId:
  90. pp: 26
  91. pf: 33
  92. fa: 2
  93. fb: 3
  94. fc: 4
  95. fd: 5
  96. ff: 6
  97. sc: 27
  98. se: 28
  99. sf: 70
  100. sr: 29