props.put("server.ssl.trust-store-password", trustStorePassword);\r
}\r
\r
+ String requireClientAuth = System.getenv("REQUIRE_CLIENT_AUTH");\r
+ if (requireClientAuth == null || requireClientAuth.isEmpty()) {\r
+ props.put("server.ssl.client-auth", "need");\r
+ }else {\r
+ props.put("server.ssl.client-auth", Boolean.valueOf(requireClientAuth)? "need" : "want");\r
+ }\r
+ \r
new Application().configure(new SpringApplicationBuilder(Application.class).properties(props)).run(args);\r
}\r
}\r