T
T
tem12qaz2021-02-20 18:26:25
HAproxy
tem12qaz, 2021-02-20 18:26:25

How to proxy requests based on a dynamically changing file?

I have a dictionary like this:

servers = {
    'site1':8080
    'site2':8081
}

This dictionary will change while the server is running.
How can I proxy requests from host.ru/{dictionary key}
to localhost:{dictionary value}?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question