Hello.
I want to use grpc with http:xxxxx:80 --> https://yyyyy:443 without tls certification both client --> traefik and traefik --> server.
here is my treafik.
How can I fix this problem??
if I use grpcurl follwing error exists.
{
"error": "14 UNAVAILABLE: upstream connect error or disconnect/reset before headers. reset reason: connection termination"
}
docker-compose.yml
version: '3'
services:
reverse-proxy:
image: traefik:v2.1
command:
--log.level=debug
--log.filePath=/log-file.log
--api.insecure=true
--accesslog
--providers.docker
--serversTransport.insecureSkipVerify=true
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik-grpc.toml:/etc/traefik/traefik.toml
- ./dynamic_conf.toml:/etc/traefik/dynamic/config/traefik.toml
traefik-grpc.toml
[global]
checkNewVersion = false
sendAnonymousUsage = false
[log]
level = "DEBUG"
filePath = "/log-file.log"
[serversTransport]
insecureSkipVerify = true
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.web-secure]
address = ":443"
[api]
insecure = true
dashboard = true
[providers.file]
directory = "/etc/traefik/dynamic/config"
dynamic_conf.toml
## dynamic configuration ##
[http]
[http.routers]
[http.routers.routerTest]
middlewares = ["https-redirect"]
service = "srv-grpc"
rule = "HostRegexp(`{any:.+}`)"
entrypoint = ["web"]
[http.routers.routerTest1]
service = "srv-grpc"
rule = "HostRegexp(`{any:.+}`)"
entrypoint = ["web-secure"]
[http.services]
[http.services.srv-grpc]
[http.services.srv-grpc.loadBalancer]
[[http.services.srv-grpc.loadBalancer.servers]]
url = "https://yyyyy:443"
[http.middlewares]
[http.middlewares.https-redirect]
[http.middlewares.https-redirect.redirectscheme]
scheme="https"