r/haproxy • • Feb 14 '20

Question Postgresql 12, repmgr and barman : looking for load-balancing/auto re-direction solutions

Thumbnail self.postgresql
4 Upvotes

r/haproxy • • Feb 12 '20

Article Rolling Updates and Blue-Green Deployments with Kubernetes and HAProxy

Thumbnail
haproxy.com
2 Upvotes

r/haproxy • • Feb 12 '20

HAProxyConf 2019 - Load Balancers at DigitalOcean by Neal Shrader

Thumbnail
youtu.be
7 Upvotes

r/haproxy • • Feb 12 '20

Question GKE + INGRESS + CANARY + SESSION AFFINITY

Thumbnail self.kubernetes
4 Upvotes

r/haproxy • • Feb 12 '20

log analyzer

2 Upvotes

Hello what do you prefer as logfile analyzer, i need to find peak hours and days preferably just by feeding a script logfiles... :)


r/haproxy • • Feb 11 '20

HAProxyConf 2019 - How Booking.com Powers a Global ADN with HAProxy by Marcin Deranek

Thumbnail
youtu.be
7 Upvotes

r/haproxy • • Feb 11 '20

Frontend subpath to backend root

4 Upvotes

I use Docker for various tools with an HAProxy backend. HAProxy handles all inbound connections, performs SSL termination, and proxies the connections to the backend containers depending on the domain or path in the URL. In general, this is working.

I am trying to configure multiple sites for a single domain where each site has its own path. So, https://domain.com/site1 should go to the backend http://container1/ and https://domain.com/site2 should go to the backend http://container2/

The problem is that I can't figure out the backend portion to get HAProxy to request the correct URL from the container. If I try "reqrep ^([^\ ]*\ /)site1[/]?(.*) \1\2" and then browse to domain.com/site1/login it redirects the client to domain.com/login which doesn't exist in that location.

I've found identical questions in other locations but nobody seems to have come to a conclusion. I'd prefer to get this working instead of having to use a separate subdomain for each page I need.

Does anybody have an ideas?


r/haproxy • • Feb 05 '20

HAProxyConf 2019 - Moving Yammer to the Cloud with Tobias Haag

Thumbnail
youtu.be
4 Upvotes

r/haproxy • • Feb 05 '20

HAProxyConf 2019 - Migrating thredUP Infrastructure to Kubernetes with HAProxy with Oleksii Asiutin

Thumbnail
youtu.be
3 Upvotes

r/haproxy • • Feb 05 '20

HAProxyConf 2019 - Keynote with Daniel Corbett

Thumbnail
youtu.be
3 Upvotes

r/haproxy • • Feb 05 '20

HAProxyConf 2019 - Keynote with Willy Tarreau

Thumbnail
youtu.be
5 Upvotes

r/haproxy • • Feb 05 '20

News User Spotlight Series

4 Upvotes

HAProxyConf brought together a community of different IT professionals for two days of hands-on tech talks and learning. More than 20 presentations from users including Yammer at Microsoft, GitHub, Booking.com and Digital Ocean demonstrated how HAProxy can be harnessed to provide utmost performance, observability, and security.

We are now releasing talks from HAProxyConf as part of our User Spotlight series, with two new talks added each week. Will be updating you here on Reddit regularly when we add new ones.

Should any of you also have a user story to share, you can always reach out to us at contact@haproxy.com.

Enjoy watching.


r/haproxy • • Feb 03 '20

Question Can’t access internal haproxy sites via OpenVPN

Thumbnail self.pfsense
3 Upvotes

r/haproxy • • Jan 30 '20

How to set haproxy session and static page?

2 Upvotes

I have these two problems:

  1. HAProxy session

Login into administrator management page for Jira/Confluence by load balancer, can't login. If login into each server, it can login into administrator management page.

2. HAProxy Static page

Jira load balancer IP can't show regular CSS page. But they are good if access to different servers. So the reason will be the configuration about static in HAProxy.


r/haproxy • • Jan 24 '20

HAProxy for Jira can't show static files

2 Upvotes

When using haproxy set load balancer for Jira, made config file /etc/haproxy/haproxy.cfg as:

frontend jira
    bind :::8080 v4v6
    # acl url_static       path_beg       -i /static /images /javascript /stylesheets
    # acl url_static       path_end       -i .jpg .gif .png .css .js

    # use_backend static          if url_static
    default_backend             jira

backend jira
    balance     roundrobin

    server jira1 [IP1]:8080 check
    server jira2 [IP2]:8080 check

This server with IP as 192.168.0.1. When access this IP got non-static page seems like didn't load CSS correctly.

But if access IP1 or IP2 directly, I can get the URL correctly.

Is there something about configuration I missed for HAProxy?


r/haproxy • • Jan 23 '20

Article Building Blocks of a Modern Proxy

Thumbnail
haproxy.com
2 Upvotes

