简体   繁体   English

在Dropwizard中,管理员和应用程序将在同一端口上

[英]In Dropwizard the admin and application would be on the same port

I want to configure my dropwizard application. 我想配置我的dropwizard应用程序。 I want that the admin page and the application page will be on the same port. 我希望管理页面和应用程序页面位于同一端口上。

I found the default server setup 我找到了默认的服务器设置

server:
  type: simple
  applicationContextPath: /application
  adminContextPath: /admin
  connector:
    type: http
    port: 8080

This is working. 可以了 But I want to open an other port for https. 但是我想为https打开另一个端口。 I have tried with default server, but it does not support the admin and the applicatio would be available on the same port. 我已经尝试使用默认服务器,但是它不支持admin,并且应用程序可以在同一端口上使用。

Have you got any idea? 你有什么主意吗

You should be able to do it by adding a new subsection of type https . 您应该可以通过添加一个https类型的新小节来做到这一点。 For more detail, see http://www.dropwizard.io/0.9.2/docs/manual/core.html#ssl 有关更多详细信息,请参见http://www.dropwizard.io/0.9.2/docs/manual/core.html#ssl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM