Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Server Nginx Proxy Manager and Cloudflare Wildcard Domain Application Guide

gavinray

Member level 1
Member level 1
Joined
Sep 27, 2022
Messages
37
Helped
1
Reputation
2
Reaction score
5
Trophy points
8
Activity points
748
Nginx Proxy Manager is a reverse proxy management tool based on Nginx, providing a user-friendly web interface to easily manage and configure Nginx reverse proxies. Its main features include:
  • User-friendly interface: Quickly add and manage proxy hosts (reverse proxy rules) through the graphical interface.
  • SSL Management: Supports automatic SSL/TLS certificate issuance and renewal via Let's Encrypt to secure your website.
  • Access Control: Set access control rules for proxy hosts, such as restricting access by specific IP addresses or requiring basic authentication.
  • HTTP Proxy and WebSocket Support: Supports regular HTTP proxying as well as WebSocket proxying.
  • Simple Docker Deployment: Easy to deploy Nginx Proxy Manager using Docker.
  • Multi-domain Support: Manage multiple domains and hosts within the same instance.
Nginx Proxy Manager is ideal for users who need to set up reverse proxies between multiple services and want to simplify the configuration process.

Cloudflare is a company that provides web security and performance optimization services. Its main products include Content Delivery Network (CDN), DDoS protection, website acceleration, DNS (Domain Name System) services, and Web Application Firewall (WAF), among others.

By using Cloudflare's services, websites can achieve:

  1. Faster Loading Speeds: Cache website content at Cloudflare’s global CDN nodes, reducing load times by serving content from servers closer to the user.
  2. Improved Security: Provide DDoS protection to defend against large-scale traffic attacks, safeguarding websites from malicious threats.
  3. Better Reliability: Increase website availability and performance via intelligent routing and load balancing.
  4. Easy Management: Provides a user-friendly interface and API for convenient management and configuration.
In this article, we will walk through every step, from obtaining an API token from Cloudflare to configuring a wildcard domain certificate in Nginx Proxy Manager, helping you get started and complete the configuration quickly.

Prerequisites​

  • Operating System: Suitable for all Docker-supported operating systems, such as Ubuntu, CentOS, Debian, etc., with Nginx Proxy Manager installed correctly.
  • Nginx Proxy Manager Version: It’s recommended to use the latest version to ensure compatibility and security.
  • Cloudflare Account: A valid Cloudflare account with at least one domain added.
  • Network Environment: Ensure that the server can access the internet for communication with Cloudflare’s API.

Relevant Links:​

How to Apply for Cloudflare API Token​

  1. Go to the API Token Application Page
    Open the following URL: https://dash.cloudflare.com/profile/api-tokens or access the API section within any domain page.
1731464572465.png

  1. Create the Token
    You can either use a template or create your own token.
    • Permissions: Select "DNS" as the permission.
    • Zone: Choose "All Zones".For added security, you can set a specific client IP address.
1731464583957.png



1731464607261.png


1731464652701.png

  1. Confirm Information
    Ensure that all information is correct, then create the token.
  2. Save the Token
    After successful creation, the token will be displayed.
    Important: Tokens are shown only once, so make sure to save it securely.

1731464663239.png


Setting Up Wildcard Domain Proxy in Nginx Proxy Manager​

  1. Log into Nginx Proxy Manager
    Access the Nginx Proxy Manager dashboard.
  2. Add a New Wildcard Domain Certificate
    In the certificate application section, add a new wildcard domain certificate.
  3. Fill in Domain Information
    • Domain: Enter the wildcard domain you wish to apply for.
    • Email Address: Use your Cloudflare account’s email address.
    • DNS Provider: Select "Cloudflare".
  4. Enter Credentials
    After selecting Cloudflare as the DNS provider, the credentials will auto-fill. Replace the value of dns_cloudflare_api_token with the API token you just generated.
    Example:
 

Attachments

  • 1731464550905.png
    1731464550905.png
    35 KB · Views: 10

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top