问题
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