nginx proxy manager logo

5-Minute SSL Guide: Secure Docker Apps with Nginx Proxy Manager

Stop using HTTP. Get a beautiful UI to manage domains and Free SSL certificates for n8n, Portainer, and more.

Introduction: The Easy Way to SSL

Running apps like n8n or Portainer on http://ip:5678 is dangerous. You need HTTPS. But setting up Nginx config files manually is a headache.

Meet Nginx Proxy Manager (NPM). It gives you a simple graphical interface to handle all your domains and SSL certificates automatically.

Prerequisite: You must have a Domain Name (e.g., ai.yourdomain.com) pointed to your Server IP.

Step 1: Install NPM (Docker)

Create a folder and a docker-compose.yml file.

mkdir nginx-proxy && cd nginx-proxy
nano docker-compose.yml

Paste this code to set up the proxy server:

version: '3.8'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'      # Public Web Port
      - '81:81'      # Admin Panel Port
      - '443:443'    # SSL Port
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt

Run it:

docker compose up -d

Step 2: Login to Dashboard

Open your browser and go to: http://your-server-ip:81

Default Email[email protected]
Default Passwordchangeme

Login and immediately change your email and password.

Step 3: Add SSL to Your App

Now let's secure your app (e.g., n8n running on port 5678).

  1. Click "Proxy Hosts" ->"Add Proxy Host".
  2. Domain Names: Enter your domain (e.g., n8n.mysite.com).
  3. Forward Hostname / IP: Enter your server's local IP (e.g., 172.17.0.1 for Docker gateway or your public IP).
  4. Forward Port: Enter the app port (e.g., 5678).
  5. Go to the "SSL" tab.
  6. Under "SSL Certificate", select "Request a new SSL Certificate".
  7. Toggle on "Force SSL" and "HTTP/2 Support".
  8. Enter your email and click Save.

Success! You can now visit https://n8n.mysite.com. Your connection is secure, and the lock icon is visible.

Conclusion: Secure & Professional

No more "Not Secure" warnings. You can repeat Step 3 for unlimited domains and apps.

Need a Public IP?

Every ServerMO Dedicated Server comes with a dedicated static IPv4, making SSL setup instant and easy.

Ready to Launch with Unmatched Power?

Ready to Launch with Unmatched Power? Deploy blazing-fast 1–100Gbps unmetered servers, high-performance GPU rigs, or game-optimized hosting custom-built for speed, reliability, and scale. Whether it’s colocation, compute-intensive tasks, or latency-critical applications, ServerMO delivers. Order now and get online in minutes, fully secured, fully optimized.

Red and white text reads '24x7' above bold purple 'SERVICES' on a white background, all set against a black backdrop. Energetic and modern feel.

Power. Performance. Precision.

99.99% Uptime Guarantee
24/7 Expert Support
Blazing-Fast NVMe SSD

Christmas Mega Sale!

Unwrap the ultimate power! Get massive holiday discounts on all Dedicated Servers. Offer ends soon grab yours before the snow melts!

London UK (15% OFF)
Tokyo Japan (10% OFF)
00Days
00Hrs
00Min
00Sec
Explore Grand Offers