jfrog / artifactory-scripts

Scripts for Artifactory (Usually, for REST API), community driven.
Apache License 2.0
148 stars 166 forks source link

Use newer HAProxy config #44

Open git001 opened 4 years ago

git001 commented 4 years ago

In the Configuring haproxy load balancer in front of ha artifactory cluster question was requested how to migrate to a newer HAProxy version.

The original answer from JFrog Support is from 2018-02-05 How to configure HAProxy with Artifactory? which looks wrong because there are some missing characters.

# wrong
reqirep ^([^ :]*) /v2(.*$) 1 /artifactory/api/docker/docker/v22
# right
reqirep ^([^ :]*) /v2(.*$) \1 /artifactory/api/docker/docker/v22\1

I assume that the HAProxy config for the knowledge-base article is this file https://github.com/jfrog/artifactory-scripts/blob/master/proxyexamples/haproxy/haproxy-ports.cfg

In general should the config be adopted to the new HAProxy versions. This means.