Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
laptopwiki:guides:docker:meshcentral [30/07/2023 00:10] – dustojnikhummer | laptopwiki:guides:docker:meshcentral [12/01/2024 21:14] (current) – [If Cloudflare Proxy] dustojnikhummer | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Mesh Central in Docker behind NGINX Proxy Manager Reverse Proxy ====== | ====== Mesh Central in Docker behind NGINX Proxy Manager Reverse Proxy ====== | ||
* What is Nginx Proxy Manager (also known as NPM): [[https:// | * What is Nginx Proxy Manager (also known as NPM): [[https:// | ||
- | * What is Mesh Central: https:// | + | * What is Mesh Central: |
+ | * Container we will be using, including base of my docker-compose.yml: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | ====== Prerequisites ====== | ||
+ | - Docker environment on Linux | ||
+ | - Portainer, docker-compose installed | ||
+ | - Ports 80/443 port forwarded to your Docker host | ||
+ | - Reverse proxy being Nginx Proxy Manager, not Traefik as I don't use it | ||
+ | - Nginx Proxy Manager listening for ports 80/443 | ||
===== Deploying container ===== | ===== Deploying container ===== | ||
* We will be using an unofficial, but as of writing this article still maintained and community approved, Docker version of Mesh Central | * We will be using an unofficial, but as of writing this article still maintained and community approved, Docker version of Mesh Central | ||
Line 62: | Line 73: | ||
* For example, TZ=Europe/ | * For example, TZ=Europe/ | ||
* Storage mounts (I had issues with MeshCentral Volume paths, so that is why I'm using volumes) | * Storage mounts (I had issues with MeshCentral Volume paths, so that is why I'm using volumes) | ||
- | * ALLOW_NEW_ACCOUNTS=false, | + | * ALLOW_NEW_ACCOUNTS=false, |
===== Config File ===== | ===== Config File ===== | ||
- | * You will find the config file in the container' | + | * You will find the config file in the container' |
* Since I used a Docker Volume, I can use Portainer to see where that is mounted on my server' | * Since I used a Docker Volume, I can use Portainer to see where that is mounted on my server' | ||
+ | * {{: | ||
* Open the config.json file with < | * Open the config.json file with < | ||
* If this is your initial installation, | * If this is your initial installation, | ||
Line 111: | Line 123: | ||
</ | </ | ||
+ | * Note: I did not touch the letsencrypt section here at all, since we are handling our SSL certificate elsewhere | ||
==== So what are we changing and why? ==== | ==== So what are we changing and why? ==== | ||
* TLDR: | * TLDR: | ||
Line 116: | Line 129: | ||
* Since ours is behind NPM it can't communicate directly and hashes won't match. | * Since ours is behind NPM it can't communicate directly and hashes won't match. | ||
* We need to tell it to instead use NPM's certificate | * We need to tell it to instead use NPM's certificate | ||
- | - " | + | - " |
- " | - " | ||
- " | - " | ||
Line 136: | Line 149: | ||
</ | </ | ||
===== If Cloudflare Proxy ===== | ===== If Cloudflare Proxy ===== | ||
- | - This setup works fine through Cloudflare Proxy, assuming | + | |
- | - Cloudflare Dashboard -> yourdomain.tld -> SSL/TLS -> Overview -> FULL | + | |
- | - This is necessary so that the Cloudflare Proxy and your local certificate match and Cloudflare doesn' | + | - <del>Cloudflare Dashboard -> yourdomain.tld -> SSL/TLS -> Overview -> FULL</ |
+ | - <del>This is necessary so that the Cloudflare Proxy and your local certificate match and Cloudflare doesn' | ||
===== Issues ===== | ===== Issues ===== | ||
Line 146: | Line 160: | ||
- In Proxy Host -> your Mesh Central Host -> Check **Websockets Support** | - In Proxy Host -> your Mesh Central Host -> Check **Websockets Support** | ||
+ | --- // |