D
D
Drno2022-02-13 23:35:44
linux
Drno, 2022-02-13 23:35:44

Help choosing a reverse proxy?

Add tags if necessary ...
In general - help with the choice of proxy, because with nginx it’s somehow dreary to understand, and not only the web needs to be proxyed.
While I choose between traefik and haproxy. And I don't really understand the difference.

Task

There are several web services, the main one works on ports 80 and 443, because you need access sometimes WITHOUT https... Several
docker services on different ports - 8080, 8081,
etc.
it is possible to cling, tozh on the ports.

Right now, all this is redirected using iptables .. but the same chrome already stubbornly wants https, even if you enter port 8080 for it (throws it to port 443), although it comes in normally from incognito ...

It would be desirable

Simple removal\adding of services in a proxy config.

To be able to close all this with a certificate, all ports. If I understand correctly, for this you will have to make subdomains for each service, so that by the subdomain it determines the proxy where to redirect it. This is true?

It would be desirable to make certainly already beautifully, with subdomains. But there should be an opportunity and go in the old way, because. not everywhere configs on clients will be immediately updated.

Let's say - right now it has a service on port 8080. Leave the option to access it via mydomen.ru:8080 and sub.mydomen.ru. How to do it right?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vladimir Korotenko, 2022-02-13
@Drno

all this allows you to do NGINX

K
ky0, 2022-02-14
@ky0

The phrase "it's a chore to understand" kagbe hints to us, as well as a certain number of questions of an average degree of illiteracy.
It is more convenient to proxy HTTP using tools designed for this purpose. The rest of TCP, although nginx can do it, I do not recommend it.

A
Alexey Dmitriev, 2022-02-14
@SignFinder

It is not clear that the author came here with a question. It looks as if the author did not master nginx and came for a magic pill. Not realizing that other products will also have to be "somehow dreary to deal with."
So "it is not possible to give an unambiguous answer to the question - the complaint has been sent."
To decide on the choice of tool, from my point of view, you need the following:
1. google product comparison, check that one suits you or both suit you, but some more.
2. Conduct testing, understand that you are able to launch it at all, which suits you.
3. Leave to work.
If somewhere there was a failure, repeat with the second product.

M
mikes, 2022-02-14
@mikes

haproxy is more than satisfied with us + there is loadbalance with backend state tracking without additional financial costs

D
Drno, 2022-02-15
@Drno

Thank you Alexander Karabanov for the example and comments. All the same, I sat down to deal with Nginx, not everything turned out to be quite simple,
unseriously the NPM Manager project is fire. Everything took off from half a kick, though in a different place, where it is more needed. There are constantly changing subdomains \ tests and so on. Just for a quick add/remove by anyone with 2 hands. Well, at the same time, looking at how it forms the config, it was easier to configure bare nginx))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question