How to disable http port in play framework?

后端 未结 2 971
时光说笑
时光说笑 2021-01-04 20:28

When I run Play Framework using https port, application starts on two ports - default (9000) and https (443). How to disabled default 9000 port and run the Play application

相关标签:
2条回答
  • 2021-01-04 20:41

    Try using the http.port=disabled flag

    play -Dhttp.port=disabled -Dhttps.port=443 -Dhttps.keyStore=/path/to/keystore -Dhttps.keyStorePassword=password start
    
    0 讨论(0)
  • 2021-01-04 20:47

    Unfortunately this can't be done in the same way in the Gradle Play Plugin, See: https://github.com/gradle/playframework/issues/85

    0 讨论(0)
提交回复
热议问题