Fork me on GitHub
#duct
<
2018-02-14
>
colliderwriter01:02:50

is it possible to use duct with boot? asking for an existing codebase

dadair03:02:44

Is there any way to provide a db-spec (e.g., map of user, password, host, …) to hikaricp module instead of a jdbc-url?

weavejester03:02:04

@dadair It supports the same options as the underlying HikariCP wrapper. https://github.com/tomekw/hikari-cp#configuration-options

weavejester03:02:36

It’s not exactly the same as the Clojure JDBC library though.

dadair03:02:31

ah ok, maybe this is more a question for #sql but one thing I’m not sure of with hikari-cp datasource map is defining say postgres ssl/sslfactory, there doesn’t seem to be a config for that, unless it’s baked into the “query params” of just a jdbc-url

weavejester03:02:39

@dadair There are parameters for SSL in the JDBC connection URL: https://jdbc.postgresql.org/documentation/80/connect.html

mariusz_jachimowicz16:02:54

I created 2 simple Duct modules https://github.com/mariusz-jachimowicz-83/duct-simple-mailer https://github.com/mariusz-jachimowicz-83/duct-env-dbs @weavejester awesome work with Integrant, Duct and all other projects. Very usefull stuff. 😄

jaydeesimon16:02:52

I’m starting to dig into Duct a little more and am getting a feel for it

jaydeesimon16:02:10

I have a question about module.web

jaydeesimon16:02:59

Let’s say I want to re-configure some of the ring middleware defaults

jaydeesimon17:02:00

but I don’t see a way to “get” to them

jaydeesimon17:02:02

I see that demote metadata in there which seems like a hint that I’m supposed to merge over that map in some way

weavejester17:02:05

Usually the second map in a merge takes priority. The demote metadata swaps that around. The module will prefer your config over its data.

weavejester17:02:40

So, if you want to override some data, you just put it in your configuration.

jaydeesimon17:02:31

ohhhh ok I was about to ask you how I actually do that but I just realized all I need to do is pass {:cookies false} (for example) to my :duct.module.web/site integrant key in my config file

jaydeesimon17:02:58

this is starting to click now - ok i’m gonna play around with this

colliderwriter18:02:04

I have a project which could use Duct et al, but it's built with Boot instead of Lein. I note that there are no Boot-based examples. Is there a reason other than Lein's templates?

weavejester18:02:22

@colliderwriter The only part of Duct that’s Leiningen is the template and the plugin that provides a way of creating local files (like profiles.edn, local.clj etc)

weavejester18:02:50

So you could certainly use Boot. I don’t use Boot myself, so I haven’t written anything for it.

colliderwriter18:02:15

Thanks. I assumed as much but thought I'd ask before creating that branch.

dadair21:02:10

Is it possible to have websockets with the default jetty server? Or would I say need to switch over to httpkit with Sente?

dadair21:02:30

Or implement an aleph server, etc

weavejester22:02:52

@dadair No, but there’s httpkit and aleph servers already implemented.