This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-03
Channels
- # bangalore-clj (2)
- # beginners (29)
- # boot (52)
- # cider (4)
- # clara (3)
- # cljs-dev (34)
- # cljsjs (7)
- # cljsrn (3)
- # clojure (71)
- # clojure-austin (1)
- # clojure-dev (5)
- # clojure-france (20)
- # clojure-russia (51)
- # clojure-spec (9)
- # clojure-uk (20)
- # clojurescript (131)
- # core-async (56)
- # core-logic (6)
- # cursive (50)
- # datascript (19)
- # datomic (16)
- # dirac (118)
- # emacs (100)
- # events (4)
- # hoplon (14)
- # incanter (1)
- # jobs (7)
- # jobs-discuss (96)
- # jobs-rus (21)
- # lein-figwheel (5)
- # leiningen (21)
- # off-topic (11)
- # om (45)
- # onyx (42)
- # pamela (1)
- # pedestal (22)
- # portland-or (3)
- # re-frame (8)
- # reagent (5)
- # ring (9)
- # robots (1)
- # spacemacs (14)
- # specter (28)
- # sql (2)
- # untangled (165)
Hi everyone. I'm trying to host my cljs app +server using SSL
so I just found (wrap-ssl-redirect )
but I don't know how to change my existing middleware lines appropriately.. i was wondering if someone had a sec to help out
(def main-ring-handler
"**NB**: Sente requires the Ring `wrap-params` + `wrap-keyword-params`
middleware to work. These are included with
`ring.middleware.defaults/wrap-defaults` - but you'll need to ensure
that they're included yourself if you're not using `wrap-defaults`."
(ring.middleware.defaults/wrap-defaults
ring-routes
ring.middleware.defaults/site-defaults))
Nvm, it seems as though I can just change ring.middleware.defaults/site-defaults
to ring.middleware.defaults/secure-site-defaults
Hrm. Well, the secure site defaults is a nice idea, but it just makes my SSL-enabled site redirect to "localhost' with proxypass /
... something is weird and my (sente ) websockets are not working right... investigates
@sova Have you set :proxy
to true
?