T
T
Tamura2021-08-18 08:32:17
linux
Tamura, 2021-08-18 08:32:17

Traefik Reverse proxy how to set up?

Good afternoon, I decided to try Traefik as part of the test and did not quite understand how to configure it.
After reading the doc, I did not quite understand how this is done? do not tell
me The essence of the question, I want to configure a reverse proxy as in nginx when you stupidly prescribe:

location /w{
proxy_pass http://ip
}
location /s{
proxy_pass http://ip
}


My first try ended like this:
debug = true
logLevel = "DEBUG"
defaultEntryPoints = ["httpSSL"]

[web]
address = ":80"

[entryPoints]
  [entryPoints.httpSSL]
  address = ":443"
    [entryPoints.httpSSL.tls]

[providers]
  [providers.file]
    filename = "conf.toml"

[file]

[http]
  [http.routers]
    [http.routers.my-test]
      rule = "PathPrefix(`/`)"
      service = "test"
  [http.services]
    [http.services.test.loadBalancer]
      
        url = "http://192.xxx.xxx.xxx"

The question arises how to add a second IP and where? as well as a redirect.
P.S. Am I doing something wrong? Strongly do not kick I'm testing for the first time

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Dmitriev, 2021-08-18
@SignFinder

I assume that you need to google "traefik setup", and read articles, for example, directly on habr.com.
Already in the second article in the issuance of Google, I found the answer to your question.

T
Tamura, 2021-08-19
@Tamura

I would like to clarify, is there any other answers?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question