Skip to content

Repository files navigation

Finvibe Gateway

기본 Spring Cloud Gateway Server WebMVC 스캐폴드입니다.

포함된 예시

  • /api/auth/** -> http://localhost:8081/**
  • /api/core/** -> http://localhost:8082/**
  • /external/httpbin/** -> https://httpbin.org/**
  • /gateway/info -> 현재 게이트웨이 예시 라우트 정보 확인

실행

./gradlew bootRun

빠른 확인

curl http://localhost:8080/gateway/info
curl http://localhost:8080/external/httpbin/get

라우트 커스터마이징

src/main/resources/application.yml에서 백엔드 URL을 바꿀 수 있습니다.

finvibe:
  gateway:
    services:
      auth-url: http://localhost:9001
      core-url: http://localhost:9002

TokenFamily 검증

보호 경로(/api/**, 단 /api/auth/** 제외)는 JWT 서명/만료 검증 뒤에 token_family_id claim을 사용해 Redis에서 family 상태를 직접 조회합니다. 자세한 계약은 docs/JWT 인증.md를 참고합니다.

About

Finvibe Api Gateway 프로젝트입니다.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages