242 lines
7.5 KiB
YAML
242 lines
7.5 KiB
YAML
spring:
|
||
cloud:
|
||
gateway:
|
||
default-filters:
|
||
- DedupeResponseHeader=Access-Control-Allow-Origin Access-Control-Allow-Credentials, RETAIN_LAST
|
||
globalcors:
|
||
add-to-simple-url-handler-mapping: true,
|
||
cors-configurations:
|
||
'[/**]':
|
||
allowedOrigins: "*"
|
||
allowedHeaders: "*"
|
||
allowedMethods: "*"
|
||
maxAge: 360000
|
||
routes:
|
||
- id: service-auth
|
||
uri: ${LIKEI_GATEWAY_ROUTE_AUTH_URI}
|
||
predicates:
|
||
- Path=/auth/**
|
||
filters:
|
||
- StripPrefix=1
|
||
|
||
- id: service-external
|
||
uri: ${LIKEI_GATEWAY_ROUTE_EXTERNAL_URI}
|
||
predicates:
|
||
- Path=/external/**
|
||
filters:
|
||
- StripPrefix=1
|
||
|
||
- id: service-order
|
||
uri: ${LIKEI_GATEWAY_ROUTE_ORDER_URI}
|
||
predicates:
|
||
- Path=/order/**
|
||
filters:
|
||
- StripPrefix=1
|
||
|
||
- id: service-wallet
|
||
uri: ${LIKEI_GATEWAY_ROUTE_WALLET_URI}
|
||
predicates:
|
||
- Path=/wallet/**
|
||
filters:
|
||
- StripPrefix=1
|
||
|
||
- id: service-live
|
||
uri: ${LIKEI_GATEWAY_ROUTE_LIVE_URI}
|
||
predicates:
|
||
- Path=/live/**
|
||
filters:
|
||
- StripPrefix=1
|
||
|
||
- id: invite-campaign-public
|
||
uri: ${LIKEI_GATEWAY_ROUTE_INVITE_PUBLIC_URI}
|
||
predicates:
|
||
- Path=/public/h5/invite-campaign/**
|
||
|
||
- id: invite-campaign-app
|
||
uri: ${LIKEI_GATEWAY_ROUTE_INVITE_APP_URI}
|
||
predicates:
|
||
- Path=/app/h5/invite-campaign/**
|
||
|
||
- id: register-reward-app
|
||
uri: ${LIKEI_GATEWAY_ROUTE_REGISTER_REWARD_APP_URI}
|
||
predicates:
|
||
- Path=/app/register-reward/**
|
||
|
||
- id: go-service
|
||
uri: ${LIKEI_GATEWAY_ROUTE_GO_URI}
|
||
predicates:
|
||
- Path=/go/**
|
||
filters:
|
||
- StripPrefix=1
|
||
|
||
- id: invite-campaign-internal
|
||
uri: ${LIKEI_GATEWAY_ROUTE_INVITE_INTERNAL_URI}
|
||
predicates:
|
||
- Path=/internal/invite-campaign/**
|
||
|
||
- id: game-app
|
||
uri: ${LIKEI_GATEWAY_ROUTE_GAME_APP_URI}
|
||
predicates:
|
||
- Path=/app/game/**
|
||
|
||
- id: game-internal
|
||
uri: ${LIKEI_GATEWAY_ROUTE_GAME_INTERNAL_URI}
|
||
predicates:
|
||
- Path=/internal/game/baishun/**
|
||
|
||
- id: game-baishun-callback
|
||
uri: ${LIKEI_GATEWAY_ROUTE_GAME_BAISHUN_URI}
|
||
predicates:
|
||
- Path=/game/baishun/**
|
||
|
||
- id: game-open-callback
|
||
uri: ${LIKEI_GATEWAY_ROUTE_GO_URI}
|
||
predicates:
|
||
- Path=/game/open/**
|
||
|
||
- id: service-gateway
|
||
uri: ${LIKEI_GATEWAY_ROUTE_FORWARD_URI}
|
||
predicates:
|
||
- Header=Req-Likei, true
|
||
filters:
|
||
- name: ForwardRoute
|
||
args:
|
||
aesKey: ${LIKEI_GATEWAY_FORWARD_ROUTE_AES_KEY}
|
||
|
||
- id: service-order-notice
|
||
uri: ${LIKEI_GATEWAY_ROUTE_ORDER_URI}
|
||
predicates:
|
||
- Path=/play-server-notice/**
|
||
|
||
- id: console-go-service
|
||
uri: http://10.2.1.16:2900
|
||
order: -20
|
||
predicates:
|
||
- Path=/console/go/**
|
||
filters:
|
||
- StripPrefix=2
|
||
|
||
- id: service-console
|
||
uri: http://10.2.1.16:2700
|
||
order: -10
|
||
predicates:
|
||
- Path=/console,/console/**
|
||
|
||
- id: service-other
|
||
uri: ${LIKEI_GATEWAY_ROUTE_OTHER_URI}
|
||
predicates:
|
||
- Path=/**
|
||
gateway:
|
||
ignorePaths:
|
||
- /token/logout
|
||
- /account/create
|
||
- /account/login/**/*
|
||
- /account/login
|
||
- /console/go
|
||
- /console/go/**
|
||
- /console/account/login/**/*
|
||
- /console/account/login
|
||
- /console/**
|
||
- /account/forget-pwd-reset
|
||
- /user/user-profile/open-search
|
||
- /party3rd/tencent/cloud/im/callback
|
||
- /party3rd/tencent/cloud/trtc/callback
|
||
- /sys/config/enum/config
|
||
- /user/device/check-available
|
||
- /user/login/logger
|
||
- /activity/birthday/icon/map
|
||
# - /wallet/gold/**
|
||
- /open-other-test/**
|
||
- /open-console-test/**
|
||
- /sys/config/country
|
||
# Apple 审核游客模式:只开放首页展示所需的只读接口,进房接口仍要求 token。
|
||
- /sys/config/banner
|
||
- /room/live-voice/discovery
|
||
- /room/live-voice/search
|
||
- /room/profile/specific
|
||
- /activity/leaderboard/appLeaderboard
|
||
- /sys/config/banner/start-page
|
||
- /oss/sts
|
||
- /oss/upload
|
||
- /oss/local/**
|
||
- /external/oss/local/**
|
||
- /sys/feedback/not/check/upload
|
||
- /sms/code
|
||
- /pray
|
||
- /pray/below
|
||
- /pray/list
|
||
- /mic/agora/callback
|
||
- /game/hkys/**/*
|
||
- /game/lxwl/**/*
|
||
- /game/hot/**/*
|
||
- /game/open/**/*
|
||
- /game/baishun/**/*
|
||
- /game/test/bet
|
||
- /room-setting/client/restapi/**/*
|
||
- /auth/account-login
|
||
- /token/check/account/login
|
||
- /play-server-notice/**
|
||
- /user/invite/new/user/invite/people
|
||
- /user/invite/new/user/withdrawn/users/log
|
||
- /product/apple/config
|
||
- /game/sud/**
|
||
- /web/pay/**
|
||
- /order/web/pay/**
|
||
- /external/oss/upload
|
||
- /telegram/webhook
|
||
- /account/create/getRegion
|
||
- /app/boot/checkLogin
|
||
# king-queen
|
||
- /activity/king-queen/**
|
||
# week-star
|
||
- /activity/week-star/**
|
||
- /go/public/**
|
||
- /public/h5/week-star/**
|
||
# room-turnover-reward
|
||
- /go/public/h5/room-turnover-reward/**
|
||
- /public/h5/room-turnover-reward/**
|
||
- /go/app/h5/room-turnover-reward/**
|
||
- /app/h5/room-turnover-reward/**
|
||
- /go/resident-activity/room-turnover-reward/**
|
||
- /resident-activity/room-turnover-reward/**
|
||
- /go/resident-activity/register-reward/**
|
||
- /resident-activity/register-reward/**
|
||
- /go/resident-activity/specified-gift-weekly-rank/**
|
||
- /resident-activity/specified-gift-weekly-rank/**
|
||
- /go/resident-activity/week-star/**
|
||
- /getUserInfo
|
||
- /go/getUserInfo
|
||
- /updateBalance
|
||
- /go/updateBalance
|
||
- /game/hotgame/**
|
||
- /go/game/hotgame/**
|
||
- /resident-activity/week-star/**
|
||
- /resident-activity/sign-in-reward/**
|
||
- /resident-activity/vip/**
|
||
- /resident-activity/recharge-reward/**
|
||
- /resident-activity/task-center/**
|
||
# console-go 会先 StripPrefix=2;这里只绕过 Gateway 的 App Token 校验,Go 仍会校验 Console Token 与菜单权限。
|
||
- /resident-activity/game-king/**
|
||
- /resident-activity/yumi-gift-challenge/**
|
||
- /resident-activity/voice-room-red-packet/**
|
||
- /resident-activity/voice-room-rocket/**
|
||
- /resident-activity/wheel/**
|
||
- /resident-activity/smash-golden-egg/**
|
||
- /operate/hotgame-game/**
|
||
- /operate/baishun-game/**
|
||
- /operate/lingxian-game/**
|
||
- /app-system/home-popups/**
|
||
- /app-system/error-logs/**
|
||
- /region/config/im-groups/**
|
||
- /payment/binance/**
|
||
- /props/store/**
|
||
# leaderboard
|
||
- /activity/leaderboard/gifts-send
|
||
- /activity/leaderboard/gifts-received
|
||
- /activity/leaderboard/room-gifts
|
||
# version_manage
|
||
- /sys/version/manage/latest/review
|
||
- /game/yomi/**
|
||
- /public/h5/invite-campaign/**
|
||
forward-aes-key: ${LIKEI_GATEWAY_FORWARD_AES_KEY}
|