mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-12 13:23:29 +00:00
Enable https in tutorial sample.
This commit is contained in:
parent
52c0ee6756
commit
e4ecdd55f6
@ -33,4 +33,14 @@ dependencies {
|
|||||||
|
|
||||||
jettyRun {
|
jettyRun {
|
||||||
contextPath = "/tutorial"
|
contextPath = "/tutorial"
|
||||||
|
|
||||||
|
def httpConnector = new org.mortbay.jetty.nio.SelectChannelConnector();
|
||||||
|
httpConnector.port = 8080
|
||||||
|
httpConnector.confidentialPort = 8443
|
||||||
|
def httpsConnector = new org.mortbay.jetty.security.SslSocketConnector();
|
||||||
|
httpsConnector.port = 8443
|
||||||
|
httpsConnector.keystore = httpsConnector.truststore = "$rootDir/samples/certificates/server.jks"
|
||||||
|
httpsConnector.keyPassword = httpsConnector.trustPassword = 'password'
|
||||||
|
|
||||||
|
connectors = [httpConnector, httpsConnector]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user