Skip to content

Commit

Permalink
refactor: Swagger 요청을 https로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
0702Yoon committed Aug 10, 2024
1 parent 8263bdd commit c86d3c9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.servers.Server;
import java.util.List;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand All @@ -14,7 +16,11 @@ public OpenAPI customOpenAPI() {
return new OpenAPI()
.info(new Info().title("My API")
.version("1.0")
.description("My API Description"));
.description("My API Description"))
.servers(List.of(
new Server().url("https://api.mju-bigbrother.xyz") // HTTPS로 설정
.description("Production server")
));
}

@Bean
Expand Down

0 comments on commit c86d3c9

Please sign in to comment.