Skip to content

Use newer HAProxy config #44

@git001

Description

@git001

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.

  • replace reqadd with http-request set-header
  • replace reqirep with http-request replace*

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions