刘洪青 | 51768cb | 2019-09-08 10:06:17 +0800 | [diff] [blame] | 1 | server: |
| 2 | port: ${SERVER_PORT:8443} |
| 3 | ssl: |
| 4 | enabled: ${SSL_ENABLED:true} |
| 5 | clientAuth: NEED |
| 6 | key-store: ${SSL_KEYSTORE_FILE:file:/certs/server/server.keystore} |
| 7 | key-store-password: ${SSL_KEYSTORE_PASSWORD:} |
| 8 | trust-store: ${SSL_TRUSTSTORE_FILE:file:/certs/server/server.truststore} |
| 9 | trust-store-password: ${SSL_TRUSTSTORE_PASSWORD:} |
| 10 | tomcat: |
刘洪青 | 34125b2 | 2019-12-04 14:02:57 +0800 | [diff] [blame] | 11 | accept-count: ${SERVER_TOMCAT_ACCEPT_COUNT:100} |
| 12 | max-connections: ${SERVER_TOMCAT_MAX_CONNECTIONS:10000} |
| 13 | max-threads: ${SERVER_TOMCAT_MAX_THREADS:200} |
| 14 | min-spare-threads: ${SERVER_TOMCAT_MIN_SPARE_THREADS:10} |
刘洪青 | 51768cb | 2019-09-08 10:06:17 +0800 | [diff] [blame] | 15 | accesslog: |
| 16 | enabled: ${TOMCAT_ACCESSLOG_ENABLED:false} |
| 17 | buffered: ${TOMCAT_ACCESSLOG_BUFFERED:true} |
| 18 | directory: ${TOMCAT_ACCESSLOG_DIR:log} |
| 19 | prefix: ${TOMCAT_ACCESSLOG_PREFIX:sa-api-accesslog} |
| 20 | suffix: ${TOMCAT_ACCESSLOG_SUFFIX:.log} |
| 21 | file-date-format: ${TOMCAT_ACCESSLOG_FILE_DATE_FORMAT:.yyyy-MM-dd} |
| 22 | rotate: ${TOMCAT_ACCESSLOG_ROTATE:true} |
| 23 | |
| 24 | |
| 25 | ## |
| 26 | # logging |
| 27 | # |
| 28 | logging: |
| 29 | level: |
| 30 | root: INFO |
| 31 | com.supwisdom: INFO |
| 32 | |
| 33 | |
| 34 | spring: |
| 35 | jackson: |
| 36 | time-zone: ${JACKSON_TIME_ZONE:Asia/Shanghai} |
| 37 | |
刘洪青 | 51768cb | 2019-09-08 10:06:17 +0800 | [diff] [blame] | 38 | ## |
| 39 | # spring cloud gateway |
| 40 | # |
| 41 | cloud: |
| 42 | gateway: |
| 43 | metrics: |
| 44 | enabled: true |
| 45 | routes: |
| 46 | - id: bff-api |
刘洪青 | 9050bb2 | 2019-09-20 12:32:07 +0800 | [diff] [blame] | 47 | uri: ${SW_BACKEND_BFF_API_URI:https://sw-backend-admin-bff} |
刘洪青 | 51768cb | 2019-09-08 10:06:17 +0800 | [diff] [blame] | 48 | predicates: |
| 49 | - Path=/api/bff/** |
| 50 | filters: |
| 51 | - RewritePath=/api/bff/(?<suffix>.*), /$\{suffix} |
| 52 | - id: base-api |
| 53 | uri: ${SW_BACKEND_BASE_API_URI:https://sw-backend-admin-sa} |
| 54 | predicates: |
| 55 | - Path=/api/base/** |
| 56 | filters: |
| 57 | - RewritePath=/api/base/(?<suffix>.*), /$\{suffix} |
| 58 | - id: system-api |
| 59 | uri: ${SW_BACKEND_SYSTEM_API_URI:https://sw-backend-admin-sa} |
| 60 | predicates: |
| 61 | - Path=/api/system/** |
| 62 | filters: |
| 63 | - RewritePath=/api/system/(?<suffix>.*), /$\{suffix} |
| 64 | - id: biz-api |
刘洪青 | 9050bb2 | 2019-09-20 12:32:07 +0800 | [diff] [blame] | 65 | uri: ${SW_BACKEND_BIZ_API_URI:https://sw-backend-biz-sa} |
刘洪青 | 51768cb | 2019-09-08 10:06:17 +0800 | [diff] [blame] | 66 | predicates: |
| 67 | - Path=/api/biz/** |
| 68 | filters: |
| 69 | - RewritePath=/api/biz/(?<suffix>.*), /$\{suffix} |
| 70 | |
| 71 | |
| 72 | ## |
| 73 | # infras.online-doc |
| 74 | # |
| 75 | infras.online-doc.enabled: ${INFRAS_ONLINE_DOC_ENABLED:false} |
| 76 | infras.online-doc.md-docs.staitc.path: ${INFRAS_ONLINE_DOC_MD_DOCS_STATIC_PATH:/doc/} |
| 77 | infras.online-doc.api-docs.staitc.path: ${INFRAS_ONLINE_DOC_API_DOCS_STATIC_PATH:/api-docs/} |
| 78 | |
| 79 | |
| 80 | ## |
| 81 | # infras.security basic |
| 82 | # |
刘洪青 | 9050bb2 | 2019-09-20 12:32:07 +0800 | [diff] [blame] | 83 | infras.security.basic.reactive.enabled: ${INFRAS_SECURITY_BASIC_REACTIVE_ENABLED:true} |
刘洪青 | 51768cb | 2019-09-08 10:06:17 +0800 | [diff] [blame] | 84 | |
| 85 | |
| 86 | ## |
| 87 | # infras.security jwt |
| 88 | # |
刘洪青 | 9050bb2 | 2019-09-20 12:32:07 +0800 | [diff] [blame] | 89 | infras.security.jwt.enabled: ${INFRAS_SECURITY_JWT_REACTIVE_ENABLED:false} |
刘洪青 | 51768cb | 2019-09-08 10:06:17 +0800 | [diff] [blame] | 90 | |
| 91 | infras.security.jwt.public-key-pem: ${INFRAS_SECURITY_JWT_PUBLIC_KEY_PEM:} |
| 92 | infras.security.jwt.private-key-pem-pkcs8: ${INFRAS_SECURITY_JWT_PRIVATE_KEY_PEM_PKCS8:} |
| 93 | |
| 94 | |
| 95 | ## |
| 96 | # infras.security cas |
| 97 | # |
刘洪青 | 9050bb2 | 2019-09-20 12:32:07 +0800 | [diff] [blame] | 98 | infras.security.cas.enabled: ${INFRAS_SECURITY_CAS_REACTIVE_ENABLED:false} |
刘洪青 | 51768cb | 2019-09-08 10:06:17 +0800 | [diff] [blame] | 99 | |
| 100 | #应用访问地址 |
| 101 | app.server.host.url: ${APP_SERVER_HOST_URL:https://localhost:8443} |
| 102 | #应用登录地址 |
| 103 | app.login.url: ${APP_LOGIN_URL:/cas/login} |
| 104 | #应用登出地址 |
| 105 | app.logout.url: ${APP_LOGOUT_URL:/cas/logout} |
| 106 | |
| 107 | #CAS服务地址 |
| 108 | cas.server.host.url: ${CAS_SERVER_HOST_URL:https://cas-server/cas} |
刘洪青 | d3a55d4 | 2019-09-20 10:18:03 +0800 | [diff] [blame] | 109 | |
| 110 | |
刘洪青 | 773d4ab | 2019-10-11 13:41:46 +0800 | [diff] [blame] | 111 | ## |
| 112 | # 认证时,用户信息服务实现 |
| 113 | # memery 内存,用户名密码一致即可登录,测试用,默认; |
| 114 | # base 后端base服务; |
| 115 | # poa 开放平台服务,建议和cas一起使用) |
| 116 | sw-backend-gateway.security.core.userdetails.service.impl: ${SW_BACKEND_GATEWAY_SECURITY_CORE_USERDETAILS_SERVICE_IMPL:base} |
| 117 | |
| 118 | |
刘洪青 | d3a55d4 | 2019-09-20 10:18:03 +0800 | [diff] [blame] | 119 | sw-backend-base-api: |
| 120 | uri: ${SW_BACKEND_BASE_API_URI:https://sw-backend-admin-sa} |
| 121 | client-auth: |
刘洪青 | 0a3e430 | 2019-10-17 21:59:48 +0800 | [diff] [blame] | 122 | enabled: ${SW_BACKEND_BASE_API_CLIENT_AUTH_ENABLED:false} |
刘洪青 | d3a55d4 | 2019-09-20 10:18:03 +0800 | [diff] [blame] | 123 | key-password: ${SW_BACKEND_BASE_API_CLIENT_AUTH_KEY_PASSWORD:} |
| 124 | key-store: ${SW_BACKEND_BASE_API_CLIENT_AUTH_KEYSTORE_FILE:file:/certs/common/common.keystore} |
| 125 | key-store-password: ${SW_BACKEND_BASE_API_CLIENT_AUTH_KEYSTORE_PASSWORD:} |
| 126 | trust-store: ${SW_BACKEND_BASE_API_CLIENT_AUTH_TRUSTSTORE_FILE:file:/certs/common/common.truststore} |
| 127 | trust-store-password: ${SW_BACKEND_BASE_API_CLIENT_AUTH_TRUSTSTORE_PASSWORD:} |
刘洪青 | 773d4ab | 2019-10-11 13:41:46 +0800 | [diff] [blame] | 128 | |
| 129 | sw-backend-agent-poa: |
| 130 | uri: ${SW_BACKEND_AGENT_POA_URI:https://sw-backend-agent} |
| 131 | client-auth: |
刘洪青 | 0a3e430 | 2019-10-17 21:59:48 +0800 | [diff] [blame] | 132 | enabled: ${SW_BACKEND_AGENT_POA_CLIENT_AUTH_ENABLED:false} |
刘洪青 | 773d4ab | 2019-10-11 13:41:46 +0800 | [diff] [blame] | 133 | key-password: ${SW_BACKEND_AGENT_POA_CLIENT_AUTH_KEY_PASSWORD:} |
| 134 | key-store: ${SW_BACKEND_AGENT_POA_CLIENT_AUTH_KEYSTORE_FILE:file:/certs/common/common.keystore} |
| 135 | key-store-password: ${SW_BACKEND_AGENT_POA_CLIENT_AUTH_KEYSTORE_PASSWORD:} |
| 136 | trust-store: ${SW_BACKEND_AGENT_POA_CLIENT_AUTH_TRUSTSTORE_FILE:file:/certs/common/common.truststore} |
| 137 | trust-store-password: ${SW_BACKEND_AGENT_POA_CLIENT_AUTH_TRUSTSTORE_PASSWORD:} |