Skip to content

Instantly share code, notes, and snippets.

@ToastShaman
Last active August 29, 2015 14:00
Show Gist options
  • Save ToastShaman/11317560 to your computer and use it in GitHub Desktop.
Save ToastShaman/11317560 to your computer and use it in GitHub Desktop.
Run dropwizard with the SPDY module
#!/bin/bash
keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass password -validity 360 -keysize 2048
<properties>
<dropwizard.version>0.7.0</dropwizard.version>
</properties>
<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-core</artifactId>
<version>${dropwizard.version}</version>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-spdy</artifactId>
<version>${dropwizard.version}</version>
</dependency>
...
#!/bin/bash
# Download npn-boot from https://github.com/neuneu2k/jetty-npn for Java 8
java -Xbootclasspath/p:npn-boot-1.8.1.jar -jar target/<DROPWIZARD_APP>.jar server ./server.yml
server:
applicationConnectors:
- type: spdy3
port: 8443
keyStorePath: keystore.jks
keyStorePassword: password
validateCerts: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment