Skip to content

Commit

Permalink
feat: fix swagger for HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
edikgoose committed Dec 8, 2023
1 parent 3884ff2 commit 301a50b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package poga.parking.parkingservice

import io.swagger.v3.oas.annotations.OpenAPIDefinition
import io.swagger.v3.oas.annotations.servers.Server
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.boot.runApplication
import poga.parking.parkingservice.configuration.properties.PriceListProperties

@SpringBootApplication
@OpenAPIDefinition
@OpenAPIDefinition(servers = [Server(url = "https://api.pogaparking.ru", description = "Default Server URL")])
@ConfigurationPropertiesScan(basePackageClasses = [PriceListProperties::class])
class ParkingServiceApplication

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server:
port: 8080

forward-headers-strategy: framework
spring:
jpa:
database-platform: org.hibernate.dialect.PostgreSQLDialect
Expand Down

0 comments on commit 301a50b

Please sign in to comment.