# Cannot setup HTTPS the correct way with CloudFlare Proxy and NginxProxyManager

**URL:** <https://forum.ghost.org/t/cannot-setup-https-the-correct-way-with-cloudflare-proxy-and-nginxproxymanager/38436>\
**Category:** Self-hosting\
**Created:** [May 15, 2023, 12:36am UTC](https://forum.ghost.org/t/cannot-setup-https-the-correct-way-with-cloudflare-proxy-and-nginxproxymanager/38436 "2023-05-15T00:36:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alec\_Jensen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/alec_jensen/32/24404_2.png) [@Alec\_Jensen](https://forum.ghost.org/u/Alec_Jensen)\
**Post date:** [May 15, 2023, 12:36am UTC](https://forum.ghost.org/t/cannot-setup-https-the-correct-way-with-cloudflare-proxy-and-nginxproxymanager/38436/1 "2023-05-15T00:36:02Z")

</div>

So I am running Ghost with docker compose, behind a reverse proxy (NginxProxyManager). This is all behind Cloudflare proxy. The only way I can get Ghost to work is to set everything on my end to HTTP. If I do anything else, I get the too many redirects error. I have tried enabling SSL in Nginx proxy manager (using the recommended Nginx config) but it doesn’t work. What should I do?

---

<div class="post-metadata">

**Author:** ![markstos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/markstos/32/18182_2.png) [@markstos](https://forum.ghost.org/u/markstos)\
**Post date:** [May 16, 2023, 4:45pm UTC](https://forum.ghost.org/t/cannot-setup-https-the-correct-way-with-cloudflare-proxy-and-nginxproxymanager/38436/2 "2023-05-16T16:45:07Z")

</div>

It’s secure to terminate SSL at NginxProxyManager and have Nginx proxy to Ghost via HTTP. It’s secure because the traffic is on the same host.

If you are still having problems, considering if you need the complexity of a Cloudflare proxy.
