Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/java/goorm/ddok/ai/controller/AiTextController.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import goorm.ddok.ai.dto.response.AiTextResponse;
import goorm.ddok.ai.service.AiTextService;
import goorm.ddok.global.response.ApiResponseDto;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.*;
import org.springframework.security.access.prepost.PreAuthorize;
Expand All @@ -13,6 +14,7 @@
@RestController
@RequestMapping("/api")
@RequiredArgsConstructor
@Tag(name = "AI", description = "AI 텍스트 생성 API")
public class AiTextController {

private final AiTextService ai;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/goorm/ddok/global/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public CorsConfigurationSource corsConfigurationSource() {
// 개발/운영 환경별 허용 도메인 설정
configuration.setAllowedOriginPatterns(List.of(
"http://localhost:*", // 개발환경 (모든 포트)
"https://api.deepdirect.site" // 운영환경
"https://api.deepdirect.site", // 운영환경
"https://www.deepdirect.site" // 운영환경
));

// 허용할 HTTP 메서드
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/goorm/ddok/global/config/WebSocketConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
registry.addEndpoint("/ws/chats")
.setAllowedOriginPatterns("http://localhost:5173", "http://127.0.0.1:5173")
.setAllowedOriginPatterns("http://localhost:5173", "http://127.0.0.1:5173", "https://www.deepdirect.site")
.withSockJS();

registry.addEndpoint("/ws/chats-ws")
.setAllowedOriginPatterns("http://localhost:5173", "http://127.0.0.1:5173");
.setAllowedOriginPatterns("http://localhost:5173", "http://127.0.0.1:5173", "https://www.deepdirect.site");

registry.addEndpoint("/ws/notifications")
.setAllowedOriginPatterns("*");
.setAllowedOriginPatterns("http://localhost:5173", "http://127.0.0.1:5173", "https://www.deepdirect.site");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public RedirectView verifyEmail(
String email = emailVerificationService.findVerifiedEmailByCode(code);
if (result) authService.setEmailVerificationService(email);
RedirectView redirectView = new RedirectView();
redirectView.setUrl("http://localhost:5173/sign-in");
redirectView.setUrl("https://www.deepdirect.site/auth/signin");
return redirectView;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import java.time.Duration;
import java.time.Instant;
import java.time.LocalDateTime;
import java.util.Optional;
import java.util.UUID;

Expand All @@ -24,7 +23,7 @@ public class EmailVerificationService {
private final JavaMailSender javaMailSender;
private final EmailVerificationRepository emailVerificationRepository;

@Value("${app.base-url:http://localhost:8080}")
@Value("${app.base-url}")
private String baseUrl;

private static final Duration EMAIL_CODE_TTL = Duration.ofMinutes(10);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import goorm.ddok.global.response.ApiResponseDto;
import goorm.ddok.global.security.auth.CustomUserDetails;
import goorm.ddok.notification.service.NotificationActionService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
Expand All @@ -14,6 +15,7 @@
@RestController
@RequestMapping("/api/notifications")
@RequiredArgsConstructor
@Tag(name = "Notification", description = "수신함 API")
public class NotificationActionController {

private final NotificationActionService notificationActionService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import goorm.ddok.global.security.auth.CustomUserDetails;
import goorm.ddok.notification.dto.response.NotificationResponse;
import goorm.ddok.notification.service.NotificationQueryService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;
Expand All @@ -15,6 +16,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/notifications")
@Tag(name = "Notification", description = "수신함 API")
public class NotificationController {

private final NotificationQueryService notificationQueryService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import goorm.ddok.notification.service.NotificationApplicationService;
import goorm.ddok.notification.ws.NotificationActionMessage;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.messaging.handler.annotation.DestinationVariable;
import org.springframework.messaging.handler.annotation.MessageMapping;
Expand All @@ -11,6 +12,7 @@

@Controller
@RequiredArgsConstructor
@Tag(name = "Notification", description = "수신함 API")
public class NotificationMessageController {

private final NotificationApplicationService notificationApplicationService;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ ai:
model: HCX-005
studio-api-key: ${CLOVA_STUDIO_API_KEY}


app:
base-url: https://api.deepdirect.site
techstack:
defaults: Spring Boot, Spring Data JPA, Spring Security, Java, Kotlin, Python, Node.js, Express, JavaScript, TypeScript, React, Next.js, Vue.js, Angular, MySQL, PostgreSQL, Redis, MongoDB, Docker, Kubernetes, AWS, GitHub Actions, Go, Rust, C#, .NET, PHP, Ruby, Scala, Dart, C/C++, Spring WebFlux, Spring Cloud, Spring Batch, Hibernate, MyBatis, Micronaut, Quarkus, Vert.x, jOOQ, Maven, Gradle, NestJS, Fastify, Koa, Hapi, TypeORM, Prisma, Sequelize, Django, Flask, FastAPI, Celery, Svelte, SvelteKit, Nuxt.js, Remix, Astro, Tailwind CSS, SCSS, Vite, Webpack, Rollup, SWC, Babel, React Native, Flutter, SwiftUI, Jetpack Compose, Oracle, MariaDB, SQLite, Microsoft SQL Server, Cassandra, DynamoDB, Neo4j, ClickHouse, InfluxDB, TimescaleDB, OpenSearch, Meilisearch, Typesense, MinIO, Apache Kafka, RabbitMQ, NATS, Apache Pulsar, GraphQL, Apollo, gRPC, tRPC, NGINX, Traefik, Envoy, Kong, Prometheus, Grafana, Loki, ELK Stack, EFK Stack, OpenTelemetry, Jaeger, Zipkin, Sentry, Terraform, Ansible, Helm, Argo CD, Flux CD, Docker Compose, Jenkins, GitLab CI, CircleCI, GCP, Azure, Cloudflare, Vercel, Netlify, AWS Lambda, Cloud Run, Cloudflare Workers
Loading