playframework icon indicating copy to clipboard operation
playframework copied to clipboard

Cannot disable Http Port

Open garylin opened this issue 6 years ago • 1 comments

Gradle play plugin does not have ability to disable http port

Expected Behavior Play (SBT) allows user to disable http port by passing the -Dhttp.port=disabled option (See: https://www.playframework.com/documentation/2.6.x/ConfiguringHttps#Turning-HTTP-off).

Current Behavior Current Gradle play plugin only takes Integer as the http.port number. (See: PlayRunAdapterV24X and PlayRunAdapterV26X).

In both implementation, play.core.server.DevServerStart.mainDevHttpMode method is used to start the play server.

If you look at play's DevServerStart api, it actually has one more method called mainDevOnlyHttpsMode which can be used to start play server in HTTPS only mode. You can see how this is done in play's Reloader.

Your Environment Play: 2.4 (the issue is applicable to later version)

garylin avatar Feb 01 '19 19:02 garylin

Thanks Gary! You're helping me on home projects now 😂

decoded4620 avatar Aug 25 '19 18:08 decoded4620