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