93e023a6832b76d956986f44a31fc65e94e212e2
freenginx-custom
Iamdoubz custom freenginx config for Ubuntu 22.04. I was tired of forgetting what I used to compile freenginx so I made my own repo.
Enhancements
- Support for H3/QUIC
- Brotli compression
- Zstandard compression
- GeoIP2
- Headers-More
- Quantum cryptography
- KTLS
- debug
Dependencies
There are quite a few dependencies to install. The main ones being:
- build-essential
- git
- curl
- wget
- cmake
- libmaxminddb
- And probably others...
Additional Packages
How to download
Please use the provided script freenginx.sh. Make sure to make it executable first sudo chmod +x freenginx.sh. Then run it with ./freenginx.sh.
By default only the build steps are printed and all output goes to a log file in the build root. Options:
-vstream all build output (still logged),-qprint only errors and the final summary-r DIRbuild root,-j Nparallel jobs,-l FILElog file,-crunmake cleanfirst--no-brotli,--no-zstd,--no-geoip2,--no-headers,--no-ktls,--no-debug--asmbuild OpenSSL with its assembly optimizations (AES-NI etc.); the default isno-asm- Versions can be set from the environment:
V_NGINX=1.31.6 V_QSSL=3.6.5 ./freenginx.sh
If a step fails, the script stops and prints the end of the log.
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. NOTE: this script for freenginx is built as a drop in replacement for nginx.
Install newly compiled binary
cd /path/to/buildroot/nginx-release-1.29.4sudo make install- Check nginx
sudo nginx -t - Reload nginx
sudo nginx -s reload - Verify new version
sudo nginx -vshould outputnginx version: freenginx/1.29.4 (w/GeoIP2,Brotli,H3,Headers-More,Quantum,debug,KTLS) - Optionally free up disk space with
./freenginx.sh --purge(same-rand versions as the build). It refuses to run if the built binary doesn't match/usr/sbin/nginx.
Description
Custom build configs for freenginx/nginx Ubuntu 22.04
https://github.com/iamdoubz/nginx-custom
Readme
MIT
147 KiB
0 Stars
1 Watchers
0 Forks