Fork me on GitHub
#ring
<
2017-03-03
>
sova-soars-the-sora00:03:03

Hi everyone. I'm trying to host my cljs app +server using SSL

sova-soars-the-sora00:03:17

so I just found (wrap-ssl-redirect )

sova-soars-the-sora00:03:36

but I don't know how to change my existing middleware lines appropriately.. i was wondering if someone had a sec to help out

sova-soars-the-sora00:03:54

(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))

sova-soars-the-sora00:03:26

Nvm, it seems as though I can just change ring.middleware.defaults/site-defaults to ring.middleware.defaults/secure-site-defaults

sova-soars-the-sora01:03:15

Hrm. Well, the secure site defaults is a nice idea, but it just makes my SSL-enabled site redirect to "localhost' with proxypass /

sova-soars-the-sora01:03:51

... something is weird and my (sente ) websockets are not working right... investigates

weavejester03:03:11

@sova Have you set :proxy to true?