[GH-ISSUE #818] stream日志配置不了吗 #433

Closed
opened 2026-02-26 12:08:20 +03:00 by kerem · 7 comments
Owner

Originally created by @wtjperi2003 on GitHub (Jan 13, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/818

Describe the bug
stream里配置一个能记录tcp连接的日志

配置如下
Steps to reproduce the behavior:
log_format basic '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time';

access_log /spool/logs/nginx-access.log basic buffer=32k;

是不是nginx里少了ngx_stream_log_module模块
官网的配置文档

Originally created by @wtjperi2003 on GitHub (Jan 13, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/818 **Describe the bug** stream里配置一个能记录tcp连接的日志 配置如下 Steps to reproduce the behavior: log_format basic '$remote_addr [$time_local] ' '$protocol $status $bytes_sent $bytes_received ' '$session_time'; access_log /spool/logs/nginx-access.log basic buffer=32k; 是不是nginx里少了ngx_stream_log_module模块 [官网的配置文档](https://nginx.org/en/docs/stream/ngx_stream_log_module.html)
kerem 2026-02-26 12:08:20 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Jan 13, 2025):

Nginx UI 的部署方式?

<!-- gh-comment-id:2586490333 --> @0xJacky commented on GitHub (Jan 13, 2025): Nginx UI 的部署方式?
Author
Owner

@wtjperi2003 commented on GitHub (Jan 14, 2025):

Nginx UI 的部署方式?

docker

docker run -d \
  --name=nginx-ui \
  --restart=always \
  -e TZ=Asia/Shanghai \
  -e NGINX_UI_NGINX_LOG_DIR_WHITE_LIST=/var/log/nginx \
  -v /nginx-ui/nginx:/etc/nginx \
  -v /nginx-ui/ui:/etc/nginx-ui \
  --net host \
  uozi/nginx-ui:latest
<!-- gh-comment-id:2588537834 --> @wtjperi2003 commented on GitHub (Jan 14, 2025): > Nginx UI 的部署方式? docker ``` docker run -d \ --name=nginx-ui \ --restart=always \ -e TZ=Asia/Shanghai \ -e NGINX_UI_NGINX_LOG_DIR_WHITE_LIST=/var/log/nginx \ -v /nginx-ui/nginx:/etc/nginx \ -v /nginx-ui/ui:/etc/nginx-ui \ --net host \ uozi/nginx-ui:latest ```
Author
Owner

@0xJacky commented on GitHub (Jan 20, 2025):

我们提供的镜像里没有这个模块,如果需要用,需要自行安装

<!-- gh-comment-id:2601278757 --> @0xJacky commented on GitHub (Jan 20, 2025): 我们提供的镜像里没有这个模块,如果需要用,需要自行安装
Author
Owner

@wtjperi2003 commented on GitHub (Jan 20, 2025):

新版本里考虑内置吗?

<!-- gh-comment-id:2601514293 --> @wtjperi2003 commented on GitHub (Jan 20, 2025): 新版本里考虑内置吗?
Author
Owner

@0xJacky commented on GitHub (Jan 20, 2025):

我其实是比较建议专业用户使用二进制安装,管理宿主机上的 Nginx UI

<!-- gh-comment-id:2601531586 --> @0xJacky commented on GitHub (Jan 20, 2025): 我其实是比较建议专业用户使用二进制安装,管理宿主机上的 Nginx UI
Author
Owner

@0xJacky commented on GitHub (Jan 21, 2025):

Nginx UI 目前的镜像是 Nginx UI 主程序和官方版 Nginx (几乎无扩展模块)打包在一起的,对于大多数为了开箱即用的,非企业级用户来说功能是够用的。由于 Nginx 的扩展模块很多,而且对 Nginx 版本依赖不尽相同,对于项目维护者来说,将精力放在这方面上是不实际的,也不可能。

对于高级玩家或企业级用户,建议使用基于宿主机的部署方式,使用 Nginx UI 直接管理宿主机上的 Nginx,这样您可以方便的安装你需要的用到的扩展模块,当然你也可以构建自己的 Docker 镜像。

如果你希望使用 Docker 部署,未来我们也会提供仅包含 Nginx UI 的镜像。

The current Nginx UI image includes the main program and an official version of Nginx with minimal extensions. For most users who want a ready-to-use solution that isn't enterprise-level, this setup provides sufficient functionality. Given the numerous extension modules available for Nginx and their varying dependencies on different versions, it is impractical for project maintainers to focus on managing these modules.

For advanced users or enterprise-level customers, we recommend deploying Nginx UI directly on the host machine to manage Nginx there. This approach allows you to easily install the extension modules you need, and you can also build your own Docker images.

If you prefer using Docker for deployment, in the future, we will provide an image that includes only Nginx UI.

<!-- gh-comment-id:2603521398 --> @0xJacky commented on GitHub (Jan 21, 2025): Nginx UI 目前的镜像是 Nginx UI 主程序和官方版 Nginx (几乎无扩展模块)打包在一起的,对于大多数为了开箱即用的,非企业级用户来说功能是够用的。由于 Nginx 的扩展模块很多,而且对 Nginx 版本依赖不尽相同,对于项目维护者来说,将精力放在这方面上是不实际的,也不可能。 对于高级玩家或企业级用户,建议使用基于宿主机的部署方式,使用 Nginx UI 直接管理宿主机上的 Nginx,这样您可以方便的安装你需要的用到的扩展模块,当然你也可以构建自己的 Docker 镜像。 如果你希望使用 Docker 部署,未来我们也会提供仅包含 Nginx UI 的镜像。 The current Nginx UI image includes the main program and an official version of Nginx with minimal extensions. For most users who want a ready-to-use solution that isn't enterprise-level, this setup provides sufficient functionality. Given the numerous extension modules available for Nginx and their varying dependencies on different versions, it is impractical for project maintainers to focus on managing these modules. For advanced users or enterprise-level customers, we recommend deploying Nginx UI directly on the host machine to manage Nginx there. This approach allows you to easily install the extension modules you need, and you can also build your own Docker images. If you prefer using Docker for deployment, in the future, we will provide an image that includes only Nginx UI.
Author
Owner

@wtjperi2003 commented on GitHub (Jan 21, 2025):

好吧

<!-- gh-comment-id:2603543836 --> @wtjperi2003 commented on GitHub (Jan 21, 2025): 好吧
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#433
No description provided.