
If you're looking for an easy way to manage your reverse proxy configurations on Ubuntu, you can install Nginx Proxy Manager on Ubuntu. Nginx Proxy Manager is a reverse proxy management tool that allows you to create configuration files, set up security exceptions, streams, and SSL certificates through a simple web interface. In this write-up, you’ll learn how to install Nginx Proxy Manager on an Ubuntu 20.04 server running Docker, providing you with a robust solution for managing your network traffic securely.
Create the Nginx Proxy Manager directory in a widely accessible location like /opt.
Under the directory, create a new databases subdirectory.
Create a new SQLite database file using the following command.
Exit the SQLite database console.
Create a custom Docker network.
The Nginx Proxy Manager network allows management and monitoring of attached containers.
Using a text editor, create and edit a docker-compose.yml file in the main /opt/NginxProxy directory.
Enter the following configurations to the file:
Nginx Proxy Manager listens on ports 80 and 443 for HTTP and HTTPS traffic, respectively. Port 81 provides access to the web management dashboard. To tighten server security, change the management port to a random combination.
Save and close the file.
Switch to the Nginx Proxy Manager directory.
Install Nginx Proxy Manager by starting docker-compose in detached mode.
Verify that Nginx Proxy Manager is up and running.
The command output should look like the one below:
If you use UFW (enabled by default), allow the following access ports through the server.
Allow HTTP
Allow HTTPS
Allow the Nginx Proxy Manager web management dashboard.
Visit your server's IP address and load the Nginx Proxy Manager web management dashboard on port 81.
Log in to the management dashboard with the following credentials:
Change your default username, email address, and password to secure the server.
To proxy and forward requests to a backend application, attach a docker container to the Nginx Proxy Manager network. For example, the following command creates a new ownCloud container attached to the nginxproxy network.
Access the Nginx Proxy Manager web dashboard, and navigate to Hosts on the main navigation menu.
Click Add Proxy Host to enter a domain name, choose between HTTP or HTTPS scheme access, set up the target container name in the Forward Name/IP field, and toggle Save to continue.
Visit your domain name to confirm changes and start using the application.
You have successfully installed Nginx Proxy Manager on Ubuntu 20.04 and set up ownCloud as a backend application attached to the Docker network. For further information, refer to the following articles:
0 Comments
Be the first to comment and share your perspective with the community.