Clojure, Ring, SSL

Context

I reviewed the three best results on Google for “Clojure, Call, SSL,” and there seems to be no consensus on the “right way” to configure SSL using Clojure + Ring.

Question:

An ideal answer would be something like:

1) Include "blahblahblah -version xyz" in your .clj project 2) Put your ssl certificate on 3) Make changes to your ring handler: wrap-ring-handler ...

However, if this is not possible, the optimal solution will also work. :-)

Thanks!

+6
source share
1 answer

I would recommend something like Apache2 or nginx in front of your application. Use this server to abort SSL and proxy for your application. Completing SSL in Apache2 is as simple as specifying a certificate. Proxies with Apache2 are also easy. This is much more flexible than writing code in an application to complete SSL.

+6
source

Source: https://habr.com/ru/post/918843/


All Articles