Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9aa199103d | ||
|
|
904bc60ed7 | ||
|
|
d5691e3081 | ||
|
|
538b1badec | ||
|
|
d34ca9aff2 |
@@ -80,12 +80,6 @@ steps:
|
||||
- chmod 600 $HOME/.ssh/known_hosts
|
||||
- ssh-keyscan -H git.2martens.de > $HOME/.ssh/known_hosts 2>/dev/null
|
||||
- ./gradlew -Prelease.useLastTag=true final jib
|
||||
- name: promote-staging
|
||||
image: danihodovic/drone-promote
|
||||
settings:
|
||||
drone_token:
|
||||
from_secret: drone_token
|
||||
target: production
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package de.twomartens.wahlrecht.configuration
|
||||
|
||||
import org.springframework.context.annotation.Bean
|
||||
import org.springframework.context.annotation.Configuration
|
||||
import org.springframework.web.filter.ForwardedHeaderFilter
|
||||
|
||||
@Configuration
|
||||
open class FilterConfiguration {
|
||||
@Bean
|
||||
open fun forwardedFilter(): ForwardedHeaderFilter {
|
||||
return ForwardedHeaderFilter()
|
||||
}
|
||||
}
|
||||
+8
-8
@@ -8,13 +8,13 @@ import java.time.Clock
|
||||
|
||||
@Configuration
|
||||
open class InterceptorConfiguration {
|
||||
@Bean
|
||||
open fun loggingInterceptorRest(clock: Clock): LoggingInterceptorRest {
|
||||
return LoggingInterceptorRest(clock)
|
||||
}
|
||||
@Bean
|
||||
open fun loggingInterceptorRest(clock: Clock): LoggingInterceptorRest {
|
||||
return LoggingInterceptorRest(clock)
|
||||
}
|
||||
|
||||
@Bean
|
||||
open fun headerInterceptorRest(): HeaderInterceptorRest {
|
||||
return HeaderInterceptorRest()
|
||||
}
|
||||
@Bean
|
||||
open fun headerInterceptorRest(): HeaderInterceptorRest {
|
||||
return HeaderInterceptorRest()
|
||||
}
|
||||
}
|
||||
-3
@@ -6,7 +6,6 @@ import io.swagger.v3.oas.annotations.security.OAuthFlows
|
||||
import io.swagger.v3.oas.annotations.security.SecurityScheme
|
||||
import io.swagger.v3.oas.models.OpenAPI
|
||||
import io.swagger.v3.oas.models.info.Info
|
||||
import io.swagger.v3.oas.models.servers.Server
|
||||
import org.springframework.beans.factory.annotation.Value
|
||||
import org.springframework.context.annotation.Bean
|
||||
import org.springframework.context.annotation.Configuration
|
||||
@@ -36,7 +35,5 @@ open class OpenApiConfiguration {
|
||||
.version(apiVersion)
|
||||
.description(apiDescription)
|
||||
)
|
||||
.addServersItem(Server().url("http://localhost:12000"))
|
||||
.addServersItem(Server().url("https://api.2martens.de"))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
server:
|
||||
port: 12000
|
||||
shutdown: graceful
|
||||
forward-headers-strategy: framework
|
||||
|
||||
### technical configurations ###
|
||||
management:
|
||||
|
||||
Reference in New Issue
Block a user