Viewing 17 reply threads
  • Author
    Posts
    • #3854 Reply
      Dan
      Guest

      Is it possible to remove these optional modules from the Nginx-light package?

      Nginx-light optional module
      –with-http_dav_module
      –with-http_slice_module

      Reason?
      To make the package even more lighter 🙂

    • #3855 Reply
      Dan
      Guest

      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.

    • #3858 Reply
      Thijs Eilander
      Keymaster

      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

    • #3860 Reply
      Thijs Eilander
      Keymaster

      You can try to install nginx-core, it should be lighter than light 😉

      • #3861 Reply
        Dan
        Guest

        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.

    • #3863 Reply
      Thijs Eilander
      Keymaster

      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_module

      core_configure_flags := \
      $(common_configure_flags) \
      –with-http_sub_module \
      –with-http_stub_status_module
      # –without-http_geo_module

    • #3865 Reply
      Dan
      Guest

      Yes, it seems nginx-light is the most light-weight package.

    • #3866 Reply
      Dan
      Guest
    • #3876 Reply
      Thijs Eilander
      Keymaster

      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

    • #3909 Reply
      Dan
      Guest

      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.

    • #3974 Reply
      Thijs Eilander
      Keymaster

      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

    • #3975 Reply
      Thijs Eilander
      Keymaster

      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

    • #4000 Reply
      Dan
      Guest

      Is this change normal or intended?
      –error-log-path=stderr

      It’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.

    • #4006 Reply
      Dan
      Guest

      From this diff log:
      https://www.diffchecker.com/TmzLxg8s/

      Why are these flags removed from the minimal build as well?
      -static-libstdc++ -flto -lpcre

      Sorry, I was just curious.
      🙂

    • #4007 Reply
      Thijs Eilander
      Keymaster

      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 upstream

      In short: I needed those flags to compile everything on every distribution (stretch,buster,bullseye,bionic,focal,jammy), but now they compile fine without those 🙂

    • #4010 Reply
      Dan
      Guest

      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.

    • #4009 Reply
      Dan
      Guest

      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

    • #4014 Reply
      Thijs Eilander
      Keymaster

      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]

    • #4015 Reply
      Dan
      Guest

      Thank you so much for the great support.

Viewing 17 reply threads
Reply To: Is it possible to remove these optional modules from the Nginx-light package?
Your information: