106 lines
3.8 KiB
YAML
106 lines
3.8 KiB
YAML
spring:
|
|
application:
|
|
name: unis-crm-backend
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 500MB
|
|
max-request-size: 600MB
|
|
datasource:
|
|
url: jdbc:postgresql://192.168.124.202:5432/unis_crm
|
|
username: postgres
|
|
password: unis@123
|
|
driver-class-name: org.postgresql.Driver
|
|
data:
|
|
redis:
|
|
host: 192.168.124.202
|
|
port: 6379
|
|
password: zghz@123
|
|
database: 12
|
|
|
|
mybatis-plus:
|
|
mapper-locations: classpath*:/mapper/**/*.xml
|
|
type-aliases-package: com.unis.crm.dto.dashboard
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
logging:
|
|
level:
|
|
com.unis.crm: info
|
|
|
|
unisbase:
|
|
log:
|
|
enabled: true
|
|
web:
|
|
auth-endpoints-enabled: true
|
|
management-endpoints-enabled: true
|
|
security:
|
|
enabled: true
|
|
mode: embedded
|
|
jwt-secret: change-me-please-change-me-32bytes
|
|
auth-header: Authorization
|
|
token-prefix: "Bearer "
|
|
permit-all-urls:
|
|
- /actuator/health
|
|
- /api/wecom/sso/**
|
|
- /api/opportunities/integration/**
|
|
internal-auth:
|
|
enabled: true
|
|
secret: f0eb247f84db4e328fb27ce8ff6e7be96e73a53a7e9c4793395ad10d999e0d77
|
|
header-name: X-Internal-Secret
|
|
app:
|
|
upload-path: /Users/kangwenjing/Downloads/crm/uploads
|
|
resource-prefix: /sys/api/static/
|
|
tencent-map:
|
|
key: ${TENCENT_MAP_KEY:LJYBZ-HCQCV-N37PU-5FIOX-QFA26-FPB6U}
|
|
captcha:
|
|
ttl-seconds: 120
|
|
max-attempts: 5
|
|
token:
|
|
access-default-minutes: 10080
|
|
refresh-default-days: 7
|
|
wecom:
|
|
enabled: ${WECOM_ENABLED:false}
|
|
corp-id: ${WECOM_CORP_ID:ww249648b2f76c3ba5}
|
|
agent-id: ${WECOM_AGENT_ID:1000108}
|
|
secret: ${WECOM_SECRET:ngv-x4X1Epy5KcL85B7nhzY-qQkA4FnId9ZZ7Z3s3lQ}
|
|
redirect-uri: ${WECOM_REDIRECT_URI:https://crm.unissense.top/api/wecom/sso/callback}
|
|
frontend-callback-path: ${WECOM_FRONTEND_CALLBACK_PATH:/login/wecom}
|
|
scope: ${WECOM_SCOPE:snsapi_base}
|
|
state-ttl-seconds: 300
|
|
ticket-ttl-seconds: 180
|
|
access-token-safety-seconds: 120
|
|
oms:
|
|
enabled: ${OMS_ENABLED:true}
|
|
base-url: ${OMS_BASE_URL:http://192.168.124.202:28081}
|
|
api-key: ${OMS_API_KEY:c7f858d0-30b8-4b7f-9ea1-0ccf5ceb1c54}
|
|
api-key-header: ${OMS_API_KEY_HEADER:apiKey}
|
|
user-info-path: ${OMS_USER_INFO_PATH:/api/v1/user/info}
|
|
user-add-path: ${OMS_USER_ADD_PATH:/api/v1/user/add}
|
|
project-add-path: ${OMS_PROJECT_ADD_PATH:/api/v1/project/add}
|
|
pre-sales-role-name: ${OMS_PRE_SALES_ROLE_NAME:售前}
|
|
connect-timeout-seconds: ${OMS_CONNECT_TIMEOUT_SECONDS:5}
|
|
read-timeout-seconds: ${OMS_READ_TIMEOUT_SECONDS:15}
|
|
work-report:
|
|
daily-report:
|
|
# 未命中下方任何角色配置时,是否默认要求日报使用 # 选择并关联对象。
|
|
required-by-default: false
|
|
# 明确要求使用 # 选择并关联对象的角色编码;命中后优先级高于 optional-role-codes。
|
|
required-role-codes: [crm_xs]
|
|
# 允许不使用 #,可直接填写文字日报的角色编码。
|
|
optional-role-codes: []
|
|
notify-users:
|
|
# 未命中下方任何角色配置时,是否默认显示“选择通知用户”按钮。
|
|
visible-by-default: true
|
|
# 明确显示“选择通知用户”按钮的角色编码。
|
|
visible-role-codes: []
|
|
# 明确隐藏“选择通知用户”按钮的角色编码;命中后优先级高于 visible-role-codes。
|
|
hidden-role-codes: []
|
|
attachments:
|
|
# 未命中下方任何角色配置时,是否默认显示日报附件功能。
|
|
visible-by-default: true
|
|
# 明确显示日报附件功能的角色编码。
|
|
visible-role-codes: []
|
|
# 明确隐藏日报附件功能的角色编码;命中后优先级高于 visible-role-codes。
|
|
hidden-role-codes: [crm_xs]
|