Files
baiyue-firstleg/lastleg-service/src/main/resources/application.yml
T

92 lines
3.3 KiB
YAML
Raw Normal View History

2026-08-19 16:24:02 +08:00
server:
port: ${LASTLEG_PORT:9303}
max-http-request-header-size: ${SERVER_MAX_HTTP_REQUEST_HEADER_SIZE:32KB}
2026-08-19 16:24:02 +08:00
spring:
2026-08-28 12:33:14 +08:00
servlet:
multipart:
max-file-size: ${LASTLEG_MULTIPART_MAX_FILE_SIZE:10MB}
max-request-size: ${LASTLEG_MULTIPART_MAX_REQUEST_SIZE:11MB}
2026-08-19 16:24:02 +08:00
sql:
init:
2026-09-29 18:47:37 +08:00
mode: never
2026-08-19 16:24:02 +08:00
encoding: UTF-8
schema-locations: classpath:db/lastleg.sql
data:
redis:
2026-09-29 18:47:37 +08:00
host: ${REDIS_HOST}
port: ${REDIS_PORT:6379}
2026-08-19 16:24:02 +08:00
application:
name: lastleg-service
config:
import:
2026-09-29 18:47:37 +08:00
- nacos:baiyue-common.yml?group=${NACOS_GROUP:BAIYUE}&refreshEnabled=true
- nacos:${spring.application.name}.yml?group=${NACOS_GROUP:BAIYUE}&refreshEnabled=true
2026-08-19 16:24:02 +08:00
cloud:
nacos:
2026-09-29 18:47:37 +08:00
server-addr: ${NACOS_SERVER_ADDR}
username: ${NACOS_USERNAME}
password: ${NACOS_PASSWORD}
2026-08-19 16:24:02 +08:00
discovery:
enabled: ${NACOS_DISCOVERY_ENABLED:true}
register-enabled: ${NACOS_REGISTER_ENABLED:true}
group: ${NACOS_GROUP:BAIYUE}
2026-09-29 18:47:37 +08:00
namespace: ${NACOS_NAMESPACE}
config.namespace: ${NACOS_NAMESPACE}
2026-08-19 16:24:02 +08:00
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
2026-09-29 18:47:37 +08:00
url: ${LASTLEG_DB_URL}
username: ${LASTLEG_DB_USERNAME}
password: ${LASTLEG_DB_PASSWORD}
2026-08-19 16:24:02 +08:00
management.endpoints.web.exposure.include: health,info,prometheus
2026-08-21 11:43:03 +08:00
lastleg:
dispatch-query-api:
enabled: ${LASTLEG_DISPATCH_QUERY_API_ENABLED:true}
smart-dispatch-api:
enabled: ${LASTLEG_SMART_DISPATCH_API_ENABLED:true}
2026-08-19 16:24:02 +08:00
baiyue:
2026-08-25 12:30:07 +08:00
http:
clients:
unload-photo-file:
connect-timeout: ${LASTLEG_UNLOAD_PHOTO_FILE_CONNECT_TIMEOUT:3s}
read-timeout: ${LASTLEG_UNLOAD_PHOTO_FILE_READ_TIMEOUT:30s}
relabel-photo-file:
connect-timeout: ${LASTLEG_RELABEL_PHOTO_FILE_CONNECT_TIMEOUT:3s}
read-timeout: ${LASTLEG_RELABEL_PHOTO_FILE_READ_TIMEOUT:30s}
2026-08-26 15:02:14 +08:00
customer-visit-file:
connect-timeout: ${LASTLEG_CUSTOMER_VISIT_FILE_CONNECT_TIMEOUT:3s}
read-timeout: ${LASTLEG_CUSTOMER_VISIT_FILE_READ_TIMEOUT:30s}
procurement-file:
connect-timeout: ${LASTLEG_PROCUREMENT_FILE_CONNECT_TIMEOUT:3s}
read-timeout: ${LASTLEG_PROCUREMENT_FILE_READ_TIMEOUT:30s}
2026-08-25 12:30:07 +08:00
warehouse-resource:
connect-timeout: ${LASTLEG_WAREHOUSE_RESOURCE_CONNECT_TIMEOUT:3s}
read-timeout: ${LASTLEG_WAREHOUSE_RESOURCE_READ_TIMEOUT:5s}
pallet-physical:
connect-timeout: ${LASTLEG_PALLET_PHYSICAL_CONNECT_TIMEOUT:3s}
read-timeout: ${LASTLEG_PALLET_PHYSICAL_READ_TIMEOUT:5s}
2026-09-15 13:36:58 +08:00
domestic-loading-evidence:
connect-timeout: ${LASTLEG_DOMESTIC_LOADING_EVIDENCE_CONNECT_TIMEOUT:3s}
read-timeout: ${LASTLEG_DOMESTIC_LOADING_EVIDENCE_READ_TIMEOUT:30s}
2026-08-20 18:02:38 +08:00
clients:
2026-09-11 10:09:06 +08:00
print:
url: ${PRINT_SERVICE_URL:}
2026-08-20 18:02:38 +08:00
domestic-warehouse:
url: ${DOMESTIC_WAREHOUSE_URL:}
cache-ttl: ${DOMESTIC_WAREHOUSE_CACHE_TTL:30m}
file:
2026-09-29 18:47:37 +08:00
url: ${FILE_SERVICE_URL:http://file:9206}
2026-09-15 13:36:58 +08:00
domestic-file:
2026-09-29 18:47:37 +08:00
url: ${FILE_SERVICE_URL:http://file:9206}
2026-08-20 18:02:38 +08:00
firstleg:
outbox-relay:
fixed-delay-ms: ${FIRSTLEG_OUTBOX_RELAY_FIXED_DELAY_MS:5000}
2026-08-19 16:24:02 +08:00
security:
internal-service-token: ${INTERNAL_SERVICE_TOKEN:}
2026-08-19 16:24:02 +08:00
jwt-mode: jwks
2026-09-29 17:55:54 +08:00
session-mode: redis
2026-08-19 16:24:02 +08:00
issuer: ${JWT_ISSUER:auth-service}
audience: ${JWT_AUDIENCE:lastleg-api}
2026-09-29 18:47:37 +08:00
jwk-set-uri: ${JWT_JWKS_URI:http://auth:9100/api/auth/.well-known/jwks.json}