You&#39;re right that using &quot;proxy_set_header X_FORWARDED_PROTO https;&quot; is all that&#39;s needed to tell Rails that the request is secure. &nbsp;Your back-end server configs are what I used. &nbsp;The reason for listening on multiple ports is that the back-end nginx does not pass the X_FORWARDED_PROTO header (from the front-end nginx) through to Rails.<br>
<div><br></div><div>I&#39;m not quite clear on which part isn&#39;t necessary, though. &nbsp;Your example config is essentially what I&#39;m using now.</div><div><br></div><div>Thanks,</div><div>Nick</div>