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

Commit

Permalink
fix server port
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSp committed Mar 26, 2020
1 parent 055ee01 commit e41cdfd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.portMapper()
.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(80) // http port defined in yml config file
.mapsTo(443); // https port defined in yml config file

http.requiresChannel()
.antMatchers("/actuator/health").requiresInsecure()
Expand Down

0 comments on commit e41cdfd

Please sign in to comment.