iron-io / functions

IronFunctions - the serverless microservices platform by
https://iron.io
Apache License 2.0
3.17k stars 227 forks source link

Unable to get API URL working with SSL termination through load balancers #649

Closed wrsuarez closed 6 years ago

wrsuarez commented 6 years ago

We've got a CNAME to our ingress load balancer in Rancher for Iron Functions. Running a valid wildcard SSL through from the ingress LB for the environment, SNI to the Stack LB, termination of SSL at the stack load balancer then redirection of traffic from 443 to 8080 in the Function Workers containers. Same set up for the UI. On the UI side everything works perfectly fine. No specification of port 4000 is required. On the API said I get an error when trying to do the same thing:

MASKED:demoapp rsuarez$ fn apps create testapp2 unexpected error: no consumer: "text/html"

screen shot 2017-09-27 at 9 09 12 am
wrsuarez commented 6 years ago

I should add that setting the export for the API URL on my laptop to anything but 8080 doesn't work. Using https, http with port 80, all result in the same error

c0ze commented 6 years ago

thank you for the report ! This is an issue we are working on, hopefully it will be resolved soon !

https://github.com/iron-io/functions/pull/650

c0ze commented 6 years ago

@wrsuarez we just released a new version of the fn tool which should solve this issue. Please give it a try and let us know if this works for you ! Thanks !

wrsuarez commented 6 years ago

@coze I'll check it out right now

wrsuarez commented 6 years ago

@c0ze call this one closed. Thank you! 👍