aboutsummaryrefslogtreecommitdiff
path: root/net/nginx/files-luci-support
Commit message (Collapse)AuthorAge
* nginx: autoload dynamic modulesSean Khan2024-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In current setup, dynamic modules are not autoloaded, requiring users to create and load additional config files. We should assume that if a user installs additional modules, they want them 'on' by default. This commit does the following: 1.) generates a module load config in '/etc/nginx/modules.d' with the format '${module_name}'.module (i.e. /etc/nginx/modules.d/ngx_http_geoip2.module) 2.) deletes previous module conf for 'luci' /etc/nginx/modules.d/luci.module if it exists, this will prevent 'module already loaded' errors. The following is a portion of the final output when using the default uci template `/etc/nginx/uci.conf.template` (via nginx-util): ``` nginx -T -c '/etc/nginx/uci.conf' load_module /usr/lib/nginx/modules/ngx_http_brotli_filter_module.so; load_module /usr/lib/nginx/modules/ngx_http_brotli_static_module.so; load_module /usr/lib/nginx/modules/ngx_http_dav_ext_module.so; load_module /usr/lib/nginx/modules/ngx_http_geoip2_module.so; load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so; load_module /usr/lib/nginx/modules/ngx_http_lua_module.so; load_module /usr/lib/nginx/modules/ngx_http_naxsi_module.so; load_module /usr/lib/nginx/modules/ngx_http_ts_module.so; load_module /usr/lib/nginx/modules/ngx_http_ubus_module.so; load_module /usr/lib/nginx/modules/ngx_rtmp_module.so; load_module /usr/lib/nginx/modules/ngx_stream_module.so; load_module /usr/lib/nginx/modules/ngx_stream_geoip2_module.so; ``` Signed-off-by: Sean Khan <datapronix@protonmail.com>
* nginx: introduce support for dynamic modulesChristian Marangi2023-04-27
| | | | | | | | | | | | | | | | | Start building sub package that provide dynamic modules. Each module needs to be loaded using load_modules. Refer to nginx documentation on how to use this. This should result in lower memory usage as only used module are loaded. Also fix the uci-default scripts to add the required ubus module for luci module. -fvisibility=hidden is needed to be dropped to correctly support loading dynamic modules. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* nginx: adapt to changed ubus socket pathDaniel Golle2020-10-29
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* nginx: set log level to crit for luci-staticPeter Stadler2020-05-24
| | | | | | Do not write errors for inexistent files to the system log. Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
* nginx: use /etc/nginx/nginx.conf enabling conf.d/Peter Stadler2020-01-28
| | | | | | | | | | | | | | | | | | Instead of the default nginx.conf file this file is a small variant without examples that enables the /etc/nginx/conf.d/ directory. It will pull in all configuration files from the conf.d directory. So, other packages can add their server parts in the conf.d directory without modifying the main nginx.conf file (cf. #9860). Changed also the default logging behavior: error_log stderr; # the init forwards it to logd access_log off; See the updated documentation at: https://openwrt.org/docs/guide-user/services/webserver/nginx Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
* nginx: change luci dependency and fix luci nosslAnsuel Smith2020-01-01
| | | | | | | Luci nginx config file for non ssl varian had user as nobody nogroup. This cause some problem with ubus use. Luci file support package depends on uwsgi-cgi. As this package will be renamed shortly to a more generic version, make the subpackage depends on the uwsgi subpackage only. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* nginx: fix missing cgi-exec definitionAnsuel Smith2019-12-29
| | | | | | | Add missing cgi-io exec definition to fix broken luci webui as now it does actually use it. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* nginx: adds ubus external moduleAnsuel Smith2019-10-30
| | | | | | | | | - Adds ubus module to nginx - Select module by default - Adds script to detect ubus module and append config for luci - Switch all external module to xz Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* nginx: adds new socket to luci uwsgi configAnsuel Smith2019-10-12
| | | | Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* nginx: small conf files fixDENG Qingfang2019-08-05
| | | | | | | Add Gzip compression type Remove unnecessary spaces from conf files Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
* nginx: unified indentation character and add additional config entryJames Qian2018-12-12
| | | | | | | | | | | | The original configure file mixed tab and space characters as indentation, so use 4 spaces as the default indentation character. Add /etc/nginx/conf.d/*.conf as nginx additional configure files. Then we can add individual conf file for other http applications without modify the main nginx configure file. Signed-off-by: James Qian <sotux82@gmail.com>
* nginx: improve luci configAnsuel Smith2018-08-20
| | | | Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* nginx: change default user for luci confAnsuel Smith2018-07-18
| | | | | | Currently the nginx user for the default luci config is root... This is dangerous and unnecessary, reset it back to nobody nogroup. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* nginx: fix bug in uci-defaults scriptsAnsuel Smith2018-07-14
| | | | | | Currently the uci-defaults scripts reset nginx config even it they are valid due to a bug in the if condition. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* nginx: add luci-support packageAnsuel Smith2018-06-14
This adds an additional file for ngix that contains all the files need to make luci works on the nginx webserver. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>