Skip to main content

Add external services to Traefik

http:
 routers:
   to-local-ip:
     rule: "Host(`https://cloud.example.com`)"
     service: to-local-ip
     middlewares:
       - redirecthttps
     entryPoints:
       - https
     tls:
       caOptional: true

 services:
   to-local-ip:
     loadBalancer:
       servers:
         - url: "http://192.168.0.2:80"

 middlewares:
   redirecthttps:
     redirectScheme:
       scheme: "https"
       permanent: true