Files
co-lite/solvway-api-gateway/src/main/resources/application.yml
T
ngqileandClaude Opus 5.5 5ee51d1913 chore: copy kept Tastefully modules and portals into Co-Lite
Backend modules from tastefully 8bd93d15: core-libs, core-session,
api-gateway, mobile-api, services-auth, services-system,
services-counter, services-member, services-log, services-email.
solvway-admin-portal from babyboo f64d096ea, solvway-customer-portal
from tastefully 8bd93d15. Copied as tracked files only.

Literal secrets replaced with environment placeholders:
- services-email: SMTP_PASSWORD, MAILGUN_API_KEY, SENDGRID_API_KEY,
  MAILJET_API_KEY, MAILJET_SECRET_KEY (optional, empty default)
- services-system: JUMIO_TOKEN, JUMIO_SECRET (optional)
- services-auth: USER_AUTH_API_SECRET (required); commented JWT secret removed
- core-libs: JWT_TOKEN default removed (required), XXL_JOB_TOKEN default
  removed, ipgeolocation key read from IPGEOLOCATION_API_KEY
- services-system EkycAppConfig: commented Jumio credentials removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-26 15:55:45 +08:00

422 lines
12 KiB
YAML

info:
app:
name: Solvway API Gateway
description: API Gateway
version: 1.0.0
management:
health:
probes:
enabled: true
auth:
api-key:
file-path: file:/deployments/appkeys/appkeys.json
server:
port: 80
app:
services:
name:
auth: service-auth
bonus: service-bonus
email: service-email
sms: service-sms
system: service-system
member: service-member
log: service-log
payment: service-payment
inventory: service-inventory
notification: service-notification
job: service-job
drive: service-drive
counter: service-counter
staff: service-staff
css: service-css
stockist: service-stockist
kyc: service-kyc
report: service-report
spring:
cloud:
gateway:
routes:
- id: auth
uri: http://${app.services.name.auth}
predicates:
- Path=/auth/**
- id: bonus
uri: http://${app.services.name.bonus}
predicates:
- Path=/bonus/**
- id: user
uri: http://${app.services.name.system}
predicates:
- Path=/user/**
- id: userGroup
uri: http://${app.services.name.system}
predicates:
- Path=/userGroup/**
- id: role
uri: http://${app.services.name.system}
predicates:
- Path=/role/**
- id: member
uri: http://${app.services.name.member}
predicates:
- Path=/member/**
- id: message
uri: http://${app.services.name.system}
predicates:
- Path=/message/**
- id: module
uri: http://${app.services.name.system}
predicates:
- Path=/module/**
- id: country
uri: http://${app.services.name.system}
predicates:
- Path=/country/**
- id: log
uri: http://${app.services.name.log}
predicates:
- Path=/log/**
- id: payment
uri: http://${app.services.name.payment}
predicates:
- Path=/payment/**
- id: wallet
uri: http://${app.services.name.payment}
predicates:
- Path=/wallet/**
- id: inventory
uri: http://${app.services.name.inventory}
predicates:
- Path=/inventory/**
- id: counter
uri: http://${app.services.name.counter}
predicates:
- Path=/counter/**
- id: currency
uri: http://${app.services.name.system}
predicates:
- Path=/currency/**
- id: address
uri: http://${app.services.name.system}
predicates:
- Path=/address/**
- id: locationHierarchy
uri: http://${app.services.name.system}
predicates:
- Path=/locationHierarchy/**
- id: bank
uri: http://${app.services.name.system}
predicates:
- Path=/bank/**
- id: nationality
uri: http://${app.services.name.system}
predicates:
- Path=/nationality/**
- id: product
uri: http://${app.services.name.inventory}
predicates:
- Path=/product/**
- id: category
uri: http://${app.services.name.inventory}
predicates:
- Path=/category/**
- id: siCategory
uri: http://${app.services.name.inventory}
predicates:
- Path=/siCategory/**
- id: sku
uri: http://${app.services.name.inventory}
predicates:
- Path=/sku/**
- id: skutype
uri: http://${app.services.name.inventory}
predicates:
- Path=/skutype/**
- id: variation
uri: http://${app.services.name.inventory}
predicates:
- Path=/variation/**
- id: skuVariation
uri: http://${app.services.name.inventory}
predicates:
- Path=/skuVariation/**
- id: productDetails
uri: http://${app.services.name.inventory}
predicates:
- Path=/productDetails/**
- id: race
uri: http://${app.services.name.system}
predicates:
- Path=/race/**
- id: marritalStatus
uri: http://${app.services.name.system}
predicates:
- Path=/marritalStatus/**
- id: preferredLanguage
uri: http://${app.services.name.system}
predicates:
- Path=/preferredLanguage/**
- id: categoryLevel
uri: http://${app.services.name.inventory}
predicates:
- Path=/categoryLevel/**
- id: pricing
uri: http://${app.services.name.inventory}
predicates:
- Path=/pricing/**
- id: priceType
uri: http://${app.services.name.inventory}
predicates:
- Path=/priceType/**
- id: state
uri: http://${app.services.name.system}
predicates:
- Path=/state/**
- id: city
uri: http://${app.services.name.system}
predicates:
- Path=/city/**
- id: province
uri: http://${app.services.name.system}
predicates:
- Path=/province/**
- id: street
uri: http://${app.services.name.system}
predicates:
- Path=/street/**
- id: geoLocationHierarchy
uri: http://${app.services.name.system}
predicates:
- Path=/geoLocationHierarchy/**
- id: job
uri: http://${app.services.name.job}
predicates:
- Path=/job/**
- id: deliveryCharges
uri: http://${app.services.name.system}
predicates:
- Path=/deliveryCharges/**
- id: paymentMethod
uri: http://${app.services.name.payment}
predicates:
- Path=/paymentMethod/**
- id: voucher
uri: http://${app.services.name.payment}
predicates:
- Path=/voucher/**
- id: onlinePayment
uri: http://${app.services.name.payment}
predicates:
- Path=/onlinePayment/**
- id: deliveryChargesZone
uri: http://${app.services.name.system}
predicates:
- Path=/deliveryChargesZone/**
- id: systemProperty
uri: http://${app.services.name.system}
predicates:
- Path=/systemProperty/**
- id: storage
uri: http://${app.services.name.drive}
predicates:
- Path=/storage/**
- id: jwt
uri: http://${app.services.name.auth}
predicates:
- Path=/jwt/**
- id: passwordRule
uri: http://${app.services.name.system}
predicates:
- Path=/passwordRule/**
- id: deliveryOrder
uri: http://${app.services.name.inventory}
predicates:
- Path=/deliveryOrder/**
- id: bulletin
uri: http://${app.services.name.system}
predicates:
- Path=/bulletin/**
- id: promotion
uri: http://${app.services.name.inventory}
predicates:
- Path=/promotion/**
- id: blockLoginPeriod
uri: http://${app.services.name.system}
predicates:
- Path=/blockLoginPeriod/**
- id: passwordAging
uri: http://${app.services.name.system}
predicates:
- Path=/passwordAging/**
- id: rAndR
uri: http://${app.services.name.system}
predicates:
- Path=/rAndR/**
- id: pdpa
uri: http://${app.services.name.system}
predicates:
- Path=/pdpa/**
- id: staff
uri: http://${app.services.name.staff}
predicates:
- Path=/staff/**
- id: staffGroup
uri: http://${app.services.name.staff}
predicates:
- Path=/staffGroup/**
- id: purchaserDraw
uri: http://${app.services.name.system}
predicates:
- Path=/purchaserDraw/**
- id: feedback
uri: http://${app.services.name.css}
predicates:
- Path=/feedback/**
- id: email
uri: http://${app.services.name.email}
predicates:
- Path=/email/**
- id: printTicket
uri: http://${app.services.name.system}
predicates:
- Path=/printTicket/**
- id: resources
uri: http://${app.services.name.system}
predicates:
- Path=/resources/**
- id: reasonCode
uri: http://${app.services.name.system}
predicates:
- Path=/reasonCode/**
- id: sms
uri: http://${app.services.name.sms}
predicates:
- Path=/sms/**
- id: logisticSetup
uri: http://${app.services.name.inventory}
predicates:
- Path=/logisticSetup/**
- id: salutation
uri: http://${app.services.name.system}
predicates:
- Path=/salutation/**
- id: picking
uri: http://${app.services.name.inventory}
predicates:
- Path=/picking/**
- id: taxationSetup
uri: http://${app.services.name.system}
predicates:
- Path=/taxationSetup/**
- id: backOrder
uri: http://${app.services.name.inventory}
predicates:
- Path=/backOrder/**
- id: appInitialize
uri: http://${app.services.name.system}
predicates:
- Path=/appInitialize/**
- id: appDashBoard
uri: http://${app.services.name.system}
predicates:
- Path=/appDashBoard/**
- id: contactUs
uri: http://${app.services.name.system}
predicates:
- Path=/contactUs/**
- id: notification
uri: http://${app.services.name.system}
predicates:
- Path=/notification/**
- id: stockist
uri: http://${app.services.name.stockist}
predicates:
- Path=/stockist/**
- id: pickupPointLocation
uri: http://${app.services.name.system}
predicates:
- Path=/pickupPointLocation/**
- id: agility
uri: http://${app.services.name.inventory}
predicates:
- Path=/integration/agility/**
- id: appProduct
uri: http://${app.services.name.inventory}
predicates:
- Path=/appProduct/**
- id: pickupPointType
uri: http://${app.services.name.system}
predicates:
- Path=/pickupPointType/**
- id: salesItemTrxn
uri: http://${app.services.name.inventory}
predicates:
- Path=/salesItemTrxn/**
- id: inventoryFreeze
uri: http://${app.services.name.inventory}
predicates:
- Path=/inventoryFreeze/**
- id: notification
uri: http://${app.services.name.notification}
predicates:
- Path=/pushnotification/**
- id: kyc
uri: http://${app.services.name.kyc}
predicates:
- Path=/kyc/**
- id: userAuth
uri: http://${app.services.name.auth}
predicates:
- Path=/userAuth/**
- id: birthdayTreat
uri: http://${app.services.name.system}
predicates:
- Path=/birthdayTreat/**
- id: appSideMenu
uri: http://${app.services.name.system}
predicates:
- Path=/appSideMenu/**
- id: maintenance
uri: http://${app.services.name.system}
predicates:
- Path=/maintenance/**
- id: inventoryTrxn
uri: http://${app.services.name.inventory}
predicates:
- Path=/inventoryTrxn/**
- id: stockistStockAccept
uri: http://${app.services.name.inventory}
predicates:
- Path=/stockistStockAccept/**
- id: pricingProduct
uri: http://${app.services.name.inventory}
predicates:
- Path=/pricingProduct/**
- id: report
uri: http://${app.services.name.report}
predicates:
- Path=/report/**
- id: integration
uri: http://${app.services.name.inventory}
predicates:
- Path=/integration/**
- id: npwp
uri: http://${app.services.name.member}
predicates:
- Path=/npwp/**
- id: pushNotification
uri: http://${app.services.name.system}
predicates:
- Path=/pushNotification/**
- id: surveyRating
uri: http://${app.services.name.system}
predicates:
- Path=/surveyRating/**
- id: system
uri: http://${app.services.name.system}
predicates:
- Path=/system/**