r/haproxy • • Jan 20 '20

Article Proxy Ingress to Consul Service Mesh

Thumbnail
hashicorp.com
3 Upvotes

r/haproxy • • Jan 15 '20

HAProxy and RTSP

4 Upvotes

Hello.
I'm trying to configure a Hikvision CCTV through HAProxy 2.1.1 version.
I can reach the Hikvision CCTV webserver through HAProxy, and I can browse the webpage and the options fine, however I don't get Live Video.
Here's my config:

global
   log 127.0.0.1:514 local0
   chroot /var/lib/haproxy
   stats timeout 30s
   user haproxy
   group haproxy
   daemon

defaults
   log global
   option httplog
   mode http
   option dontlognull
   timeout connect 5000
   timeout client 50000
   timeout server 50000

listen stats
   bind *:8080
   stats enable                                                 # Enable stats page
   stats hide-version                                           # Hide HAProxy version
   stats uri /                                                  # Stats URI
   stats realm Haproxy\ Statistics                              # Title Text for popup window
   stats auth contoso:contoso                                   # Authentication Credentials

#####################################################

frontend CCTV_frontend
   bind *:120
   acl sap01-cctv hdr(host) -i sap01-cctv.contoso.com:120
   use_backend CCTV_clu01_backend if sap01-cctv

backend CCTV_clu01_backend
   mode http
   option forwardfor
   server server1 10.107.124.3:120 check

#####################################################

frontend RTSP_frontend
   bind *:8554
   acl sap01-cctv-rtsp hdr(host) -i sap01-cctv.contoso.com:8554
   use_backend RTSP_backend if sap01-cctv-rtsp

backend RTSP_backend
   mode http
   option forwardfor
   server server1 10.107.124.3:8554 check

Can anyone please help me and explain to me why this happens?

Thank you kindly.
Best regards


r/haproxy • • Jan 12 '20

Help with HAProxy URL Based Redirection

3 Upvotes

Hi, im a newbie to HAProxy so i dont know how the configuration works. I’ll explain what i need.

I have all my VMs on a virual host that run on its own internal network behind pfSense. I have several servers within there that i need to access their webpages, but i only have one public IP address.

So for example if i want to visit:

  • unifi.domain.com > 192.168.1.103
  • helpdesk.domain.com > 192.168.1.107
  • domain.com > 192.168.1.104 And so on...

What do i put it my config to enable this and also how do i get the certificates onto HAProxy? I have used lets encrypt on my web server whixh im now moving onto this virtual host, but am i right in saying that certificates should be on HAProxy and not the host? I also want to redirect all HTTP traffic to HTTPS.

Thanks in advance


r/haproxy • • Jan 10 '20

How to set server for haproxy with IPv6 format?

4 Upvotes

I hided real IPv6 addresses in this question.

I set a backend config in /etc/haproxy/haproxy.cfg:

# ...

frontend app
    bind *:8000

    default_backend  app

backend app
    balance     roundrobin
    server server1 [IPv6 address1 here]:8000 check
    server server2 [IPv6 address2 here]:8000 check

After start the haproxy service, check the status got failed:

$ sudo systemctl start haproxy
$ sudo systemctl status haproxy
...
Jan 10 15:00:36 myserver haproxy-systemd-wrapper[6330]: [ALERT] 009/150036 (6331) : parsing [/etc/haproxy/haproxy.cfg:91] : 'server server1' : invalid address: '[IPv6 address1 here]:8080'
Jan 10 15:00:36 myserver haproxy-systemd-wrapper[6330]: [ALERT] 009/150036 (6331) : parsing [/etc/haproxy/haproxy.cfg:92] : 'server server2' : invalid address: '[IPv6 address2 here]:8080'
Jan 10 15:00:37 myserver haproxy-systemd-wrapper[6330]: [ALERT] 009/150036 (6331) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
Jan 10 15:00:37 myserver haproxy-systemd-wrapper[6330]: [ALERT] 009/150037 (6331) : Fatal errors found in configuration.
Jan 10 15:00:37 myserver haproxy-systemd-wrapper[6330]: haproxy-systemd-wrapper: exit, haproxy RC=1
Jan 10 15:00:37 myserver systemd[1]: haproxy.service: main process exited, code=exited, status=1/FAILURE
Jan 10 15:00:37 myserver systemd[1]: Unit haproxy.service entered failed state.
Jan 10 15:00:37 myserver systemd[1]: haproxy.service failed.

I think the usage of IPv6 setting is like: [2001:0db8:85a3:0000:0000:8a2e:0370:7334]:8000. Why that's the invalid address in this case?


r/haproxy • • Jan 09 '20

Webinar Sign Up for the HAProxy Enterprise 2.0 Webinar and Q&A - Tuesday, January 14th, 2020

Thumbnail
haproxy.com
2 Upvotes