This project comes as a pre-built docker image that enables you to easily forward to your websites running at home or otherwise, including free TLS, without having to know too much about Nginx or Letsencrypt.
Project Goal
I created this project to fill a personal need to provide users with a easy way to accomplish reverse proxying hosts with TLS termination and it had to be so easy that a monkey could do it. This goal hasn't changed. While there might be advanced options they are optional and the project should be as simple as possible so that the barrier for entry here is low.
Features
- Beautiful and Secure Admin Interface based on Tabler
- Easily create forwarding domains, redirections, streams and 404 hosts without knowing anything about Nginx
- Free trusted TLS certificates using Certbot (Let's Encrypt) or provide your own custom TLS certificates
- Access Lists and basic HTTP Authentication for your hosts
- Advanced Nginx configuration available for super users
- User management, permissions and audit log
New Features
- HTTP/3 (QUIC) Support if you enable HTTP/2 (can not be enabled separate)
- Fix Proxy Hosts, if origin only accepts TLSv1.3
- Only use TLSv1.2 and TLSv1.3
- Uses OCSP Stapling
- Needs manual migration if you use custom certificates, just upload the CA/Intermediate Certificate (file name:
chain.pem
) in the/opt/npm/tls/custom/npm-[certificate-id]
folder
- Needs manual migration if you use custom certificates, just upload the CA/Intermediate Certificate (file name:
- Smaller then the original
- Runs the admin interface on port 81 with https
- Default page runs also with https
- Uses fancyindex if you use the npm directly as webserver
- Expose INTERNAL backend api only to localhost
- Easy security headers, see here, enabled by default if you enable hsts
- Access Log disabled
- Error Log written to console
- PHP included, you can add php extensions, see aviable packages here: https://pkgs.alpinelinux.org/packages?branch=edge&name=php*&arch=x86_64
- allows different acme servers
- up to 64 domains per cert allowed
Soon
- more
- I will try to create a pr to contribute to the original project
Use as webserver
- Create a new Proxy Host
- Set
Scheme
tohttp
,Forward Hostname / IP
to0.0.0.0
,Forward Port
to1
and enableWebsockets Support
(you can also use other values, since these get fully ignored) - Maybe set an Access List
- Make your SSL Settings
a) Custom Nginx Configuration (advanced tab), which looks the following for file server:
- Note: the slash at the end of the file path is important
location / {
alias /var/www/<your-html-site-folder-name>/;
}
b) Custom Nginx Configuration (advanced tab), which looks the following for file server and php:
- Note: the slash at the end of the file path is important
- Note: you can replace
fastcgi_pass php82;
withfastcgi_pass
php7
/php8
/php81
/php82
;
- Note: to add more php extension use the packes from here and add them using the
PHP_APKS
env (see compose file)
location / {
alias /var/www/<your-php-site-folder-name>/;
location ~ [^/]\.php(/|$) {
fastcgi_pass php82;
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {return 404;}
}}
custom acme server
- Open this file:
nano
/opt/npm/ssl/certbot/config.ini
- uncomment the server line and change it to your acme server
- maybe set eab keys
- create your cert
Quick Setup
- Install Docker and Docker Compose (or portainer)
- Create a compose.yaml file similar to this (or use it as a portainer stack):
version: "3"
services:
nginx-proxy-manager:
container_name: nginx-proxy-manager
image: zoeyvid/nginx-proxy-manager
restart: always
network_mode: host
volumes:
- "/opt/npm:/data"
- "/opt/npm-letsencrypt:/etc/letsencrypt" # Only needed for first time migration from original nginx-proxy-manager to this fork
- "/var/www:/var/www" # optional, if you want to use it as webserver for html
environment:
- "TZ=Europe/Berlin"
# - "NGINX_LOG_NOT_FOUND=true" # Allow logging of 404 errors
# - "NPM_LISTEN_LOCALHOST=true" # Bind the NPM Dashboard on Port 81 only to localhost
# - "PHP_APKS=php7-curl php8-curl php81-curl php-82-curl" # Add php extensions, see aviable packages here: https://pkgs.alpinelinux.org/packages?branch=edge&name=php\*&arch=x86_64
- Bring up your stack by running (or deploy your portainer stack)
docker compose up -d
- Log in to the Admin UI
When your docker container is running, connect to it on port 81
for the admin interface.
Sometimes this can take a little bit because of the entropy of keys.
You may need to open port 81 in your firewall.
You may need to use another IP-Adress.
Default Admin User:
Email: admin@example.com
Password: 9KcvfmAvcVonB7YOMqdjJGsTG2JL058Rx6xFNMintAeaGETsRBRlSbfXdi1inoCa
Immediately after logging in with this default user you will be asked to modify your details and change your password.
Contributors
Special thanks to all of our contributors.