Skip to content

Instantly share code, notes, and snippets.

View habnai's full-sized avatar

Habnai habnai

View GitHub Profile
@habnai
habnai / build_nginx_from_source.sh
Created February 28, 2023 18:29 — forked from a-luna/build_nginx_from_source.sh
Shell Script: Build NGINX from Source with Third Party Modules (Cache Purge, GeoIP2), Completely Non-Interactive, No User Input Required
#!/bin/bash -e
# build_nginx_from_source.sh
# Author: Aaron Luna
# Website: alunablog.com
#
# This script downloads the source code for the latest version of NGINX
# (libraries required to build various NGINX modules are also downloaded)
# and builds NGINX according to the options specified in the ./configure
# command. Many of the possible configuration options are explained at
# the link below:
@habnai
habnai / haproxy_ssl_passthrout.txt
Last active December 16, 2022 19:58
haproxy_ssl_passthrought
global
maxconn 5000
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon