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
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@
<artifactId>micrometer-registry-prometheus</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-core</artifactId>
<version>2.2.20</version>
</dependency>
</dependencies>
<build>
<!-- read properties from the pom file and add them to the application.properties -->
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/phoebus/channelfinder/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import java.util.logging.Level;
import java.util.logging.Logger;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.servers.Server;
import org.phoebus.channelfinder.example.PopulateService;
import org.phoebus.channelfinder.processors.ChannelProcessor;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -38,6 +40,11 @@
@EnableAutoConfiguration
@ComponentScan(basePackages="org.phoebus.channelfinder")
@EnableScheduling
@OpenAPIDefinition(
servers = {
@Server(url = "/")
}
)
@SpringBootApplication
public class Application implements ApplicationRunner {

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ server.ssl.key-store=classpath:keystore/newcf.p12
server.ssl.key-store-password=password
server.ssl.key-alias=cf

security.require-ssl=true
security.require-ssl=false

server.compression.enabled=true
# opt in to content types
Expand Down
Loading