Nginx Proxy Manager for Mere Mortals
You have services running on your own
machines — a dashboard here, a file
server there — and each one lives at an
address like 192.168.1.50:8080. You
would like them at real names instead:
dashboard.example.com, with proper
HTTPS, without memorising ports and
without hand-writing web server
configuration files. Nginx Proxy
Manager (usually shortened to NPM)
is the tool built for exactly that. It
is a web page you open in your browser,
where you fill in a form — this name,
that machine, this port — and it
writes, tests and loads the nginx
configuration for you. nginx is the web
server doing the actual work; NPM is
the friendly front desk in front of it.
This guide explains what NPM is made of, how to install it the way its makers intend (as a Docker container), and how to create your first proxy host. Then it does something the project's own quick-start does not: it opens the configuration file NPM generated and reads it line by line, so the magic becomes a mechanism you can check. It also covers HTTPS certificates from Let's Encrypt, redirects, the access lists that can gate a service behind a password, and the security habits that matter when one login controls the front door to everything you run.
The lab behind this guide ran the real thing, in an unusual way. NPM's normal path is a Docker container, and the lab had no containers — so it ran the project's own parts natively instead: the backend (the Node.js program that is NPM's brain) from the official v2.16.0 source release, on a SQLite database, and the admin interface built from that same source. Against them the lab created its first administrator through the setup flow, logged in, created a proxy host and a redirection host through the API, and inspected the nginx files that came out. Those files were then handed to a real nginx, which tested them and passed them. Finally the lab wired the pieces the way the Docker image does — nginx serving the interface and passing its API calls to the backend — and logged in through that path too.
What the lab could not do, it did not
fake. Sending live traffic through a
generated host, and asking Let's
Encrypt for a real certificate, both
need things a sandbox does not have:
extra network ports and a public domain
name the internet can reach. Those
parts are taught from the project's
documentation and labelled as such
wherever they appear. One honest wrinkle
is kept in full: outside Docker, the
backend could generate and test
configuration but could not reload a
running nginx, because there was no
NPM-managed nginx for it to reload —
chapter 6 shows the exact error and
what it means. criteria.md keeps the
full ledger of what was run and what
was only read.
What this guide covers
- What Nginx Proxy Manager is — the mental model: a form in, nginx configuration out, and why the admin interface itself deserves care
- The moving parts —
the backend, the admin interface, the
database, the nginx it drives, the
certificate tool, and the one folder
(
/data) that holds nearly everything - Installing — the Docker install the project intends, the three ports, and where your data lives afterwards
- First login and setup — creating the first administrator, the two supported ways, and the health check that proves the backend is awake
- Your first proxy host — the form, field by field, and the moment a name becomes a configuration file
- Reading the generated config — the generated server block taken apart: listeners, log files, the exploit filter, and the three variables that do the proxying
- HTTPS and certificates — how Let's Encrypt proves you own a name, what the DNS alternative is, and what renews automatically
- Redirection, dead hosts and streams — the other three host types: sending a name elsewhere, answering 404 on purpose, and forwarding raw TCP and UDP ports
- Access lists and security — passwords and IP rules in front of a service, the block-exploits filter, and the habits that keep the front desk itself safe
- Users and permissions — extra logins, per-type permissions, two-factor authentication and the audit log
- Recipes — a home service on its own name, HTTPS forced end to end, a password gate, a WebSocket-friendly host, and a custom location for the one awkward path
- The neighbours — Caddy, Traefik, nginx on its own, and Cloudflare Tunnel: what each does differently, honestly compared
- Limits — one machine, one nginx, Docker-first assumptions, and the seams this guide's lab found
- Troubleshooting — the host that will not come online, the certificate challenge that fails, the setup screen that comes back, and the reload error this lab met
- Glossary — the terms, collected in one place
What it doesn't cover
Running nginx itself in depth — its own configuration language, tuning and module system are a guide of their own, and this series has one. Building the Docker image from source, running NPM on a cluster, and high-availability setups are out: NPM is a single-machine tool, and chapter 13 is honest about that. Certificate policy — which names you should publish at all — is yours to decide; this guide covers the mechanics and the safety habits, not your network design.
How to use this guide
Read chapter 1 for the model and
chapter 2 before installing anything —
knowing which part holds what turns
later confusion into a named problem.
Chapters 3 to 5 get you an installed
NPM, an administrator, and a working
proxy host in one sitting. Chapter 6
is the one to read slowly even if
everything works: the generated file is
the ground truth of what your form
actually asked for, and checking it is
a habit worth having. The lab's
transcripts live in
nginx-proxy-manager-lab/transcripts/;
the generated files it inspected are in
nginx-proxy-manager-lab/generated/,
and the standalone nginx harness that
tested them is in
nginx-proxy-manager-lab/harness/.
Part of the series
This guide is one of the For Mere Mortals guides: plain-language guides to the tools programmers and makers use.
Related guides:
License
The writing in this guide is licensed under CC BY 4.0. Code examples and lab scripts are licensed under the MIT License.