How to disable http port in play framework?

后端 未结 2 970
时光说笑
时光说笑 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
    

提交回复
热议问题