39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
server:
|
|
port: ${PRINT_PORT:9207}
|
|
spring:
|
|
profiles:
|
|
active: ${SPRING_PROFILES_ACTIVE:dev}
|
|
application:
|
|
name: print-service
|
|
config:
|
|
import:
|
|
- optional:nacos:baiyue-common.yml?group=BAIYUE&refreshEnabled=true
|
|
- optional:nacos:${spring.application.name}.yml?group=BAIYUE&refreshEnabled=true
|
|
cloud:
|
|
nacos:
|
|
server-addr: ${NACOS_SERVER_ADDR:127.0.0.1:8848}
|
|
username: ${NACOS_USERNAME:nacos}
|
|
password: ${NACOS_PASSWORD:nacos}
|
|
discovery:
|
|
enabled: ${NACOS_DISCOVERY_ENABLED:true}
|
|
register-enabled: ${NACOS_REGISTER_ENABLED:true}
|
|
group: ${NACOS_GROUP:BAIYUE}
|
|
namespace: ${NACOS_NAMESPACE:public}
|
|
config.namespace: ${NACOS_NAMESPACE:public}
|
|
baiyue:
|
|
security:
|
|
jwt-secret: ${JWT_SECRET:change-me-to-at-least-32-bytes-long-before-start}
|
|
internal-service-token: ${INTERNAL_SERVICE_TOKEN:}
|
|
print:
|
|
pdf:
|
|
max-pages: ${PRINT_PDF_MAX_PAGES:2000}
|
|
max-request-bytes: ${PRINT_PDF_MAX_REQUEST_BYTES:2097152}
|
|
max-output-bytes: ${PRINT_PDF_MAX_OUTPUT_BYTES:33554432}
|
|
max-concurrent-generations: ${PRINT_PDF_MAX_CONCURRENT_GENERATIONS:4}
|
|
acquire-timeout: ${PRINT_PDF_ACQUIRE_TIMEOUT:1s}
|
|
template-code: INBOUND_MARK_V1
|
|
supported-width-mm: 100
|
|
supported-height-mm: 100
|
|
font-resource: fonts/NotoSansSC-Bold.ttf
|
|
management.endpoints.web.exposure.include: health,info,prometheus
|