Skip to content

Commit

Permalink
#32 : Fixed more Sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gazbert committed Apr 1, 2020
1 parent 8c87086 commit cc29fea
Showing 1 changed file with 1 addition and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,38 +158,5 @@ protected void configure(HttpSecurity httpSecurity) throws Exception {
// Disable page caching in the browser
httpSecurity.headers().cacheControl().disable();
}

// --------------------------------------------------------------------------
// TODO: Uncomment bean to redirect HTTP connections to HTTPS in Production
// --------------------------------------------------------------------------

// @Bean
// public EmbeddedServletContainerFactory servletContainer() {
//
// final TomcatEmbeddedServletContainerFactory tomcat = new
// TomcatEmbeddedServletContainerFactory() {
//
// @Override
// protected void postProcessContext(Context context) {
// final SecurityConstraint securityConstraint = new SecurityConstraint();
// securityConstraint.setUserConstraint("CONFIDENTIAL");
// final SecurityCollection collection = new SecurityCollection();
// collection.addPattern("/*");
// securityConstraint.addCollection(collection);
// context.addConstraint(securityConstraint);
// }
// };
//
// tomcat.addAdditionalTomcatConnectors(initiateHttpConnector());
// return tomcat;
// }
//
// private Connector initiateHttpConnector() {
// final Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
// connector.setScheme("http");
// connector.setPort(8080); // TODO: get ports from config
// connector.setSecure(false);
// connector.setRedirectPort(8443);
// return connector;
// }
}

0 comments on commit cc29fea

Please sign in to comment.