Last active
August 29, 2015 14:00
-
-
Save ToastShaman/11317560 to your computer and use it in GitHub Desktop.
Run dropwizard with the SPDY module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass password -validity 360 -keysize 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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