################################################################ # Global configuration ################################################################ # Enable debug mode # # Optional # Default: false # debug = true # Log level # # Optional # Default: "ERROR" # logLevel = "DEBUG" # Entrypoints to be used by frontends that do not specify any entrypoint. # Each frontend can specify its own entrypoints. # # Optional # Default: ["http"] # defaultEntryPoints = ["http"] # Entrypoints definition # # Optional # Default: [entryPoints] [entryPoints.http] address = ":8085" [entryPoints.http2] address = ":8087" # Traefik logs # Enabled by default and log to stdout # # Optional # [traefikLog] # Sets the filepath for the traefik log. If not specified, stdout will be used. # Intermediate directories are created if necessary. # # Optional # Default: os.Stdout # # filePath = "log/traefik.log" # Format is either "json" or "common". # # Optional # Default: "common" # # format = "common" # Enable access logs # By default it will write to stdout and produce logs in the textual # Common Log Format (CLF), extended with additional fields. # # Optional # [accessLog] # Sets the file path for the access log. If not specified, stdout will be used. # Intermediate directories are created if necessary. # # Optional # Default: os.Stdout # filePath = "/home/user/traefik/log.txt" # Format is either "json" or "common". # # Optional # Default: "common" # # format = "common" ################################################################ # Web configuration backend ################################################################ # Enable web configuration backend #[web] # Web administration port # # Required # #address = ":8086" [file] [backends] [backends.backend1] [backends.backend1.servers.server1] url = "http://localhost:8080" [backends.backend2] [backends.backend2.servers.server1] url = "http://che-host:8080" [frontends] [frontends.frontend2] priority = 10 backend = "backend2" passHostHeader = true [frontends.frontend2.routes.api] rule = "PathPrefix:/api/" [frontends.frontend1] priority = 5 backend = "backend1" passHostHeader = true [frontends.frontend1.routes.ide] rule = "PathPrefix: /; AddPrefix: /ide" [frontends.frontend3] backend = "backend1" passHostHeader = true entrypoints = ["http2"]