3.0.0.M1如何在https连接上运行 [英] 3.0.0.M1 how to run on https connection

查看:93
本文介绍了3.0.0.M1如何在https连接上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试Grails 3.0.0.M1,很多已经改变!



我将如何 run-app --https 我怎么配置它,这样的生产环境战争?

h2_lin>解决方案

首先,如果考虑进行移动,Grails 3.0.0.M1是 not 生产准备好的。



Grails 3的主要变化包括:


  • 建立在Spring Boot之上

  • 引入Gradle作为构建系统

  • 还有更多(与此问题无关)



为了为Spring Boot应用程序设置SSL,必须将 server.ssl。* 设置添加到 application.properties application.yml 文件。

在Grails 3中,它对应于 application.yml 下的 grails-app / conf 。下面的变化(作为例子)将是必需的:

pre $ code服务器
端口8443
ssl:
key-store:classpath:keystore.jks
key-store-password:secret
key-password:另一个秘密

相当于在Spring Boot中配置SSL。



然而,文档是有限的,正在进行中。所以让Grails 3酿造更多,直到它可以在生产环境中使用的GA。

如果在 Grails JIRA


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!

解决方案

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

这篇关于3.0.0.M1如何在https连接上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