pedestal

souenzzo 2019-07-30T13:43:49.016900Z

@ariel.silverman It's about BREAKING CHANGE: nil ::host in service map defaults to localhost now (rather than being container specific) #557. ? https://github.com/pedestal/pedestal/blob/master/CHANGELOG.md#054---june-29-2018

asilverman 2019-07-30T16:47:41.017400Z

Thank you for replying @souenzzo, I don’t think this is it, I am moving from 0.5.5 to 0.5.7. I had that issue fixed back last month.

👍 1
asilverman 2019-07-30T16:51:58.018Z

#pedestal - gotta love the “pull requests welcome message” found here: http://pedestal.io/reference/jetty

asilverman 2019-07-30T17:03:18.019300Z

@souenzzo - Now that I think about it maybe I addressed issue 054 incorrectly, what I did was the following: In my pedestal config I added

{ 
...
::http/host              "0.0.0.0"}

asilverman 2019-07-30T17:03:54.019700Z

maybe this is not the appropriate fix for 054

2019-07-30T17:04:38.020500Z

Are you running it inside a container?

souenzzo 2019-07-30T17:04:49.021100Z

::http/host "0.0.0.0" should work for dev setup

asilverman 2019-07-30T17:05:11.021800Z

@jvtrigueros I run in a container that is deployed to ECS (AWS)

asilverman 2019-07-30T17:05:23.022Z

this is my config for prod

2019-07-30T17:05:35.022400Z

0.0.0.0 is an unsafe default but necessary if running inside a container

souenzzo 2019-07-30T17:05:49.022800Z

It works on local/REPL?

asilverman 2019-07-30T17:06:27.023600Z

yeah, I am only seeing a timeout of the http server when I deploy to the higher environments

asilverman 2019-07-30T17:07:39.024Z

I saw there were some changes to the container-options for jetty

asilverman 2019-07-30T17:08:00.024400Z

I am setting ssl via:

{::http/container-options {:h2c?          true
                             :h2?           false
                             :keystore      "./config/keystore.p12"
                             :keystore-type "PKCS12"
                             :key-password  "qwerty"
                             :ssl-port      9302
                             :ssl?          false}}

asilverman 2019-07-30T17:15:59.025300Z

honestly I am looking to get maybe some background and docs on :io.pedestal.http.jetty/http-configuration because its pretty opaque and there is no docs I could find on it

asilverman 2019-07-30T17:16:27.025900Z

looks like maybe my cloud deployment was the issue, however I am starting to feel the pain with the lack of documentation in pedestal.

2019-07-30T17:56:12.027300Z

I've been following this conversation, but I'm still confused as to what the issue is that you're facing. I understand the docs are limited, so perhaps once you're past this a small PR would go a long way 🙂 Anyway, what exactly are you having issues with? And is there a repo I can look at and perhaps reproduce?

Daouda 2019-07-30T22:08:29.028600Z

Hey Folks, is there a way of a function to coerce data when entering my api with pedestal? Something that i pass de data and the schema to coerce then will try to coerce for me.

ikitommi 2019-07-31T19:34:53.032300Z

e.g. using reitit + Pedestal, you can use schema or spec to define the data and have generic coercion interceptors do the transform based on the models

Daouda 2019-08-03T09:15:30.035800Z

Thank you very much, you guys helped a lot 😄