Answer the question
In order to leave comments, you need to log in
Traefik docker creates self-signed ssl certificates. How to disable?
I'm not sure that I correctly formulated the essence of the question, but it seems to me that this can solve my problem. If there is another solution, please tell me.
It is necessary to redirect all site traffic through the Traefik v2 reverse proxy on two ports 80 and 443, respectively.
It is important in this task to do without redirecting all traffic to https, without self-signed certificates, without certificatesresolvers and without letsencrypt! In other words, we need a simple proxying of requests to the container 80-> 80, 443-> 443
That is, we create two entrypoints in the traffic container: web and websecure
image: traefik:v2.4
command:
- "--api.insecure=true"
- "--providers.docker"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=proxy-network"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
image: httpd:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.exampleforhttp.rule=Host(`example.com`)"
- "traefik.http.routers.exampleforhttp.entrypoints=web"
- "traefik.http.routers.exampleforhttps.rule=Host(`example.com`)"
- "traefik.http.routers.exampleforhttps.entrypoints=websecure"
- "traefik.http.routers.exampleforhttps.tls=true"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question