- This topic has 19 replies, 1 voice, and was last updated 5 months ago by Dan.
-
AuthorPosts
-
-
DanGuest
Is it possible to remove these optional modules from the Nginx-light package?
Nginx-light optional module
–with-http_dav_module
–with-http_slice_moduleReason?
To make the package even more lighter :) -
DanGuest
But I’m afraid this will cause issues with old PPA users that are already using Nginx-light and configuring those modules in their configs.
-
Thijs EilanderKeymaster
I have to look what the default is in the official debian package, I don’t really want to remove too much defaults from the official package.
I’ll try to look at it soon
-
Thijs EilanderKeymaster
You can try to install nginx-core, it should be lighter than light ;-)
-
DanGuest
Hi, thanks for the suggestion.
Is the nginx-core still from your PPA or repository?
I’ll try to explore that later on test VPS.
-
-
Thijs EilanderKeymaster
yes, I have core. BUt I think I had it the other way around, core seems heavier
differences:
light_configure_flags := \
$(common_configure_flags) \
–with-http_sub_module \
–without-http_browser_module \
–without-http_geo_module \
–without-http_limit_req_module \
–without-http_limit_conn_module \
–without-http_memcached_module \
–without-http_referer_module \
–without-http_split_clients_module \
–without-http_userid_modulecore_configure_flags := \
$(common_configure_flags) \
–with-http_sub_module \
–with-http_stub_status_module
# –without-http_geo_module -
DanGuest
Yes, it seems nginx-light is the most light-weight package.
-
Thijs EilanderKeymaster
I was thinking, maybe we can make an extra package, nginx-stripped or nginx-minimal, which is completly stripped of everything.
DOn’t know yet if I would do it, depends on if the gain is worth the energy
-
DanGuest
I’d say it’s not much worth it :)
I’m not really sure if it matters a lot on the performance aspect.Please disregard this request for now.
-
Thijs EilanderKeymaster
I am thinking about making a package nginx-minimal, but I have to be carefully there because everyone has another definition of minimal :-) Does it need to have http3, or ssl/tls in general? and what about the optional static modules like the slice or sub module?
Right now the light package has the following options:
–with-http_dav_module \
–with-http_gzip_static_module \
–with-http_auth_request_module \
–with-http_realip_module \
–with-http_slice_module \
–with-http_ssl_module \
–with-http_sub_module \
–with-threads \
–with-http_v2_module \
–with-http_v3_module \
–without-http_browser_module \
–without-http_geo_module \
–without-http_limit_req_module \
–without-http_limit_conn_module \
–without-http_memcached_module \
–without-http_referer_module \
–without-http_split_clients_module \
–without-http_userid_module -
Thijs EilanderKeymaster
I created a nginx-minimal package, it’s still on edge.deb.paranoid.nl:8888 and not on the normal repo.
echo “deb http://edge.deb.myguard.nl:8888 jammy main” > /etc/apt/sources.list.d/edge.deb.myguard.nl.list
apt update
apt upgrade
apt install nginx-minimal -
DanGuest
Is this change normal or intended?
–error-log-path=stderrIt’s really minimal and even lighter than Nginx-light. Thank you so much.
I am waiting for this to be pushed into your Ubuntu Launchpad PPA.-
Thijs EilanderKeymaster
I’m glad to hear that the minimal package is ok ;-)
The stderr is intentional: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025858
It makes is possible to log to containers like docker, with the default config it will still log to /var/log/nginx/error.log
-
-
DanGuest
From this diff log:
https://www.diffchecker.com/TmzLxg8s/Why are these flags removed from the minimal build as well?
-static-libstdc++ -flto -lpcreSorry, I was just curious.
:) -
Thijs EilanderKeymaster
lol, those flags are removed from all builds.
-static-libstdc++, I think that was needed for Debian Stretch but I don’t support that anymore
-flto was redundant, it’s in the compiler and ldflags.
-lpcre was to make libnginx-mod-http-lua work as there was no support for PCRE2, but that seems to be fixed upstreamIn short: I needed those flags to compile everything on every distribution (stretch,buster,bullseye,bionic,focal,jammy), but now they compile fine without those :)
-
DanGuest
My previous post about python3-certbot-nginx wasn’t posted for some reason.
The Nginx-minimal isn’t compatible with python3-certbot-nginx, as it requires the main Nginx package.I wish it would still be compatible with the minimal package.
Thank you. -
DanGuest
Hi,
Nginx-minimal seems incompatible with python3-certbot-nginx?
apt install -y nginx-minimal –no-install-recommends
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages will be REMOVED:
nginx nginx-light python3-certbot-nginx
The following NEW packages will be installed:
nginx-minimal
0 upgraded, 1 newly installed, 3 to remove and 4 not upgraded.
Need to get 575 kB of archives.
After this operation, 515 kB disk space will be freed.
Get:1 https://ppa.launchpadcontent.net/eilander/nginx/ubuntu jammy/main amd64 nginx-minimal amd64 1.25.3-4myguard13~jammy [575 kB]
Fetched 575 kB in 2s (231 kB/s)
dpkg: nginx: dependency problems, but removing anyway as you requested:
python3-certbot-nginx depends on nginx.
nginx-light depends on nginx (= 1.25.3-4myguard13~jammy).
nginx-common depends on nginx (>= 1.25.3-4myguard13~jammy) | nginx-minimal (>= 1.25.3-4myguard13~jammy); however:
Package nginx is to be removed.
Package nginx-minimal is not installed.(Reading database … 120012 files and directories currently installed.)
Removing nginx (1.25.3-4myguard13~jammy) …
Selecting previously unselected package nginx-minimal.
(Reading database … 120007 files and directories currently installed.)
Preparing to unpack …/nginx-minimal_1.25.3-4myguard13~jammy_amd64.deb …
Unpacking nginx-minimal (1.25.3-4myguard13~jammy) …
(Reading database … 120011 files and directories currently installed.)
Removing python3-certbot-nginx (1.21.0-1) …
Removing nginx-light (1.25.3-4myguard13~jammy) …
Setting up nginx-minimal (1.25.3-4myguard13~jammy) …
-> Thanks! You installed NGINX from https://deb.myguard.nl -
Thijs EilanderKeymaster
Hi, sometimes I have to approve messages appearantly, if it’s too spammy
I fixed the minimal package, I’ll run a new build.
root@7c941e2ab738:/etc/apt/sources.list.d# apt list –installed | grep nginx
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
nginx-common/bookworm,now 1.25.3-4myguard14~bookworm amd64 [installed,automatic]
nginx-minimal/bookworm,now 1.25.3-4myguard14~bookworm amd64 [installed]
python3-certbot-nginx/stable,now 2.1.0-2 all [installed] -
DanGuest
Thank you so much for the great support.
-
-
AuthorPosts