Skip to content

Commit 801b6b2

Browse files
authored
fix/nginx (#17)
* chore: amend current nginx version * docs: provide an example to the path of nginx_brotli * docs: document corresponding script. * fix: spelling * ci(spellcheck): add word
1 parent e4b6bb1 commit 801b6b2

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.wordlist.spellcheck.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ latencies
117117
lifecycle
118118
Lightsail
119119
lookups
120+
lukeify
120121
LUKS
121122
macOS
122123
macOS's

Brotli with Nginx.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ The instructions present in the installation guide on [<span data-nospell>google
88
1. Clone the latest version of `nginx` that is installed on your system.
99

1010
```bash
11-
wget https://nginx.org/download/nginx-1.27.0.tar.gz
12-
tar -xf nginx-1.27.0.tar.gz
11+
wget https://nginx.org/download/nginx-1.27.1.tar.gz
12+
tar -xf nginx-1.27.1.tar.gz
1313
```
1414

1515
2. Clone `ngx_brotli`, and follow the steps listed in the first "Statically compiled" section of the repository.
@@ -23,13 +23,14 @@ The instructions present in the installation guide on [<span data-nospell>google
2323
cd ../../../..
2424
```
2525

26-
If updating the cloned repository, run `git pull --recruse-submodules` instead.
26+
If updating the cloned repository, run `git pull --recurse-submodules` instead.
2727

2828
3. Switch to the `nginx` directory and run the "Dynamically loaded" steps, taking care to ensure the compilation output from `nginx -V` is included when running `./configure`.
2929

3030
```bash
31-
cd nginx-1.27.0
32-
./configure --with-compat --add-dynamic-module=/path/to/ngx_brotli
31+
cd nginx-1.27.1
32+
# Provide the path to the built `nginx_brotli`
33+
./configure --with-compat --add-dynamic-module=../ngx_brotli
3334
```
3435

3536
4. Move the compiled module files:
@@ -55,7 +56,12 @@ If you are dealing with PGP key issues with Nginx's package repositories:
5556
- [Updating the PGP Key for NGINX Software][3]
5657
- [Ubuntu installation guide][4]
5758
59+
## Automation
60+
61+
I have automated this process somewhat—see the corresponding script in the repository [lukeify/scripts][5].
62+
5863
[1]: https://github.com/google/ngx_brotli
5964
[2]: https://github.com/google/ngx_brotli?tab=readme-ov-file#installation
6065
[3]: https://blog.nginx.org/blog/updating-pgp-key-for-nginx-software
6166
[4]: https://nginx.org/en/linux_packages.html#Ubuntu
67+
[5]: https://github.com/lukeify/scripts/blob/main/src/compile_brotli_for_nginx.sh

0 commit comments

Comments
 (0)