Merge branch 'main' of https://github.com/won-ktds/smarketing-backend into poster-content

This commit is contained in:
yuhalog 2025-06-18 11:00:22 +09:00
commit cf1a586189
2 changed files with 19 additions and 9 deletions

View File

@ -45,7 +45,14 @@ public class SecurityConfig {
.authorizeHttpRequests(auth -> auth .authorizeHttpRequests(auth -> auth
.requestMatchers("/api/auth/**", "/api/member/register", "/api/member/check-duplicate/**", .requestMatchers("/api/auth/**", "/api/member/register", "/api/member/check-duplicate/**",
"/api/member/validate-password", "/swagger-ui/**", "/v3/api-docs/**", "/api/member/validate-password", "/swagger-ui/**", "/v3/api-docs/**",
"/swagger-resources/**", "/webjars/**", "/actuator/**", "/health/**", "/error").permitAll() "/swagger-resources/**", "/webjars/**", "/actuator/**", "/health/**", "/error"
).permitAll()
// Rewrite된 경로들 허용 (새로 추가!)
.requestMatchers("/login", "/register", "/auth/**").permitAll() // Member 서비스
.requestMatchers("/stores", "/stores/**").permitAll() // Store 서비스
.requestMatchers("/content", "/content/**").permitAll() // Content 서비스
.requestMatchers("/recommend", "/recommend/**").permitAll() // AI Recommend 서비스
.anyRequest().authenticated() .anyRequest().authenticated()
) )
.addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class); .addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);

View File

@ -469,35 +469,38 @@ metadata:
namespace: ${namespace} namespace: ${namespace}
annotations: annotations:
kubernetes.io/ingress.class: nginx kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules:
- host: smarketing.20.249.184.228.nip.io - host: smarketing.20.249.184.228.nip.io
http: http:
paths: paths:
- path: /api/auth - path: /api/auth(/|$)(.*)
pathType: Prefix pathType: ImplementationSpecific
backend: backend:
service: service:
name: member name: member
port: port:
number: 80 number: 80
- path: /api/store - path: /api/store(/|$)(.*)
pathType: Prefix pathType: ImplementationSpecific
backend: backend:
service: service:
name: store name: store
port: port:
number: 80 number: 80
- path: /api/content - path: /api/content(/|$)(.*)
pathType: Prefix pathType: ImplementationSpecific
backend: backend:
service: service:
name: marketing-content name: marketing-content
port: port:
number: 80 number: 80
- path: /api/recommend - path: /api/recommend(/|$)(.*)
pathType: Prefix pathType: ImplementationSpecific
backend: backend:
service: service:
name: ai-recommend name: ai-recommend