How to enable HashiCorp Vault audit logs

Enable HashiCorp Vault audit logs. ...

How to use HAProxy to redirect connection to active Vault cluster

Use HAProxy to redirect connection to active HashiCorp Vault cluster. ...

How to ensure that HAProxy keep up with Docker name resolution

Ensure that HAProxy keep up with Docker name resolution. ...

How to access service socket as a regular user

Create an exception for a regular user to access service socket using systemd. ...

How to enforce dynamically generated passwords for basic authentication

Use HAProxy with Lua to enforce dynamically generated passwords for basic authentication. ...

November 11, 2020 · milosz · HAProxy · Lua

How to serve single file using HAProxy

Use simple HAProxy configuration hacks to serve a single static file. ...

How to merge multi-process HAProxy statistics using GNU Awk

Merge multi-process HAProxy statistics using GNU Awk. This is a duct tape solution, as you should definitely use Lua. ...

How to merge multi-process HAProxy statistics using Lua

Merge multi-process HAProxy statistics using Lua. ...

How to use HAProxy stats socket

Use HAProxy stats socket to determine current application status. ...

How to mark which backend server is used

There are use cases where you need to know which backend server is used, so use specific header to send target server name to backend. ...

How to stop requests with empty or incorrect host header

Handle domains that are not defined in the configuration using dedicated backend. ...

How to define backup backend in HAProxy configuration

Define backup backend in HAProxy configuration to choose used backend depending on the number of usable servers. ...

How to aggregate weekly data to create custom statistics

Recently, I have parsed logs of several applications to generate custom weekly reports. It was a fascinating exercise. ...

How to use HTTP host header to choose HAProxy backend

Dynamically choose HAProxy backend depending on the HTTP host header, Lua programming language and environment variable. ...

How to redirect every request to defined domain to particular location

Recently, I have moved my personal source code to GitLab. It rendered self-hosted git repository at repository.sleeplessbeastie.eu obsolete, so I have created simple redirection on HAProxy load balanced to cover this specific case. ...

How to use variable to choose HAProxy backend

Define and use a variable to dynamically choose HAProxy backend depending on the URL parameter, HTTP header field, and cookie value. ...

How to block particular IP addresses on HAProxy

Block particular IP addresses on HAProxy load balancer using simple Access Control List. ...

How to define basic authentication on HAProxy

Define basic authentication on HAProxy load balancer limit access to specific backends. ...

How to define allowed HTTP methods on HAProxy

Define allowed HTTP methods on HAProxy load balancer using simple Access Control Lists. ...

How to configure HTTP/2 in http mode on HAProxy and fix bad request problem

Enable HTTP/2 on HAProxy 1.8 and temporarily fix the bad request problem with the Nginx backend using FastCGI/uWSGI. ...

How to install HAProxy 1.8 on Ubuntu 16

Install recent HAProxy version to take advantage of the new fancy features. ...