From 1ebe04ae33e553f73a6a1ee1fdc240288b74d582 Mon Sep 17 00:00:00 2001 From: Danila Vershinin Date: Tue, 3 Feb 2026 15:51:57 +0800 Subject: [PATCH] docs: add pre-built package installation for Ubuntu/Debian Add instructions for installing the module via the GetPageSpeed APT repository, which provides freely available pre-built packages for Debian 12/13 and Ubuntu 20.04/22.04/24.04 (amd64 and arm64). --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e8e71fc..856eaf8 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,31 @@ The Nginx module for adding cookie flag ## Dependencies * [nginx](http://nginx.org) +## Pre-built Packages + +### Ubuntu / Debian + +Pre-built packages for this module are freely available from the GetPageSpeed repository. + +```bash +# Install the repository keyring +sudo install -d -m 0755 /etc/apt/keyrings +curl -fsSL https://extras.getpagespeed.com/deb-archive-keyring.gpg \ + | sudo tee /etc/apt/keyrings/getpagespeed.gpg >/dev/null + +# Add the repository (Ubuntu example - replace 'ubuntu' and 'jammy' for your distro) +echo "deb [signed-by=/etc/apt/keyrings/getpagespeed.gpg] https://extras.getpagespeed.com/ubuntu jammy main" \ + | sudo tee /etc/apt/sources.list.d/getpagespeed-extras.list + +# Install nginx and the module +sudo apt-get update +sudo apt-get install nginx nginx-module-cookie-flag +``` + +The module is automatically enabled after installation. Supported distributions include Debian 12/13 and Ubuntu 20.04/22.04/24.04 (both amd64 and arm64). + +See [the complete setup instructions](https://apt-nginx-extras.getpagespeed.com/apt-setup/). + ## Compatibility * 1.11.x (last tested: 1.11.2) @@ -59,4 +84,4 @@ It is possible to set a default value using symbol "*". In this case flags will Description: Add flag to desired cookie. ## Author -Anton Saraykin [] \ No newline at end of file +Anton Saraykin []