Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBaldsiefen committed Mar 26, 2020
2 parents 2c1027f + 6dd3e40 commit 669ec93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.coronavirus.imis;
package de.coronavirus.imis.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
Expand All @@ -23,6 +23,8 @@ protected void configure(HttpSecurity http) throws Exception {
.http(Integer.parseInt(environment.getProperty("server.http.port", "8080"))) // http port defined in yml config file
.mapsTo(Integer.parseInt(environment.getProperty("server.port", "443"))); // https port defined in yml config file

http.requiresChannel().anyRequest().requiresSecure();
http.requiresChannel()
.antMatchers("/actuator/health").requiresInsecure()
.anyRequest().requiresSecure();
}
}
2 changes: 2 additions & 0 deletions server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ spring:
---
spring:
profiles: development
autoconfigure:
exclude: org.springframework.cloud.gcp.autoconfigure.storage.GcpStorageAutoConfiguration
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/imis
Expand Down

0 comments on commit 669ec93

Please sign in to comment.