Nginx-full package not full featured

nginx-full is supposed to have all features enabled but "stream" directive in the configuration not recognized

:~#  nginx -T -c '/etc/nginx/uci.conf'
2023/12/08 10:59:34 [emerg] 3716#0: unknown directive "stream" in /etc/nginx/module.d/services.mqtt.module:1
nginx: configuration file /etc/nginx/uci.conf test failed

and services.mqtt.module content is an ssl proxy for a not ssl mqtt broker:

stream {
  server {
    listen 8883 ssl;
    # mqtt socket secured TCP traffic will be forwarded unsecured to the specified server
    proxy_pass localhost:1883;
	ssl_certificate '/etc/acme/******/*******.cer';
	ssl_certificate_key '/etc/acme/******/******.key';
    # ssl_session_cache shared:le_nginx_SSL:10m;
    ssl_session_timeout 1440m;
    ssl_session_tickets off;
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers off;
    ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA";
    # ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
  }
}

for openwrt 23 it is possible to install nginx-mod-stream
then dynamically load it. put in nginx config file:

load_module /usr/lib/nginx/modules/ngx_stream_module.so;

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.