Files
cadworld/cadworld-adminapi/src/main/resources/application.yml
T
2026-10-09 16:49:06 +08:00

72 lines
2.0 KiB
YAML

spring:
application:
name: cadworld-adminapi
profiles:
default: test
sql:
init:
mode: never
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
jackson:
default-property-inclusion: non_null
time-zone: Asia/Shanghai
lifecycle:
timeout-per-shutdown-phase: 30s
server:
port: ${SERVER_PORT:8992}
shutdown: graceful
compression:
enabled: true
min-response-size: 2KB
mybatis-plus:
configuration:
map-underscore-to-camel-case: true
springdoc:
api-docs:
path: /api-docs
swagger-ui:
path: /swagger-ui.html
app:
admin:
operator:
id: ${APP_ADMIN_OPERATOR_ID:0}
name: ${APP_ADMIN_OPERATOR_NAME:TEST_OPERATOR}
upload-session:
issuer: cadworld-upload
# Empty means a random, process-local signing key. Set a stable key for restarts/multiple instances.
secret: ${APP_UPLOAD_SESSION_SECRET:}
storage:
provider: ${APP_STORAGE_PROVIDER:minio}
urdf-prefix: components/urdf
cover-image-prefix: components/cover-images
public-api-base-url: ${APP_STORAGE_PUBLIC_API_BASE_URL:http://127.0.0.1:${SERVER_PORT:8992}}
public-base-url: ${APP_STORAGE_PUBLIC_BASE_URL:http://127.0.0.1:${SERVER_PORT:8992}/admin-api/component-assets}
local-root: ${APP_STORAGE_LOCAL_ROOT:./data/assets}
upload-session-ttl: PT30M
minio:
endpoint: ${APP_MINIO_ENDPOINT:}
access-key: ${APP_MINIO_ACCESS_KEY:}
secret-key: ${APP_MINIO_SECRET_KEY:}
bucket: ${APP_MINIO_BUCKET:}
interface-brep:
python: ${APP_INTERFACE_BREP_PYTHON:python3}
script: ${APP_INTERFACE_BREP_SCRIPT:classpath:scripts/step_brep_topology.py}
timeout-seconds: ${APP_INTERFACE_BREP_TIMEOUT_SECONDS:120}
max-upload-bytes: ${APP_INTERFACE_BREP_MAX_UPLOAD_BYTES:104857600}
max-output-bytes: ${APP_INTERFACE_BREP_MAX_OUTPUT_BYTES:104857600}
logging:
file:
path: ${LOG_PATH:logs}
level:
root: INFO
com.linkerbot.cadworld: INFO
org.springframework.web: INFO