Life!
  • home
  • [matrix]
  • slack
  • {photos}
  • cloud
  • webmail
  • git
  • [Estate]
  • stats
  • archive
Sign in Subscribe

HAProxy

A collection of 4 posts
Use different backend depending on access-request hostname with HAProxy
HAProxy

Use different backend depending on access-request hostname with HAProxy

frontend frontend_main ... use_backend %[req.hdr(host),lower,map(/usr/local/etc/haproxy/subdomains.map,backend_default)] he content of /usr/local/etc/haproxy/subdomains.map would look like this: #domainname backendname one.example.com backend_one two.example.com backend_two ... etc.domain1.com backend_etc
25 Oct 2024
HAProxy

Conversion PFX to PEM certificate suitable for HAproxy

If you are maintaining such haproxy ssl offloading, probably this quick'n'dirty script will be useful for you. !#/bin/sh openssl pkcs12 -in $1.pfx -out $1_nokey.pem -nokeys && \ openssl pkcs12 -in $1.pfx -out $1_withkey.pem && \ openssl rsa -in $1_
05 Jul 2023
HAProxy

How to made Websocket traffic to go via HAProxy

The solution was simple: Tell HAProxy to tag Websocket traffic, and set up a separate but otherwise identical backend for this specific use case. One of typical applications which is using Websocket traffic is Slack. An excelent opensource alternative of it named Mattermost. The result looks something like this in
28 Jan 2021
FreeBSD

How To Secure HAProxy with Let's Encrypt

Combine fullchain.pem and privkey.pem > DOMAIN='example.com' ; sudo -E bash -c 'cat /usr/local/etc/letsencrypt/live/$DOMAIN/fullchain.pem /usr/local/etc/letsencrypt/live/$DOMAIN/privkey.pem > /usr/local/etc/haproxy/$DOMAIN.pem' The first thing we want to add is
27 Jan 2021 1 min read
Page 1 of 1
Life! © 2025
  • NewsLetter
Powered by Ghost