Use the same case every where for entryPoints.

This commit is contained in:
Ludovic Fernandez 2019-04-15 11:14:05 +02:00 committed by Traefiker Bot
parent b9f826554c
commit 8389b46b5c
74 changed files with 248 additions and 248 deletions

View file

@ -50,8 +50,8 @@ Once a day (the first call begins 10 minutes after the start of Traefik), we col
??? example "Original configuration" ??? example "Original configuration"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
[api] [api]
@ -80,8 +80,8 @@ Once a day (the first call begins 10 minutes after the start of Traefik), we col
??? example "Resulting Obfuscated Configuration" ??? example "Resulting Obfuscated Configuration"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
[api] [api]

View file

@ -13,11 +13,11 @@ You can configure Traefik to use an ACME provider (like Let's Encrypt) for autom
??? example "Enabling ACME" ??? example "Enabling ACME"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
[entrypoints.http-tls] [entryPoints.http-tls]
address = ":443" address = ":443"
[acme] # every router with TLS enabled will now be able to use ACME for its certificates [acme] # every router with TLS enabled will now be able to use ACME for its certificates
@ -31,11 +31,11 @@ You can configure Traefik to use an ACME provider (like Let's Encrypt) for autom
??? example "Configuring Wildcard Certificates" ??? example "Configuring Wildcard Certificates"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
[entrypoints.http-tls] [entryPoints.http-tls]
address = ":443" address = ":443"
[acme] [acme]

View file

@ -14,11 +14,11 @@ Checking the Health of Your Traefik Instances
??? example "Enabling /ping on a dedicated EntryPoint" ??? example "Enabling /ping on a dedicated EntryPoint"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
[entrypoints.ping] [entryPoints.ping]
address = ":8082" address = ":8082"
[ping] [ping]

View file

@ -28,7 +28,7 @@ You can write these configuration elements:
# Add the router # Add the router
[http.routers] [http.routers]
[http.routers.router0] [http.routers.router0]
entrypoints = ["web"] entryPoints = ["web"]
middlewares = ["my-basic-auth"] middlewares = ["my-basic-auth"]
service = "service-foo" service = "service-foo"
rule = "Path(`foo`)" rule = "Path(`foo`)"

View file

@ -28,7 +28,7 @@ metadata:
name: ingressroutefoo.crd name: ingressroutefoo.crd
spec: spec:
entrypoints: entryPoints:
- web - web
routes: routes:
# Match is the rule corresponding to an underlying router. # Match is the rule corresponding to an underlying router.
@ -63,7 +63,7 @@ metadata:
name: stripprefix name: stripprefix
spec: spec:
stripprefix: stripPrefix:
prefixes: prefixes:
- /stripit - /stripit
@ -74,7 +74,7 @@ metadata:
name: ingressroutebar.crd name: ingressroutebar.crd
spec: spec:
entrypoints: entryPoints:
- web - web
routes: routes:
- match: Host(`bar.com`) && PathPrefix(`/stripit`) - match: Host(`bar.com`) && PathPrefix(`/stripit`)

View file

@ -32,7 +32,7 @@ kind: IngressRoute
metadata: metadata:
name: ingressroute.crd name: ingressroute.crd
spec: spec:
entrypoints: entryPoints:
- web - web
- web-secure - web-secure
routes: routes:
@ -45,21 +45,21 @@ spec:
services: services:
- name: s1 - name: s1
port: 80 port: 80
healthcheck: healthCheck:
path: /health path: /health
host: baz.com host: baz.com
intervalseconds: 7 intervalSeconds: 7
timeoutseconds: 60 timeoutSeconds: 60
# strategy defines the load balancing strategy between the servers. It defaults # strategy defines the load balancing strategy between the servers. It defaults
# to Round Robin, and for now only Round Robin is supported anyway. # to Round Robin, and for now only Round Robin is supported anyway.
strategy: RoundRobin strategy: RoundRobin
- name: s2 - name: s2
port: 433 port: 433
healthcheck: healthCheck:
path: /health path: /health
host: baz.com host: baz.com
intervalseconds: 7 intervalSeconds: 7
timeoutseconds: 60 timeoutSeconds: 60
- match: PathPrefix(`/misc`) - match: PathPrefix(`/misc`)
services: services:
- name: s3 - name: s3

View file

@ -13,8 +13,8 @@ They define the port which will receive the requests (whether HTTP or TCP).
??? example "Port 80 only" ??? example "Port 80 only"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
``` ```
@ -23,11 +23,11 @@ They define the port which will receive the requests (whether HTTP or TCP).
??? example "Port 80 & 443" ??? example "Port 80 & 443"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":443" address = ":443"
``` ```
@ -118,11 +118,11 @@ Traefik supports [ProxyProtocol](https://www.haproxy.org/download/1.8/doc/proxy-
??? example "Enabling Proxy Protocol with Trusted IPs" ??? example "Enabling Proxy Protocol with Trusted IPs"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
[entrypoints.web.proxyProtocol] [entryPoints.web.proxyProtocol]
trustedIPs = ["127.0.0.1/32", "192.168.1.7"] trustedIPs = ["127.0.0.1/32", "192.168.1.7"]
``` ```
@ -133,11 +133,11 @@ Traefik supports [ProxyProtocol](https://www.haproxy.org/download/1.8/doc/proxy-
In a test environments, you can configure Traefik to trust every incoming connection. Doing so, every remote client address will be replaced (`trustedIPs` won't have any effect) In a test environments, you can configure Traefik to trust every incoming connection. Doing so, every remote client address will be replaced (`trustedIPs` won't have any effect)
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
[entrypoints.web.proxyProtocol] [entryPoints.web.proxyProtocol]
insecure = true insecure = true
``` ```
@ -153,21 +153,21 @@ You can configure Traefik to trust the forwarded headers information (`X-Forward
??? example "Trusting Forwarded Headers from specific IPs" ??? example "Trusting Forwarded Headers from specific IPs"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
[entrypoints.web.forwardedHeaders] [entryPoints.web.forwardedHeaders]
trustedIPs = ["127.0.0.1/32", "192.168.1.7"] trustedIPs = ["127.0.0.1/32", "192.168.1.7"]
``` ```
??? example "Insecure Mode -- Always Trusting Forwarded Headers" ??? example "Insecure Mode -- Always Trusting Forwarded Headers"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
[entrypoints.web.forwardedHeaders] [entryPoints.web.forwardedHeaders]
insecure = true insecure = true
``` ```

View file

@ -25,8 +25,8 @@ Below is an example of a full configuration file for the [file provider](../prov
In the process, Traefik will make sure that the user is authenticated (using the [BasicAuth middleware](../middlewares/basicauth.md)). In the process, Traefik will make sure that the user is authenticated (using the [BasicAuth middleware](../middlewares/basicauth.md)).
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8081" # Listen on port 8081 for incoming requests address = ":8081" # Listen on port 8081 for incoming requests
[providers] [providers]
@ -62,8 +62,8 @@ In the process, Traefik will make sure that the user is authenticated (using the
??? example "Adding a TCP route for TLS requests on whoami.traefik.io" ??? example "Adding a TCP route for TLS requests on whoami.traefik.io"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8081" # Listen on port 8081 for incoming requests address = ":8081" # Listen on port 8081 for incoming requests
[providers] [providers]

View file

@ -32,16 +32,16 @@ In the process, routers may use pieces of [middleware](../../middlewares/overvie
??? example "Forwarding all (non-tls) requests on port 3306 to a database service" ??? example "Forwarding all (non-tls) requests on port 3306 to a database service"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.mysql-default] [entryPoints.mysql-default]
address = ":80" address = ":80"
[entrypoints.mysql-default] [entryPoints.mysql-default]
address = ":3306" address = ":3306"
[tcp] [tcp]
[tcp.routers] [tcp.routers]
[tcp.routers.to-database] [tcp.routers.to-database]
entrypoints = ["mysql-default"] entryPoints = ["mysql-default"]
rule = "HostSNI(`*`)" # Catch every request (only available rule for non-tls routers. See below.) rule = "HostSNI(`*`)" # Catch every request (only available rule for non-tls routers. See below.)
service = "database" service = "database"
``` ```
@ -56,12 +56,12 @@ If you want to limit the router scope to a set of entrypoint, set the entrypoint
??? example "Listens to Every EntryPoint" ??? example "Listens to Every EntryPoint"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
# ... # ...
[entrypoints.web-secure] [entryPoints.web-secure]
# ... # ...
[entrypoints.other] [entryPoints.other]
# ... # ...
[http.routers] [http.routers]
@ -74,12 +74,12 @@ If you want to limit the router scope to a set of entrypoint, set the entrypoint
??? example "Listens to Specific EntryPoints" ??? example "Listens to Specific EntryPoints"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
# ... # ...
[entrypoint.web-secure] [entryPoints.web-secure]
# ... # ...
[entrypoint.other] [entryPoints.other]
# ... # ...
[http.routers] [http.routers]
@ -211,12 +211,12 @@ If you want to limit the router scope to a set of entrypoints, set the entrypoin
??? example "Listens to Every EntryPoint" ??? example "Listens to Every EntryPoint"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
# ... # ...
[entrypoints.web-secure] [entryPoints.web-secure]
# ... # ...
[entrypoints.other] [entryPoints.other]
# ... # ...
[tcp.routers] [tcp.routers]
@ -230,12 +230,12 @@ If you want to limit the router scope to a set of entrypoints, set the entrypoin
??? example "Listens to Specific EntryPoints" ??? example "Listens to Specific EntryPoints"
```toml ```toml
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
# ... # ...
[entrypoint.web-secure] [entryPoints.web-secure]
# ... # ...
[entrypoint.other] [entryPoints.other]
# ... # ...
[tcp.routers] [tcp.routers]

View file

@ -3,7 +3,7 @@ kind: IngressRoute
metadata: metadata:
name: simpleingressroute name: simpleingressroute
spec: spec:
entrypoints: entryPoints:
- web - web
routes: routes:
- match: Host(`your.domain.com`) && PathPrefix(`/notls`) - match: Host(`your.domain.com`) && PathPrefix(`/notls`)
@ -18,7 +18,7 @@ kind: IngressRoute
metadata: metadata:
name: ingressroutetls name: ingressroutetls
spec: spec:
entrypoints: entryPoints:
- websecure - websecure
routes: routes:
- match: Host(`your.domain.com`) && PathPrefix(`/tls`) - match: Host(`your.domain.com`) && PathPrefix(`/tls`)

View file

@ -9,16 +9,16 @@ filePath = "traefik.log"
[accessLog] [accessLog]
filePath = "access.log" filePath = "access.log"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[entrypoints.frontendRedirect] [entryPoints.frontendRedirect]
address = ":8005" address = ":8005"
[entrypoints.httpFrontendAuth] [entryPoints.httpFrontendAuth]
address = ":8006" address = ":8006"
[entrypoints.httpRateLimit] [entryPoints.httpRateLimit]
address = ":8007" address = ":8007"
[entrypoints.digestAuth] [entryPoints.digestAuth]
address = ":8008" address = ":8008"
[api] [api]

View file

@ -5,10 +5,10 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = "{{ .PortHTTP }}" address = "{{ .PortHTTP }}"
[entrypoints.web-secure] [entryPoints.web-secure]
address = "{{ .PortHTTPS }}" address = "{{ .PortHTTPS }}"
[acme] [acme]

View file

@ -5,10 +5,10 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = "{{ .PortHTTP }}" address = "{{ .PortHTTP }}"
[entrypoints.web-secure] [entryPoints.web-secure]
address = "{{ .PortHTTPS }}" address = "{{ .PortHTTPS }}"
[acme] [acme]

View file

@ -5,10 +5,10 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = "{{ .PortHTTP }}" address = "{{ .PortHTTP }}"
[entrypoints.web-secure] [entryPoints.web-secure]
address = "{{ .PortHTTPS }}" address = "{{ .PortHTTPS }}"
[acme] [acme]

View file

@ -5,18 +5,18 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = "{{ .PortHTTP }}" address = "{{ .PortHTTP }}"
[entrypoints.web-secure] [entryPoints.web-secure]
address = "{{ .PortHTTPS }}" address = "{{ .PortHTTPS }}"
[entrypoints.traefik] [entryPoints.traefik]
address = ":9000" address = ":9000"
# FIXME # FIXME
# [entrypoints.traefik.tls] # [entryPoints.traefik.tls]
# [entrypoints.traefik.tls.DefaultCertificate] # [entryPoints.traefik.tls.DefaultCertificate]
# certFile = "fixtures/acme/ssl/wildcard.crt" # certFile = "fixtures/acme/ssl/wildcard.crt"
# keyFile = "fixtures/acme/ssl/wildcard.key" # keyFile = "fixtures/acme/ssl/wildcard.key"

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8080" address = ":8080"
[providers] [providers]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8080" address = ":8080"
[providers] [providers]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[providers] [providers]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[providers] [providers]

View file

@ -8,8 +8,8 @@ logLevel = "DEBUG"
[serversTransport] [serversTransport]
rootCAs = [ """{{ .CertContent }}""" ] rootCAs = [ """{{ .CertContent }}""" ]
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8081" address = ":8081"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"

View file

@ -8,8 +8,8 @@ logLevel = "DEBUG"
[serversTransport] [serversTransport]
insecureSkipVerify = true insecureSkipVerify = true
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[api] [api]

View file

@ -8,8 +8,8 @@ logLevel = "DEBUG"
[serversTransport] [serversTransport]
rootCAs = [ """{{ .CertContent }}""" ] rootCAs = [ """{{ .CertContent }}""" ]
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[api] [api]

View file

@ -8,8 +8,8 @@ logLevel = "DEBUG"
[serversTransport] [serversTransport]
rootCAs = [ """{{ .CertContent }}""" ] rootCAs = [ """{{ .CertContent }}""" ]
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[providers] [providers]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[providers] [providers]

View file

@ -5,10 +5,10 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.http1] [entryPoints.http1]
address = ":8000" address = ":8000"
[entrypoints.http2] [entryPoints.http2]
address = ":9000" address = ":9000"
[api] [api]

View file

@ -5,10 +5,10 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.http1] [entryPoints.http1]
address = ":8000" address = ":8000"
[entrypoints.http2] [entryPoints.http2]
address = ":9000" address = ":9000"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[api] [api]

View file

@ -5,11 +5,11 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[entrypoints.https02] [entryPoints.https02]
address = ":8443" address = ":8443"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[api] [api]

View file

@ -5,11 +5,11 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8888" address = ":8888"
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":8443" address = ":8443"
[api] [api]
@ -19,121 +19,121 @@ logLevel = "DEBUG"
[http.routers] [http.routers]
[http.routers.router1] [http.routers.router1]
entrypoints = [ "web" ] entryPoints = [ "web" ]
rule = "Host(`example.com`)" rule = "Host(`example.com`)"
middlewares = ["redirect-https"] middlewares = ["redirect-https"]
service = "service1" service = "service1"
[http.routers.router1TLS] [http.routers.router1TLS]
entrypoints = [ "web-secure" ] entryPoints = [ "web-secure" ]
rule = "Host(`example.com`)" rule = "Host(`example.com`)"
service = "service1" service = "service1"
[http.routers.router1TLS.tls] [http.routers.router1TLS.tls]
[http.routers.router2] [http.routers.router2]
entrypoints = [ "web" ] entryPoints = [ "web" ]
rule = "Host(`example2.com`)" rule = "Host(`example2.com`)"
middlewares = ["redirect-https", "api-slash-strip"] middlewares = ["redirect-https", "api-slash-strip"]
service = "service1" service = "service1"
[http.routers.router2TLS] [http.routers.router2TLS]
entrypoints = [ "web-secure" ] entryPoints = [ "web-secure" ]
rule = "Host(`example2.com`)" rule = "Host(`example2.com`)"
service = "service1" service = "service1"
[http.routers.router2TLS.tls] [http.routers.router2TLS.tls]
[http.routers.router3] [http.routers.router3]
entrypoints = [ "web" ] entryPoints = [ "web" ]
rule = "Host(`test.com`)" rule = "Host(`test.com`)"
middlewares = ["redirect-https", "foo-add-prefix"] middlewares = ["redirect-https", "foo-add-prefix"]
service = "service1" service = "service1"
[http.routers.router3TLS] [http.routers.router3TLS]
entrypoints = [ "web-secure" ] entryPoints = [ "web-secure" ]
rule = "Host(`test.com`)" rule = "Host(`test.com`)"
service = "service1" service = "service1"
[http.routers.router3TLS.tls] [http.routers.router3TLS.tls]
[http.routers.router4] [http.routers.router4]
entrypoints = [ "web" ] entryPoints = [ "web" ]
rule = "Host(`test2.com`)" rule = "Host(`test2.com`)"
middlewares = ["redirect-https", "foo-slash-add-prefix"] middlewares = ["redirect-https", "foo-slash-add-prefix"]
service = "service1" service = "service1"
[http.routers.router4TLS] [http.routers.router4TLS]
entrypoints = [ "web-secure" ] entryPoints = [ "web-secure" ]
rule = "Host(`test2.com`)" rule = "Host(`test2.com`)"
service = "service1" service = "service1"
[http.routers.router4TLS.tls] [http.routers.router4TLS.tls]
[http.routers.router5] [http.routers.router5]
entrypoints = [ "web" ] entryPoints = [ "web" ]
rule = "Host(`foo.com`)" rule = "Host(`foo.com`)"
middlewares = ["redirect-https", "id-strip-regex-prefix"] middlewares = ["redirect-https", "id-strip-regex-prefix"]
service = "service1" service = "service1"
[http.routers.router5TLS] [http.routers.router5TLS]
entrypoints = [ "web-secure" ] entryPoints = [ "web-secure" ]
rule = "Host(`foo.com`)" rule = "Host(`foo.com`)"
service = "service1" service = "service1"
[http.routers.router5TLS.tls] [http.routers.router5TLS.tls]
[http.routers.router6] [http.routers.router6]
entrypoints = [ "web" ] entryPoints = [ "web" ]
rule = "Host(`foo2.com`)" rule = "Host(`foo2.com`)"
middlewares = ["redirect-https", "id-slash-strip-regex-prefix"] middlewares = ["redirect-https", "id-slash-strip-regex-prefix"]
service = "service1" service = "service1"
[http.routers.router6TLS] [http.routers.router6TLS]
entrypoints = [ "web-secure" ] entryPoints = [ "web-secure" ]
rule = "Host(`foo2.com`)" rule = "Host(`foo2.com`)"
service = "service1" service = "service1"
[http.routers.router6TLS.tls] [http.routers.router6TLS.tls]
[http.routers.router7] [http.routers.router7]
entrypoints = [ "web" ] entryPoints = [ "web" ]
rule = "Host(`bar.com`)" rule = "Host(`bar.com`)"
middlewares = ["redirect-https", "api-regex-replace"] middlewares = ["redirect-https", "api-regex-replace"]
service = "service1" service = "service1"
[http.routers.router7TLS] [http.routers.router7TLS]
entrypoints = [ "web-secure" ] entryPoints = [ "web-secure" ]
rule = "Host(`bar.com`)" rule = "Host(`bar.com`)"
service = "service1" service = "service1"
[http.routers.router7TLS.tls] [http.routers.router7TLS.tls]
[http.routers.router8] [http.routers.router8]
entrypoints = [ "web" ] entryPoints = [ "web" ]
rule = "Host(`bar2.com`)" rule = "Host(`bar2.com`)"
middlewares = ["redirect-https", "api-slash-regex-replace"] middlewares = ["redirect-https", "api-slash-regex-replace"]
service = "service1" service = "service1"
[http.routers.router8TLS] [http.routers.router8TLS]
entrypoints = [ "web-secure" ] entryPoints = [ "web-secure" ]
rule = "Host(`bar2.com`)" rule = "Host(`bar2.com`)"
service = "service1" service = "service1"
[http.routers.router8TLS.tls] [http.routers.router8TLS.tls]
[http.routers.router9] [http.routers.router9]
entrypoints = [ "web" ] entryPoints = [ "web" ]
rule = "Host(`pow.com`)" rule = "Host(`pow.com`)"
middlewares = ["redirect-https", "api-replace-path"] middlewares = ["redirect-https", "api-replace-path"]
service = "service1" service = "service1"
[http.routers.router9TLS] [http.routers.router9TLS]
entrypoints = [ "web-secure" ] entryPoints = [ "web-secure" ]
rule = "Host(`pow.com`)" rule = "Host(`pow.com`)"
service = "service1" service = "service1"
[http.routers.router9TLS.tls] [http.routers.router9TLS.tls]
[http.routers.router10] [http.routers.router10]
entrypoints = [ "web" ] entryPoints = [ "web" ]
rule = "Host(`pow2.com`)" rule = "Host(`pow2.com`)"
middlewares = ["redirect-https", "api-slash-replace-path"] middlewares = ["redirect-https", "api-slash-replace-path"]
service = "service1" service = "service1"
[http.routers.router10TLS] [http.routers.router10TLS]
entrypoints = [ "web-secure" ] entryPoints = [ "web-secure" ]
rule = "Host(`pow2.com`)" rule = "Host(`pow2.com`)"
service = "service1" service = "service1"
[http.routers.router10TLS.tls] [http.routers.router10TLS.tls]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":4443" address = ":4443"
[api] [api]

View file

@ -24,8 +24,8 @@ fblo6RBxUQ==
-----END CERTIFICATE----- -----END CERTIFICATE-----
"""] """]
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8081" address = ":8081"
[api] [api]

View file

@ -9,8 +9,8 @@ logLevel = "DEBUG"
# Use certificate in net/internal/testcert.go # Use certificate in net/internal/testcert.go
rootCAs = [ "fixtures/https/rootcas/local.crt"] rootCAs = [ "fixtures/https/rootcas/local.crt"]
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8081" address = ":8081"
[api] [api]

View file

@ -5,7 +5,7 @@ metadata:
namespace: default namespace: default
spec: spec:
entrypoints: entryPoints:
- web - web
routes: routes:

View file

@ -5,7 +5,7 @@ metadata:
namespace: default namespace: default
spec: spec:
stripprefix: stripPrefix:
prefixes: prefixes:
- /tobestripped - /tobestripped
@ -17,7 +17,7 @@ metadata:
namespace: default namespace: default
spec: spec:
entrypoints: entryPoints:
- web - web
routes: routes:
- match: Host(`foo.com`) && PathPrefix(`/tobestripped`) - match: Host(`foo.com`) && PathPrefix(`/tobestripped`)

View file

@ -9,10 +9,10 @@ logLevel = "ERROR"
[accessLog] [accessLog]
filePath = "access.log" filePath = "access.log"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[entrypoints.api] [entryPoints.api]
address = ":7888" address = ":7888"
[api] [api]

View file

@ -5,10 +5,10 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[entrypoints.api] [entryPoints.api]
address = ":9090" address = ":9090"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -7,8 +7,8 @@ logLevel = "DEBUG"
[api] [api]
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[Providers] [Providers]

View file

@ -5,10 +5,10 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[entrypoints.web.proxyProtocol] [entryPoints.web.proxyProtocol]
trustedIPs = ["{{.HaproxyIP}}"] trustedIPs = ["{{.HaproxyIP}}"]
[api] [api]

View file

@ -5,10 +5,10 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[entrypoints.web.proxyProtocol] [entryPoints.web.proxyProtocol]
trustedIPs = ["1.2.3.4"] trustedIPs = ["1.2.3.4"]
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
[providers] [providers]

View file

@ -5,15 +5,15 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[entrypoints.web.transport.lifeCycle] [entryPoints.web.transport.lifeCycle]
RequestAcceptGraceTimeout = "10s" RequestAcceptGraceTimeout = "10s"
[entrypoints.traefik] [entryPoints.traefik]
address = ":8001" address = ":8001"
[entrypoints.traefik.transport.lifeCycle] [entryPoints.traefik.transport.lifeCycle]
RequestAcceptGraceTimeout = "10s" RequestAcceptGraceTimeout = "10s"
[ping] [ping]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -5,11 +5,11 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[entrypoints.traefik] [entryPoints.traefik]
address = ":8001" address = ":8001"
[api] [api]

View file

@ -2,6 +2,6 @@
checkNewVersion = false checkNewVersion = false
sendAnonymousUsage = false sendAnonymousUsage = false
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -5,12 +5,12 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[entrypoints.web.ForwardedHeaders] [entryPoints.web.ForwardedHeaders]
insecure=true insecure=true
[entrypoints.web.ClientIPStrategy] [entryPoints.web.ClientIPStrategy]
depth=2 depth=2
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.tcp] [entryPoints.tcp]
address = ":8093" address = ":8093"
[api] [api]
@ -21,7 +21,7 @@ logLevel = "DEBUG"
entrypoint=["tcp"] entrypoint=["tcp"]
[http.routers.my-https-router] [http.routers.my-https-router]
entrypoints=["tcp"] entryPoints=["tcp"]
rule = "Path(`/whoami/`)" rule = "Path(`/whoami/`)"
service = "whoami" service = "whoami"
[http.routers.my-https-router.tls] [http.routers.my-https-router.tls]
@ -36,21 +36,21 @@ logLevel = "DEBUG"
[tcp.routers.to-whoami-a] [tcp.routers.to-whoami-a]
rule = "HostSNI(`whoami-a.test`)" rule = "HostSNI(`whoami-a.test`)"
service = "whoami-a" service = "whoami-a"
entrypoints = [ "tcp" ] entryPoints = [ "tcp" ]
[tcp.routers.to-whoami-a.tls] [tcp.routers.to-whoami-a.tls]
passthrough=true passthrough=true
[tcp.routers.to-whoami-b] [tcp.routers.to-whoami-b]
rule = "HostSNI(`whoami-b.test`)" rule = "HostSNI(`whoami-b.test`)"
service = "whoami-b" service = "whoami-b"
entrypoints = [ "tcp" ] entryPoints = [ "tcp" ]
[tcp.routers.to-whoami-b.tls] [tcp.routers.to-whoami-b.tls]
passthrough=true passthrough=true
[tcp.routers.to-whoami-no-cert] [tcp.routers.to-whoami-no-cert]
rule = "HostSNI(`whoami-c.test`)" rule = "HostSNI(`whoami-c.test`)"
service = "whoami-no-cert" service = "whoami-no-cert"
entrypoints = [ "tcp" ] entryPoints = [ "tcp" ]
[tcp.routers.to-whoami-no-cert.tls] [tcp.routers.to-whoami-no-cert.tls]
[tcp.services.whoami-a] [tcp.services.whoami-a]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.tcp] [entryPoints.tcp]
address = ":8093" address = ":8093"
[api] [api]
@ -18,25 +18,25 @@ logLevel = "DEBUG"
[tcp.routers.to-whoami-a] [tcp.routers.to-whoami-a]
rule = "HostSNI(`whoami-a.test`)" rule = "HostSNI(`whoami-a.test`)"
service = "whoami-a" service = "whoami-a"
entrypoints = [ "tcp" ] entryPoints = [ "tcp" ]
[tcp.routers.to-whoami-a.tls] [tcp.routers.to-whoami-a.tls]
passthrough=true passthrough=true
[tcp.routers.to-whoami-b] [tcp.routers.to-whoami-b]
rule = "HostSNI(`whoami-b.test`)" rule = "HostSNI(`whoami-b.test`)"
service = "whoami-b" service = "whoami-b"
entrypoints = [ "tcp" ] entryPoints = [ "tcp" ]
[tcp.routers.to-whoami-b.tls] [tcp.routers.to-whoami-b.tls]
passthrough=true passthrough=true
[tcp.routers.to-whoami-no-cert] [tcp.routers.to-whoami-no-cert]
rule = "HostSNI(`whoami-c.test`)" rule = "HostSNI(`whoami-c.test`)"
service = "whoami-no-cert" service = "whoami-no-cert"
entrypoints = [ "tcp" ] entryPoints = [ "tcp" ]
[tcp.routers.to-whoami-no-cert.tls] [tcp.routers.to-whoami-no-cert.tls]
[tcp.routers.to-whoami-no-tls] [tcp.routers.to-whoami-no-tls]
entrypoints = ["tcp"] entryPoints = ["tcp"]
rule="HostSNI(`*`)" rule="HostSNI(`*`)"
service = "whoami-no-tls" service = "whoami-no-tls"

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.tcp] [entryPoints.tcp]
address = ":8093" address = ":8093"
[api] [api]
@ -16,7 +16,7 @@ logLevel = "DEBUG"
[tcp] [tcp]
[tcp.routers] [tcp.routers]
[tcp.routers.to-whoami-no-tls] [tcp.routers.to-whoami-no-tls]
entrypoints = ["tcp"] entryPoints = ["tcp"]
rule="HostSNI(`*`)" rule="HostSNI(`*`)"
service = "whoami-no-tls" service = "whoami-no-tls"

View file

@ -9,8 +9,8 @@ logLevel = "DEBUG"
dialTimeout = "300ms" dialTimeout = "300ms"
responseHeaderTimeout = "300ms" responseHeaderTimeout = "300ms"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[accessLog] [accessLog]

View file

@ -8,8 +8,8 @@ logLevel = "DEBUG"
[serversTransport] [serversTransport]
rootCAs = [ """{{ .RootCertContent }}""" ] rootCAs = [ """{{ .RootCertContent }}""" ]
[entrypoints] [entryPoints]
[entrypoints.web-secure] [entryPoints.web-secure]
address = ":8443" address = ":8443"
[api] [api]

View file

@ -7,8 +7,8 @@ logLevel = "DEBUG"
[api] [api]
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[tracing] [tracing]

View file

@ -9,8 +9,8 @@ filePath = "traefik.log"
[accessLog] [accessLog]
filePath = "access.log" filePath = "access.log"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -5,8 +5,8 @@ sendAnonymousUsage = false
[log] [log]
logLevel = "DEBUG" logLevel = "DEBUG"
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -8,8 +8,8 @@ logLevel = "DEBUG"
[serversTransport] [serversTransport]
insecureSkipVerify=true insecureSkipVerify=true
[entrypoints] [entryPoints]
[entrypoints.wss] [entryPoints.wss]
address = ":8000" address = ":8000"
[api] [api]

View file

@ -20,8 +20,8 @@
# #
# Optional # Optional
# Default: # Default:
[entrypoints] [entryPoints]
[entrypoints.web] [entryPoints.web]
address = ":80" address = ":80"
################################################################ ################################################################