Setting up OAuth NGINX callbacks in Rails production environment with load balancers and HTTPS offloading
“HTTPS everywhere” is not a luxury anymore. It is a necessity. Thankfully, obtaining an SSL certificate has become easier too, with initiatives such as Let’s Encrypt, GeoTrust, Positive SSL, StartSSL. Even cloud based services such as Cloudflare and Amazon AWS provide free SSL certificates to their customers.
Here is setting some context to help the reader appreciate the discussion:
We host our r...