https://github.com/iamdoubz/nginx-custom
Custom build configs for freenginx/nginx Ubuntu 22.04
https://github.com/iamdoubz/nginx-custom
brotli freenginx geoip2 h3 nginx quic
Last synced: 9 months ago
JSON representation
Custom build configs for freenginx/nginx Ubuntu 22.04
- Host: GitHub
- URL: https://github.com/iamdoubz/nginx-custom
- Owner: iamdoubz
- License: mit
- Created: 2025-01-15T03:44:06.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-02-10T22:56:12.000Z (11 months ago)
- Last Synced: 2025-02-15T00:26:39.745Z (11 months ago)
- Topics: brotli, freenginx, geoip2, h3, nginx, quic
- Language: Shell
- Homepage: https://git.dou.bet/iamdoubz/nginx-custom
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nginx-custom
Iamdoubz custom nginx config for Ubuntu 22.04. I was tired of forgetting what I used to compile [nginx](https://nginx.org/en/docs/) so I made my own repo.
# Enhancements
- Support for H3/QUIC
- Brotli compression
- GeoIP2 (MaxMind)
- [Headers-More](https://github.com/openresty/headers-more-nginx-module)
- debug
# Dependencies
There are quite a few dependencies to install. The main ones being:
- build-essential
- git
- curl
- wget
- [libmaxminddb](https://github.com/maxmind/libmaxminddb)
- And probably others...
# How to download
Please use the provided script `nginx.sh`. Make sure to make it executable first `sudo chmod +x nginx.sh`. Then run it with `./nginx.sh`.
# Make a backup of your existing binary
Type `which nginx` and make a copy i.e. `sudo cp /usr/sbin/nginx /usr/sbin/nginx_apt`. **NOTE**: if you have *not* installed nginx, you do not have to do this step.
# Install newly compiled binary
1. `cd /path/to/buildroot/nginx-1.27.3`
2. `sudo make install`
3. Check nginx `sudo nginx -t`
4. Reload nginx `sudo nginx -s reload`
5. Verify new version `sudo nginx -v` should output `nginx version: nginx/1.27.3 (w/GeoIP2,Brotli,H3,Headers-More,debug)`
# Windows
I have pre-compiled both branches for Windows. If you would like to download them, follow the link to my personal Gitea site, and navigate to the "Releases" page.