recaptcha verification failture

I am using the rails ambethia-recaptcha gem

My recaptcha verification fails in production, the same code works
just fine in development. I made sure the public and private keys are
correct and the correct keys load in the production enviornment. My
production server hostname is "server" (this is kinda test production
basically a server in my home network running passenger on xubuntu)
and I generated the keys are recaptcha with that name. Where do I even
begin to troubleshoot this?

In config.yml