Enabling HTTPS on Embedded Container and/or Migration to Tomcat

28 views
Skip to first unread message

Amal Saha

unread,
Jun 23, 2015, 10:36:08 PM6/23/15
to mayoca...@googlegroups.com
Hello,

SiteSettings.java has an attribute called domainName which is set the value of "localhost:8080". Embedded web container Jetty is used and HTTP works fine. I am trying to enable HTTPS. I have some queries. 

Q1: If we have to enable HTTPS (HTTP works fine) for a public domain (e.g., www.xyz.com) for my server,  is it ok to simply change the value of domainName here? Typically the server.xml is changed in J2EE compliant web server to configure the connector for SSL/TLS. Is there any documented approach for enabling HTTPS on the embedded container used in Mayocat? 

Q2: Jetty is the embedded web container. Is there any documented approach for migrating Mayocat to Apache Tomcat? 

I would highly appreciate any help. 

Thanks and Regards,
Amal  




Jerome Velociter

unread,
Jun 29, 2015, 5:51:34 AM6/29/15
to Amal Saha, mayoca...@googlegroups.com
Hello Amal,

For HTTPS, there are several approaches possible. You could have a
reverse proxy do the SSL work, or you could have the embedded server
do it. You should check out
https://dropwizard.github.io/dropwizard/manual/core.html#ssl
Note as of now mayocat as not been fully tested with SSL enabled, but
that's something we are going to do soon.

For running on tomcat, there's no easy way I think. Mayocat is built
on top of DropWizard, which embeds Jetty and lot of it is jetty
specific. There's a project that bridges dropwizard to webapp
containers : https://github.com/rvs-fluid-it/wizard-in-a-box ; maybe
that's the way to go if you really want to run inside tomcat.

Cheers,

Jérôme
> --
> You received this message because you are subscribed to the Google Groups
> "mayocat-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mayocat-user...@googlegroups.com.
> To post to this group, send email to mayoca...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mayocat-users/566b9511-a939-4133-b64f-3f6ee18c6be5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages