java-mall/mall-gateway/target/classes/application.yml
2025-03-04 23:41:16 +08:00

125 lines
4.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
port: 8201
spring:
cloud:
gateway:
discovery:
locator:
enabled: true
lower-case-service-id: true #使用小写service-id
routes: #配置路由路径
- id: mall-account
uri: lb://mall-account
predicates:
- Path=/admin/account/**, /account/**, /mobile/account/**
- id: mall-auth
uri: lb://mall-auth
predicates:
- Path=/mall-auth/**
filters:
- StripPrefix=1
- id: mall-admin
uri: lb://mall-admin
predicates:
- Path=/admin/admin/** ,/admin/oss/** ,/static/image/** ,/mobile/admin/**,/admin/static/**,/opt/apps/**
- id: mall-shop
uri: lb://mall-shop
predicates:
- Path=/admin/shop/**, /shop/**, /mobile/shop/**
- id: mall-pay
uri: lb://mall-pay
predicates:
- Path=/admin/pay/**, /pay/** , /mobile/pay/** , /card/pay/**
- id: mall-cms
uri: lb://mall-cms
predicates:
- Path=/admin/cms/**, /cms/**, /mobile/cms/**
- id: mall-sns
uri: lb://mall-sns
predicates:
- Path=/admin/sns/**, /sns/**, /mobile/sns/**
- id: mall-edu
uri: lb://mall-edu
predicates:
- Path=/admin/edu/**, /edu/**, /mobile/edu/**
- id: mall-im
uri: lb://mall-im
predicates:
- Path=/im/iim/**
- id: mall-search
uri: lb://mall-search
predicates:
- Path=/esProduct/**
secure:
ignore:
urls: #配置白名单路径
- "/doc.html"
- "/swagger-resources/**"
- "/swagger/**"
- "/static/**"
- "/**/v2/api-docs"
- "/**/*.js"
- "/**/*.css"
- "/**/*.png"
- "/**/*.ico"
- "/webjars/springfox-swagger-ui/**"
# - "/actuator/**"
- "/mall-auth/oauth/token"
- "/mall-auth/rsa/publicKey"
- "/admin/account/account-user-base/register"
- "/admin/account/account-user-base/login"
- "/static/image/**"
- "/mobile/pay/index/notify_url"
#- "/mobile/pay/index/lkl_wxPay_notify_url" #拉卡拉微信支付回调
- "/mobile/pay/index/return_url"
- "/shop/static/**"
- "/mobile/shop/qrcode/getQrcode"
- "/admin/shop/shop-base-config/image"
- "/admin/account/account-user-base/doLogin"
- "/admin/pay/pay-user-resource/userInfoImport"
- "/admin/pay/pay-card-history/payCardHistoryImport"
- "/admin/shop/shop-purchase-invoice/impPurchaseInvoiceTemp"
- "/admin/shop/shop-product-base/impProductTemp"
- "/admin/pay/payController/wxRefundNotify"
- "/shop/sf-express/cancel-order/notify"
- "/shop/sf-express/rider-order-status/notify"
- "/shop/sf-express/order-complete/notify"
- "/shop/sync/third/**"
- "/mobile/shop/sf-express/order/status/listening/**"
- "/admin/shop/open/**"
- "/admin/account/open/**"
- "/esProduct/**"
- "/admin/oss/upload/**"
- "/mobile/**/**/test/case"
universal:
urls:
- "/admin/account/account-user-base/info"
- "/admin/oss/**"
- "/admin/shop/shop-page-base/getDataInfo"
- "/admin/shop/shop-page-app/editApp"
- "/im/iim/chatHistory/**"
- "/esProduct/**"
config:
xss:
whiteUrls:
- url: /admin/account/account-user-base/doLogin
method: POST
- url: /admin/shop/shop-base-config/image
method: GET
- url: /admin/oss/**
method: POST
management: #开启SpringBoot Admin的监控
endpoints:
web:
exposure:
include: "*" # 暴露xxx端点如需暴露多个用,分隔;如需暴露所有端点,用'*'
enabled-by-default: false
endpoint:
health:
show-details: ALWAYS # 是否展示健康检查详情
info: # info信息会显示到SpringBootAdmin的server端这里取的是pom文件中的数据
version: 1.0-SNAPSHOT
groupId: com.suisung.mall
artifactId: mall-gateway