3.0.0.M1 how to run on https connection

夙愿已清 提交于 2019-12-24 02:42:28

问题


Trying Grails 3.0.0.M1, a lot has changed!

How would I run-app --https and how would I configure it that way also for the production-environment-war?

Many thanks!


回答1:


First of all, Grails 3.0.0.M1 is not production ready, if thinking about making the move.

Major changes for Grails 3 include:

  • Built on top of Spring Boot
  • Introduction of Gradle as the build system
  • And many more (which is not relevant to this question)

In order to setup SSL for Spring Boot app, server.ssl.* setting has to be added to application.properties or application.yml file.

In Grails 3 it would correspond to application.yml under grails-app/conf. Below changes (as an example) would be required:

server:
  port: 8443
  ssl:
    key-store: classpath:keystore.jks
    key-store-password: secret
    key-password: another-secret

which is equivalent to Configuring SSL in Spring Boot.

However, documentation is limited right now and is being worked on. So let Grails 3 brew more until its GA where it can be used in production environment.

Grails community will be more than happy if any issues/problems/enhancement is reported in Grails JIRA



来源:https://stackoverflow.com/questions/28303263/3-0-0-m1-how-to-run-on-https-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!