This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |