Yet another WebUI for Nginx
Yet another Nginx Web UI, developed by 0xJacky, Hintay and Akino.
Proudly hosted on AtomGit — a part of the G-Star program.
## Documentation To check out docs, visit [nginxui.com](https://nginxui.com).If you find this project helpful, please consider sponsoring us to support ongoing development and maintenance.
Protect and accelerate websites and APIs with consistent access performance across mainland China and worldwide, and extend acceleration and security to native and mobile apps through client SDKs — Self-hosted private CDN|Subscription-based anti-DDoS CDN|A self-controlled, flexibly composable CDN network.
Join the official Nginx UI WeChat community group to discuss usage, deployment ideas, and troubleshooting with other community members.
Scan the QR code below to add us on WeChat, and include Nginx UI Community Group in your request. The administrator will invite you to the official community group.
Your support helps us:
Thanks to JetBrains for supporting us with free open source licenses.
English | Español | 简体中文 | 繁體中文 | Tiếng Việt | 日本語
Table of ContentsWe proudly offer official support for:
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.
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
Nginx UI is available on the following platforms:
You can visit latest release to download the latest distribution, or just use installation scripts for Linux.
In the first runtime of Nginx UI, please visit http://<your_server_ip>:<listen_port>
in your browser to complete the follow-up configurations.
Run Nginx UI in Terminal
nginx-ui -config app.iniPress 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}')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-uiStop Nginx UI
systemctl stop nginx-uiRestart Nginx UI
systemctl restart nginx-uiOur 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.
conf.d/nginx-ui.conf updates.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:latesthttp://<your_server_ip>:8080/install.
If you change the port mapping, access Nginx UI through the host port mapped to container port 80 instead.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'docker compose up -dhttp://<your_server_ip>:8080/install.
If you change the port mapping, access Nginx UI through the host port mapped to container port 80 instead.On platforms that do not have an official build version, they can be built manually.
Make
Golang 1.23+
node.js 21+
npx browserslist@latest --update-dbPlease execute the following command in app directory.
bun install
bun run buildPlease 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.goInstall and Upgrade
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ installThe 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)" @ removebash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ help…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!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')Trigger external notification on health check
Namespace upstream sync error
Namespace sites replacement issue
Request: files and certs in namespace
Access logs not showing domain (for some sites)
Integration with FAIL2BAN
Feature request: Support Unix domain socket as the nginx-ui listen address
【功能建议】多主机时显示每台主机分配了多少流量
Feature Request: Optional OIDC-Only Authorization
Request: Built-in Load Balancing Management & Traffic Visualization