Logging Real IP with haproxy and nginx

References https://ma.ttias.be/nginx-access-log-log-the-real-users-ip-instead-of-the-proxy/ haproxy.conf backend systemerror.co.za ... option httpclose option forwardfor http-request set-header X-Forwarded-Port %[dst_port] http-request add-header X-Forwarded-Proto https if { ssl_fc } nginx.conf http { ... log_format main '$http_x_forwarded_for - $remote_user [$time_local] ' '"$request" $status…

web2tg api for websites

source code: https://gitlab.com/jayendren/ruby_apis/tree/develop/web2tg Getting started Requirements API Send Message Get Message Delete Message Update Message Author Getting started About sinatra/mongodb/rufus-scheduler based web2tg api (REST) for allowing websites with chat integration frames/windows to send messages to telegram and provide an…

The 12 Factor App

Ref: http://12factor.net/ Introduction In the modern era, software is commonly delivered as a service: called web apps, or software-as-a-service. The twelve-factor app is a methodology for building software-as-a-service apps that: Use declarative formats for setup automation, to minimize time and cost for new developers joining the project; Have…

Building ARM cluster: Docker, fleet, etcd...Distribute containers!

Original post date: 2016-02-15 22:11 Ref: http://mkaczanowski.com/building-arm-cluster-part-3-docker-fleet-etcd-distribute-containers/ Preface ARCH Linux install RPI [armv6] systemd files Install go, docker, fleet, etcd, cloudinit Build Docker images RPI [armv6] Run NGINX container with fleet Demo Preface In this post we are going to install ARCH Linux on a armv{…

git flow cheatsheet

Ref: http://danielkummer.github.io/git-flow-cheatsheet ★ ★ ★ About git-flow are a set of git extensions to provide high-level repository operations for Vincent Driessen's branching model. This cheatsheet shows the basic usage and effect of git-flow operations ★ ★ ★ Basic tips Git flow provides excellent command line help and output. Read it carefully to…