# Tutorial: How to correctly set up Nginx Proxy Manager and Cloudflare

**URL:** <https://forums.plex.tv/t/tutorial-how-to-correctly-set-up-nginx-proxy-manager-and-cloudflare/738902>\
**Category:** Remote Access\
**Tags:** server-linux, networking\
**Created:** [August 26, 2021, 7:32am UTC](https://forums.plex.tv/t/tutorial-how-to-correctly-set-up-nginx-proxy-manager-and-cloudflare/738902 "2021-08-26T07:32:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![baldfox](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baldfox/32/188577_2.png) [@baldfox](https://forums.plex.tv/u/baldfox)\
**Post date:** [August 26, 2021, 7:32am UTC](https://forums.plex.tv/t/tutorial-how-to-correctly-set-up-nginx-proxy-manager-and-cloudflare/738902/1 "2021-08-26T07:32:24Z")

</div>

Hi guys, I’ve just spent the last day or so having a play with Nginx Proxy Manager (NPM) running alongside Cloudflare.

The initial installation was pretty easy. Using docker on a linux machine (ubuntu server) I had everything installed in a few minutes, but trying to iron out the connections between the two, proved troublesome. I persevered and through trial and error managed to have it working

The biggest issues were the 502 gateway. In any event, if anyone has their own domain name and is interested in accessing their machine / containers from the internet ie. [plex.yourdomain.com](http://plex.yourdomain.com), or [movies.yourdomain.com](http://movies.yourdomain.com) etc, then here’s a walk through. If you spot any errors or know of a better way then let me know!

> **[Nginx Proxy Manager – Setup and a fix for your 502 Gateway Errors | The...](https://www.thesmarthomebook.com/2021/08/25/nginx-proxy-manager-setup-and-a-fix-for-your-502-gateway-errors/)**
>
> A quick step by step tutorial on how to set up Nginx Proxy Manger using a Digital Ocean Droplet and fixing any 502 Gateway Errors that might arise.

Hope this is useful!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [November 24, 2021, 7:32am UTC](https://forums.plex.tv/t/tutorial-how-to-correctly-set-up-nginx-proxy-manager-and-cloudflare/738902/2 "2021-11-24T07:32:33Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
