mojolicious / mojo

:sparkles: Mojolicious - Perl real-time web framework
https://mojolicious.org
Artistic License 2.0
2.66k stars 576 forks source link

Cookbook example for Envoy deployment #1543

Closed kraih closed 4 years ago

kraih commented 4 years ago

With Nginx going out of fashion we should add an example for how to use Envoy as a reverse-proxy with Mojolicious to the cookbook.

daleif commented 4 years ago

I don't always keep up with things. Is it listed somewhere that nginx is going out of fashion?

poizon commented 4 years ago

Dropbox going to Envoy. 😂

zakame commented 4 years ago

I think deriving from https://www.envoyproxy.io/docs/envoy/latest/start/sandboxes/front_proxy could be a good start for this, let me check this out and make some notes...

OTOH since Envoy is normally deployed as a Docker container (https://www.envoyproxy.io/docs/envoy/latest/install/building#install-binaries) I think the scope of this has to be expanded towards deploying Mojo apps under container environments as well, since the current cookbook docs do not talk about it, only about general strategy about deploying under a reverse-proxy.

zakame commented 4 years ago

https://gist.github.com/zakame/eb48bbecd2f74e9bb2463687ba8d611b shows a very "minimal" reverse-proxy-only example.