Skip to content

Instantly share code, notes, and snippets.

View saras008's full-sized avatar
🏠
Working from home

saras008 saras008

🏠
Working from home
View GitHub Profile
@saras008
saras008 / nginx_modsecurity.log
Created May 13, 2020 03:17 — forked from vikas027/nginx_modsecurity.log
Nginx compiled with ModSecurity (with JSON Support)
## OS Ubuntu 17.10
## Pre-Requisites
# apt-get install -y git build-essential libpcre3 libpcre3-dev libssl-dev libtool autoconf apache2-dev libxml2-dev libcurl4-openssl-dev automake pkgconf dialog apt-utils
# apt-get install -y g++ flex bison curl doxygen libyajl-dev libgeoip-dev libtool dh-autoreconf libcurl4-gnutls-dev libxml2 libpcre++-dev libxml2-dev libyajl2 yajl-tools
# apt-get install -y libgd2-xpm-dev libgeoip-dev libpam-dev libpcre3 libpcre3-dev google-perftools libgoogle-perftools-dev libatomic-ops-dev libperl-dev
# export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig
## ModSecurity
# cd /usr/src
@saras008
saras008 / ansible_semaphore_ubuntu.md
Last active November 9, 2018 02:12 — forked from thedumbtechguy/ansible_semaphore_ubuntu.md
Install Ansible Semaphore on Ubuntu

Ansible Installation

Ansible is a powerful configuration management tool that we use in managing our infrastructure and applications.

It requires a centralized Control server and can connect to hosts over an array of connection types including SSH.

Controller Setup

The Ansible controller will run our playbooks. This needs both Ansible and Semaphore (web based management console) setup.

@saras008
saras008 / etc-nginx-conf.d-observium.conf
Created March 26, 2018 10:19 — forked from oogali/etc-nginx-conf.d-observium.conf
Observium Nginx configuration
server {
listen 80;
server_name observium.yourdomain.com;
access_log /var/log/nginx/observium-access_log combined;
error_log /var/log/nginx/observium-error_log warn;
root /opt/observium/html;
client_max_body_size 10m;
client_body_buffer_size 8K;