Top Related Projects
Docker container for managing Nginx proxy hosts with a simple, powerful interface
Automated docker nginx proxy integrated with letsencrypt.
Quick Overview
Nginx UI is a web-based interface for managing Nginx configurations. It provides a user-friendly dashboard for configuring and controlling Nginx servers, making it easier for both beginners and experienced users to manage their web server setups without directly editing configuration files.
Pros
- Intuitive web interface for managing Nginx configurations
- Supports multiple languages and themes
- Real-time configuration validation and error checking
- Built-in terminal for direct server access
Cons
- Requires additional setup and resources compared to manual configuration
- May not support all advanced Nginx features or custom modules
- Potential security risks if not properly secured
- Learning curve for users unfamiliar with Nginx concepts
Getting Started
To get started with Nginx UI, follow these steps:
- Download the latest release from the GitHub repository.
- Extract the files and run the executable:
./nginx-ui
- Access the web interface at
http://localhost:9000
(default port). - Log in with the default credentials (username:
admin
, password:admin
). - Connect to your Nginx installation by providing the necessary paths and permissions.
For more detailed instructions and configuration options, refer to the project's documentation on GitHub.
Competitor Comparisons
Docker container for managing Nginx proxy hosts with a simple, powerful interface
Pros of nginx-proxy-manager
- User-friendly web interface for managing Nginx configurations
- Built-in Let's Encrypt integration for easy SSL certificate management
- Supports Docker-based deployment for simplified installation and updates
Cons of nginx-proxy-manager
- Limited customization options for advanced Nginx configurations
- Requires a database (SQLite or MySQL) for storing configurations
- May have higher resource usage due to additional components
Code Comparison
nginx-proxy-manager (JavaScript):
const fs = require('fs');
const path = require('path');
const logger = require('../logger').global;
module.exports = {
// ... (configuration logic)
};
nginx-ui (Go):
package main
import (
"fmt"
"os"
"path/filepath"
)
func main() {
// ... (main application logic)
}
The code comparison shows that nginx-proxy-manager is primarily written in JavaScript, while nginx-ui is implemented in Go. This difference in programming languages may affect performance, resource usage, and ecosystem compatibility.
Both projects aim to simplify Nginx configuration management, but nginx-proxy-manager focuses on providing a user-friendly interface with built-in features like SSL management, while nginx-ui offers a more lightweight approach with potentially greater flexibility for advanced users.
Automated docker nginx proxy integrated with letsencrypt.
Pros of nginx-proxy-automation
- Automated setup for reverse proxy with SSL using Docker
- Includes Let's Encrypt integration for automatic certificate management
- Designed for easy deployment of multiple services behind a single proxy
Cons of nginx-proxy-automation
- Less flexible configuration options compared to nginx-ui
- Requires Docker knowledge and setup
- May be overkill for simple single-site setups
Code Comparison
nginx-proxy-automation:
./start.sh
nginx-ui:
docker run -d --restart=always \
-v /etc/nginx:/etc/nginx \
-p 8080:8080 \
--name nginx-ui \
ghcr.io/0xjacky/nginx-ui
nginx-proxy-automation focuses on a script-based setup for Docker environments, while nginx-ui provides a web interface for managing Nginx configurations. nginx-proxy-automation is more suited for automated, multi-service deployments, whereas nginx-ui offers greater flexibility for manual configuration and management of individual Nginx instances.
nginx-proxy-automation excels in environments where multiple services need to be quickly deployed behind a reverse proxy with automatic SSL management. nginx-ui, on the other hand, provides a user-friendly interface for more granular control over Nginx configurations, making it suitable for both simple and complex setups where manual intervention is preferred.
Convert
designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME

