#1 Re: mORMot 1 » Native TLS Support for mORMot 2 REST or WebSockets Servers » 2022-07-31 19:07:44

tbo wrote:

...
Better use Caddy Server. Caddy is fast, secure and easy to configure. Write the following caddyfile:

yourdomain.com {
  reverse_proxy localhost:12345
}

Then run the mORMot server on this port. With these lines everything runs over https. Caddy automatically gets a certificate from Let's Encrypt and also manages (renews) it.

With best regards
Thomas


Thank you Thomas. I had never heard of it before but looks quite interesting! Is the performance comparable to nginx?

#2 Re: mORMot 1 » Native TLS Support for mORMot 2 REST or WebSockets Servers » 2022-07-31 14:38:19

ab wrote:

...
In this case, I would use nginx as reverse proxy front-end, and communicate over Posix Sockets between nginx and mORMot.
Such a configuration is easy with nginx, including Let's Encrypt support.

Ab, I'm following your advice and studying nginx...  Do you think FastCGI is a way to go?

#3 Re: mORMot 1 » Native TLS Support for mORMot 2 REST or WebSockets Servers » 2022-07-28 12:54:14

Yes, I want a single mormot server on linux. In that case I will use nginx as you suggested. I was just curious to know if it's possible, mainly due to mormot's excellent performance.

#4 Re: mORMot 1 » Native TLS Support for mORMot 2 REST or WebSockets Servers » 2022-07-28 12:07:53

This is wonderful, congratulations and thanks.

I have a server running over http.sys on windows, but I'm starting a move to linux and I intend to use mormot 2. It really looks like fantastic.

One problem I have with htttp.sys is not being able to use more than one certificate on the same IP/port. So I use lets encrypt to issue certs with multiple domains. This works, but my clients don't really like to share the certificate.

Is there any way to solve this with mormot 2?

Example:

     domain-A.com -> use cert 1 for [domain-A.com, blog.domain-A.com, api.domain-A.com]
api.domain-A.com -> use cert 1 for [domain-A.com, blog.domain-A.com, api.domain-A.com]

     domain-B.com -> use cert 2 for [domain-B.com]

#6 mORMot 1 » Multiple domain names - Same Server » 2014-12-11 11:36:22

Geziel
Replies: 5

It is possible with mormot to host multiple websites with different domain names but in the same port at the same server?

For instance:

    website 1:  project1.com
    website 2:  project2.com
    website 3:  blog.project2.com


What is the best approach for this kind of situation?

Board footer

Powered by FluxBB