0

I have deployed my application using the azure pipelines.I want to integrate the release pipeline with a script that will dynamically update the haproxy.cfg to re-map the Url of an application.

Example for manually mapping in haproxy.cfg

frontend http-in
    mode    http

    bind 206.189.22.155:80

    acl path-page-designer              path_beg -i /designer-api/
    use_backend page-designer-backend   if path-page-designer

backend page-designer-backend
    mode    http

    option  httplog
    option  forwardfor

    server  appserver1 206.189.22.155:30000

Now how can I use Lua scripting inside haproxy to automatically map the url of the application.I will invoke this via a command line script from azure release pipeline. I am talking about a generic script here that can be used for all the pipelines. I will be passing all the application specific details to the script as parameter from the pipeline configuration.Plz help with examples of how the script should look like for my haproxy configration.

Note:I want to strictly only use haproxy for this and not nginx.

New contributor
Vignesh Swaminathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Vignesh Swaminathan is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.