public class Launcher {
public static void main(String[] args) throws Exception {
+ System.setProperty("jdk.tls.ephemeralDHKeySize", "4096");
+ boot();
+ }
+
+ public static void boot() throws Exception {
Locale.setDefault(Locale.ENGLISH);
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
+
GigiConfig conf = GigiConfig.parse(System.in);
ServerConstants.init(conf.getMainProps());
initEmails(conf);
Log.getLogger(Launcher.class).warn("Couldn't set uid!");
}
}
+ if (conf.getMainProps().containsKey("testrunner")) {
+ DevelLauncher.addDevelPage();
+ }
}
private static ServerConnector createConnector(GigiConfig conf, Server s, HttpConfiguration httpConfig, boolean doHttps) throws GeneralSecurityException, IOException {
if (doHttps) {
connector = new ServerConnector(s, createConnectionFactory(conf), new HttpConnectionFactory(httpConfig));
} else {
- connector = new ServerConnector(s);
+ connector = new ServerConnector(s, new HttpConnectionFactory(httpConfig));
}
connector.setHost(conf.getMainProps().getProperty("host"));
if (doHttps) {
scf.setRenegotiationAllowed(false);
scf.setProtocol("TLS");
+ scf.setIncludeProtocols("TLSv1", "TLSv1.1", "TLSv1.2");
scf.setTrustStore(conf.getTrustStore());
KeyStore privateStore = conf.getPrivateStore();
scf.setKeyStorePassword(conf.getPrivateStorePw());