Nginx UI
Yet another Nginx Web UI, developed by 0xJacky, Hintay and Akino.
Documentation
To check out docs, visit nginxui.com.
Sponsor
If you find this project helpful, please consider sponsoring us to support ongoing development and maintenance.
Your support helps us:
- ð Accelerate the development of new features
- ð Fix bugs and improve stability
- ð Enhance documentation and tutorials
- ð Provide better community support
- ð» Maintain infrastructure and demo servers
Stargazers over time
English | Español | ç®ä½ä¸æ | ç¹é«ä¸æ | Tiếng Viá»t | æ¥æ¬èª
Table of Contents
About The Project
Demo
URLï¼https://demo.nginxui.com
- Usernameï¼admin
- Passwordï¼admin
Features
- Online statistics for server indicators such as CPU usage, memory usage, load average, and disk usage.
- Automatic configuration backup after changes, with version comparison and restore capabilities
- Cluster management supporting mirroring operations to multiple nodes, making multi-server environments easy to manage
- Export encrypted Nginx / Nginx UI configurations for quick deployment and recovery to new environments
- Enhanced online ChatGPT assistant supporting multiple models, including Deepseek-R1's chain-of-thought display to help you better understand and optimize configurations
- MCP (Model Context Protocol) provides special interfaces for AI agents to interact with Nginx UI, enabling automated configuration management and service control.
- One-click deployment and automatic renewal Let's Encrypt certificates.
- Online editing websites configurations with our self-designed NgxConfigEditor which is a user-friendly block editor for nginx configurations or Ace Code Editor which supports LLM Code Completion and highlighting nginx configuration syntax.
- Online view Nginx logs
- Written in Go and Vue, distribution is a single executable binary.
- Automatically test configuration file and reload nginx after saving configuration.
- Web Terminal
- Dark Mode
- Responsive Web Design
Internationalization
We proudly offer official support for:
- English
- Simplified Chinese
- Traditional Chinese
As non-native English speakers, we strive for accuracy, but we know there's always room for improvement. If you spot any issues, we'd love your feedback!
Thanks to our amazing community, additional languages are also available! Explore and contribute to translations on Weblate.
Built With
- The Go Programming Language
- Gin Web Framework
- GORM
- Vue 3
- Vite
- TypeScript
- Ant Design Vue
- vue3-gettext
- vue3-ace-editor
- Gonginx
- lego
Getting Started
Before Use
The Nginx UI follows the Debian web server configuration file standard. Created site configuration files will be placed in the sites-available
folder that under the Nginx configuration folder (auto-detected). The configuration files for an enabled site will create a soft link to the sites-enabled
folder. You may need to adjust the way the configuration files are organised.
For non-Debian (and Ubuntu) systems, you may need to change the contents of the nginx.conf
configuration file to the Debian style as shown below.
http {
# ...
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
For more information: debian/conf/nginx.conf
Installation
Nginx UI is available on the following platforms:
- macOS 11 Big Sur and later (amd64 / arm64)
- Windows 10 and later (amd64 / arm64)
- Linux 2.6.23 and later (x86 / amd64 / arm64 / armv5 / armv6 / armv7 / mips32 / mips64 / riscv64 / loongarch64)
- Including but not limited to Debian 7 / 8, Ubuntu 12.04 / 14.04 and later, CentOS 6 / 7, Arch Linux
- FreeBSD
- OpenBSD
- Dragonfly BSD
- Openwrt
You can visit latest release to download the latest distribution, or just use installation scripts for Linux.
Usage
In the first runtime of Nginx UI, please visit http://<your_server_ip>:<listen_port>
in your browser to complete the follow-up configurations.
From Executable
Run Nginx UI in Terminal
nginx-ui -config app.ini
Press Control+C
in the terminal to exit Nginx UI.
Run Nginx UI in Background
nohup ./nginx-ui -config app.ini &
Stop Nginx UI with the follow command.
kill -9 $(ps -aux | grep nginx-ui | grep -v grep | awk '{print $2}')
With Systemd
If you are using the installation script for Linux, the Nginx UI will be installed as nginx-ui
service in systemd. Please use the systemctl
command to control it.
Start Nginx UI
systemctl start nginx-ui
Stop Nginx UI
systemctl stop nginx-ui
Restart Nginx UI
systemctl restart nginx-ui
With Docker
Our docker image uozi/nginx-ui:latest is based on the latest nginx image and can be used to replace the Nginx on the host. By publishing the container's port 80 and 443 to the host, you can easily make the switch.
Note
- When using this container for the first time, ensure that the volume mapped to /etc/nginx is empty.
- If you want to host static files, you can map directories to container.
Deploy with Docker
-
Then deploy nginx-ui like this:
docker run -dit \
--name=nginx-ui \
--restart=always \
-e TZ=Asia/Shanghai \
-v /mnt/user/appdata/nginx:/etc/nginx \
-v /mnt/user/appdata/nginx-ui:/etc/nginx-ui \
-v /var/run/docker.sock:/var/run/docker.sock \
-p 8080:80 -p 8443:443 \
uozi/nginx-ui:latest
- When your docker container is running, Log in to nginx-ui panel with
http://<your_server_ip>:8080/install
.
Deploy with Docker-Compose
-
Create a docker-compose.yml file like this:
services:
nginx-ui:
stdin_open: true
tty: true
container_name: nginx-ui
restart: always
environment:
- TZ=Asia/Shanghai
volumes:
- '/mnt/user/appdata/nginx:/etc/nginx'
- '/mnt/user/appdata/nginx-ui:/etc/nginx-ui'
- '/var/www:/var/www'
- '/var/run/docker.sock:/var/run/docker.sock'
ports:
- 8080:80
- 8443:443
image: 'uozi/nginx-ui:latest'
- Then creat your container by:
docker compose up -d
- When your docker container is running, Log in to nginx-ui panel with
http://<your_server_ip>:8080/install
.
Manual Build
On platforms that do not have an official build version, they can be built manually.
Prerequisites
-
Make
-
Golang 1.23+
-
node.js 21+
npx browserslist@latest --update-db
Build Frontend
Please execute the following command in app
directory.
pnpm install
pnpm build
Build Backend
Please build the app first, and then execute the following command in the project root directory.
go generate
go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go
Script for Linux
Basic Usage
Install and Upgrade
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install
The default listening port is 9000
, and the default HTTP Challenge port is 9180
.
If there is a port conflict, please modify /usr/local/etc/nginx-ui/app.ini
manually,
then use systemctl restart nginx-ui
to reload the Nginx UI service.
Remove Nginx UI, except configuration and database files
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ remove
More Usage
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ help
Example of Nginx Reverse Proxy Configuration
server {
listen 80;
listen [::]:80;
server_name <your_server_name>;
rewrite ^(.*)$ https://$host$1 permanent;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name <your_server_name>;
ssl_certificate /path/to/ssl_cert;
ssl_certificate_key /path/to/ssl_cert_key;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://127.0.0.1:9000/;
}
}
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
This project is provided under a GNU Affero General Public License v3.0 license that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.
Top Related Projects
Docker container for managing Nginx proxy hosts with a simple, powerful interface
Automated docker nginx proxy integrated with letsencrypt.
Convert
designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot