刘洪青 | e071d36 | 2019-08-16 09:39:49 +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 | |
刘洪青 | dedcdf7 | 2019-09-05 13:47:27 +0800 | [diff] [blame^] | 30 | spring: |
| 31 | jackson: |
| 32 | time-zone: ${JACKSON_TIME_ZONE:Asia/Shanghai} |
| 33 | |
| 34 | |
| 35 | ## |
| 36 | # spring cloud gateway |
| 37 | # |
| 38 | cloud: |
| 39 | gateway: |
| 40 | metrics: |
| 41 | enabled: true |
| 42 | routes: |
| 43 | - id: aggr-api |
| 44 | uri: ${SW_BACKEND_AGGR_API_URI:https://sw-backend-admin-aggr} |
| 45 | predicates: |
| 46 | - Path=/api/aggr/** |
| 47 | filters: |
| 48 | - RewritePath=/api/aggr/(?<suffix>.*), /$\{suffix} |
| 49 | - id: base-api |
| 50 | uri: ${SW_BACKEND_BASE_API_URI:https://sw-backend-admin-sa} |
| 51 | predicates: |
| 52 | - Path=/api/base/** |
| 53 | filters: |
| 54 | - RewritePath=/api/base/(?<suffix>.*), /$\{suffix} |
| 55 | - id: system-api |
| 56 | uri: ${SW_BACKEND_SYSTEM_API_URI:https://sw-backend-admin-sa} |
| 57 | predicates: |
| 58 | - Path=/api/system/** |
| 59 | filters: |
| 60 | - RewritePath=/api/system/(?<suffix>.*), /$\{suffix} |
| 61 | - id: biz-api |
| 62 | uri: ${SW_BACKEND_BIZ_API_URI:https://sw-backend-admin-sa} |
| 63 | predicates: |
| 64 | - Path=/api/biz/** |
| 65 | filters: |
| 66 | - RewritePath=/api/biz/(?<suffix>.*), /$\{suffix} |
| 67 | |
| 68 | |
刘洪青 | e071d36 | 2019-08-16 09:39:49 +0800 | [diff] [blame] | 69 | ## |
| 70 | # infras.online-doc |
| 71 | # |
| 72 | infras.online-doc.enabled: ${INFRAS_ONLINE_DOC_ENABLED:false} |
| 73 | infras.online-doc.md-docs.staitc.path: ${INFRAS_ONLINE_DOC_MD_DOCS_STATIC_PATH:/doc/} |
| 74 | infras.online-doc.api-docs.staitc.path: ${INFRAS_ONLINE_DOC_API_DOCS_STATIC_PATH:/api-docs/} |
| 75 | |
| 76 | |
| 77 | ## |
| 78 | # infras.security basic |
| 79 | # |
| 80 | infras.security.basic.enabled: ${INFRAS_SECURITY_BASIC_ENABLED:true} |
| 81 | |
| 82 | |
| 83 | ## |
| 84 | # infras.security jwt |
| 85 | # |
| 86 | infras.security.jwt.enabled: ${INFRAS_SECURITY_JWT_ENABLED:false} |
| 87 | |
| 88 | infras.security.jwt.public-key-pem: ${INFRAS_SECURITY_JWT_PUBLIC_KEY_PEM:} |
| 89 | infras.security.jwt.private-key-pem-pkcs8: ${INFRAS_SECURITY_JWT_PRIVATE_KEY_PEM_PKCS8:} |
| 90 | |
| 91 | |
| 92 | ## |
| 93 | # infras.security cas |
| 94 | # |
| 95 | infras.security.cas.enabled: ${INFRAS_SECURITY_CAS_ENABLED:false} |
| 96 | |
| 97 | #应用访问地址 |
| 98 | app.server.host.url: ${APP_SERVER_HOST_URL:https://localhost:8443} |
| 99 | #应用登录地址 |
| 100 | app.login.url: ${APP_LOGIN_URL:/cas/login} |
| 101 | #应用登出地址 |
| 102 | app.logout.url: ${APP_LOGOUT_URL:/cas/logout} |
| 103 | |
| 104 | #CAS服务地址 |
| 105 | cas.server.host.url: ${CAS_SERVER_HOST_URL:https://cas-server/cas} |