Skip to content

Commit

Permalink
CI: Upgrade nginx to version 1.25.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Dec 30, 2023
1 parent d40034f commit 705d37c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
matrix:
include:
- os: ubuntu-22.04
nginx-version: 1.23.4
nginx-version: 1.25.3
steps:
- uses: actions/checkout@v4
- name: Install dependencies
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Install nginx
env:
NGINX_VERSION: ${{ matrix.nginx-version }}
run: ci/install-nginx.sh --add-module=${{ github.workspace }}/
run: ci/install-nginx.sh --add-module=$GITHUB_WORKSPACE/
- name: Build Redis rate limiter module
run: ci/build-rate-limiter.sh
- name: Install Redis rate limiter module
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This implementation is based on the following [Redis module](https://redis.io/to
* [redis-rate-limiter](https://github.com/onsigntv/redis-rate-limiter)

Which offers a straightforward implementation of the fairly sophisticated [generic cell rate algorithm](https://en.wikipedia.org/wiki/Generic_cell_rate_algorithm), in 130 lines of C, without external dependencies.

*This module is not distributed with the Nginx source.*

## Status
Expand Down Expand Up @@ -66,13 +66,13 @@ location = /quota {

You can install this module manually by recompiling the standard Nginx core as follows:

1. Grab the nginx source code from [nginx.org](http://nginx.org) (this module is tested on version 1.23.4).
1. Grab the nginx source code from [nginx.org](http://nginx.org) (this module is tested on version 1.25.3).
2. Clone this repository into a newly created directory (for e.g. `./rate-limit-nginx-module`)
3. Build the nginx source with this module:
```bash
wget https://nginx.org/download/nginx-1.23.4.tar.gz
tar -xzvf nginx-1.23.4.tar.gz
cd nginx-1.23.4/
wget https://nginx.org/download/nginx-1.25.3.tar.gz
tar -xzvf nginx-1.25.3.tar.gz
cd nginx-1.25.3/

git clone https://github.com/weserv/rate-limit-nginx-module rate-limit-nginx-module

Expand Down Expand Up @@ -116,6 +116,6 @@ export PATH=/path/to/your/nginx/sbin:$PATH
prove -I/path/to/test-nginx/lib t/sanity.t
```

To run a specific test block in a particular test file, add the line
`--- ONLY` to the test block you want to run, and then use the `prove`
To run a specific test block in a particular test file, add the line
`--- ONLY` to the test block you want to run, and then use the `prove`
utility to run that `.t` file.

0 comments on commit 705d37c

Please sign in to comment.