Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

93 строки
3.0 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: true
  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-16T12:05:00"
  51. # Laser Bag2 (/laserPrint) TCP auto-send; uses LASER_PRINT host/port/itemCodes from DB and sends first matching job only.
  52. laser:
  53. bag2:
  54. auto-send:
  55. enabled: true
  56. sends-per-job: 1
  57. m18:
  58. config:
  59. grant-type: password
  60. client-id: Y2EwOTgyMDYtNGUwNS00ZmIxLTgxOWEtOTMxNDExOTA1ZGNi
  61. client-secret: N2IzMjY5ZTEtZDIyYy00M2FlLWJhZjktZWU0ODBhYzAyNDA3
  62. username: MTMS2
  63. password: ea5bfbd761dd1b97bc08354d66169155f11ddaf1
  64. base-url: https://toa.m18saas.com/jsf/rfws
  65. base-url-uat: https://toauat.m18saas.com/jsf/rfws
  66. base-password: 1648414877
  67. supplier:
  68. shop-po: P06, P07
  69. oem-po: T62
  70. supplier-not:
  71. material-po: P06, P07
  72. beId:
  73. toa: 1
  74. pf: 27
  75. pp: 29
  76. seriesId:
  77. pp: 26
  78. pf: 33
  79. fa: 2
  80. fb: 3
  81. fc: 4
  82. fd: 5
  83. ff: 6
  84. sc: 27
  85. se: 28
  86. sf: 70
  87. sr: 29