Hi
I am trying to set up Traefik on Debian 9.11
What I want is to be able to use the file type and serve an existing server app that is running on 4000
I also use LE cert client to generate the certificates for this domain. And that is how I would like to handle it for now.
I get page error 404
with the http
access and certificate error with https
,So I seem to be missing multiple issues here. I at least would like to get http
acess going first then worry about https
after words.
Any recommendations?
traefik.yml
entryPoints:
http:
address: :80
https:
address: :443
providers:
file:
directory: /etc/traefik/dynamic
watch: true
/etc/traefik/dynamic/custom.yml
http:
routers:
custom:
rule: "Host(`sub.example.com`)"
service: custom
tls:
stores:
default:
defaultCertificate:
- certFile: /etc/letsencrypt/live/sub.example.com/cert.pem
- keyFile: /etc/letsencrypt/live/sub.example.com/privkey.pem
services:
custom:
loadBalancer:
servers:
- url: "http://127.0.0.1:4000/"
passHostHeader: false
here is the error log
DEBU[2020-01-29T00:50:53Z] No entryPoint defined for this router, using the default one(s) instead: [http https] routerName=custom@file
DEBU[2020-01-29T00:50:53Z] Creating middleware middlewareName=pipelining middlewareType=Pipelining entryPointName=https routerName=custom@file serviceName=custom
DEBU[2020-01-29T00:50:53Z] Creating load-balancer serviceName=custom entryPointName=https routerName=custom@file
DEBU[2020-01-29T00:50:53Z] Creating server 0 http://127.0.0.1:4000/ routerName=custom@file serviceName=custom entryPointName=https serverName=0
DEBU[2020-01-29T00:50:53Z] Added outgoing tracing middleware custom entryPointName=https routerName=custom@file middlewareName=tracing middlewareType=TracingForwarder
DEBU[2020-01-29T00:50:53Z] Creating middleware entryPointName=https middlewareName=traefik-internal-recovery middlewareType=Recovery
DEBU[2020-01-29T00:50:53Z] Creating middleware entryPointName=http middlewareType=Recovery middlewareName=traefik-internal-recovery
DEBU[2020-01-29T00:50:53Z] No entryPoint defined for this router, using the default one(s) instead: [http https] routerName=custom@file
DEBU[2020-01-29T00:50:53Z] No default certificate, generating one
DEBU[2020-01-29T00:50:57Z] Serving default certificate for request: "sub.example.com"
DEBU[2020-01-29T00:50:57Z] http: TLS handshake error from 127.0.0.1:50122: remote error: tls: bad certificate
thanks