doc: use the same entry point name everywhere
This commit is contained in:
parent
c796cd2250
commit
a4e8d3cb36
34 changed files with 83 additions and 83 deletions
|
@ -56,7 +56,7 @@ Please check the [configuration examples below](#configuration-examples) for mor
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
|
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":443"
|
address = ":443"
|
||||||
|
|
||||||
[certificatesResolvers.le.acme]
|
[certificatesResolvers.le.acme]
|
||||||
|
@ -72,7 +72,7 @@ Please check the [configuration examples below](#configuration-examples) for mor
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
|
|
||||||
web-secure:
|
websecure:
|
||||||
address: ":443"
|
address: ":443"
|
||||||
|
|
||||||
certificatesResolvers:
|
certificatesResolvers:
|
||||||
|
@ -196,7 +196,7 @@ when using the `HTTP-01` challenge, `certificatesResolvers.le.acme.httpChallenge
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
|
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":443"
|
address = ":443"
|
||||||
|
|
||||||
[certificatesResolvers.le.acme]
|
[certificatesResolvers.le.acme]
|
||||||
|
@ -210,7 +210,7 @@ when using the `HTTP-01` challenge, `certificatesResolvers.le.acme.httpChallenge
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
|
|
||||||
web-secure:
|
websecure:
|
||||||
address: ":443"
|
address: ":443"
|
||||||
|
|
||||||
certificatesResolvers:
|
certificatesResolvers:
|
||||||
|
|
|
@ -190,17 +190,17 @@ TLS parameters used to be specified in the static configuration, as an entryPoin
|
||||||
With Traefik v2, a new dynamic TLS section at the root contains all the desired TLS configurations.
|
With Traefik v2, a new dynamic TLS section at the root contains all the desired TLS configurations.
|
||||||
Then, a [router's TLS field](../routing/routers/index.md#tls) can refer to one of the [TLS configurations](../https/tls.md) defined at the root, hence defining the [TLS configuration](../https/tls.md) for that router.
|
Then, a [router's TLS field](../routing/routers/index.md#tls) can refer to one of the [TLS configurations](../https/tls.md) defined at the root, hence defining the [TLS configuration](../https/tls.md) for that router.
|
||||||
|
|
||||||
!!! example "TLS on web-secure entryPoint becomes TLS option on Router-1"
|
!!! example "TLS on websecure entryPoint becomes TLS option on Router-1"
|
||||||
|
|
||||||
!!! info "v1"
|
!!! info "v1"
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
# static configuration
|
# static configuration
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":443"
|
address = ":443"
|
||||||
|
|
||||||
[entryPoints.web-secure.tls]
|
[entryPoints.websecure.tls]
|
||||||
minVersion = "VersionTLS12"
|
minVersion = "VersionTLS12"
|
||||||
cipherSuites = [
|
cipherSuites = [
|
||||||
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
|
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
|
||||||
|
@ -210,13 +210,13 @@ Then, a [router's TLS field](../routing/routers/index.md#tls) can refer to one o
|
||||||
"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
|
"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
|
||||||
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
|
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
|
||||||
]
|
]
|
||||||
[[entryPoints.web-secure.tls.certificates]]
|
[[entryPoints.websecure.tls.certificates]]
|
||||||
certFile = "path/to/my.cert"
|
certFile = "path/to/my.cert"
|
||||||
keyFile = "path/to/my.key"
|
keyFile = "path/to/my.key"
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
--entryPoints='Name:web-secure Address::443 TLS:path/to/my.cert,path/to/my.key TLS.MinVersion:VersionTLS12 TLS.CipherSuites:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256'
|
--entryPoints='Name:websecure Address::443 TLS:path/to/my.cert,path/to/my.key TLS.MinVersion:VersionTLS12 TLS.CipherSuites:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256'
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! info "v2"
|
!!! info "v2"
|
||||||
|
@ -818,32 +818,32 @@ with the path `/admin` stripped, e.g. to `http://<IP>:<port>/`. In this case, yo
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
# static configuration
|
# static configuration
|
||||||
defaultEntryPoints = ["web-secure","web"]
|
defaultEntryPoints = ["websecure","web"]
|
||||||
|
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
[entryPoints.web.redirect]
|
[entryPoints.web.redirect]
|
||||||
entryPoint = "webs"
|
entryPoint = "webs"
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":443"
|
address = ":443"
|
||||||
[entryPoints.https.tls]
|
[entryPoints.https.tls]
|
||||||
|
|
||||||
[acme]
|
[acme]
|
||||||
email = "your-email-here@my-awesome-app.org"
|
email = "your-email-here@my-awesome-app.org"
|
||||||
storage = "acme.json"
|
storage = "acme.json"
|
||||||
entryPoint = "web-secure"
|
entryPoint = "websecure"
|
||||||
onHostRule = true
|
onHostRule = true
|
||||||
[acme.httpChallenge]
|
[acme.httpChallenge]
|
||||||
entryPoint = "web"
|
entryPoint = "web"
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
--defaultentrypoints=web-secure,web
|
--defaultentrypoints=websecure,web
|
||||||
--entryPoints=Name:web Address::80 Redirect.EntryPoint:web-secure
|
--entryPoints=Name:web Address::80 Redirect.EntryPoint:websecure
|
||||||
--entryPoints=Name:web-secure Address::443 TLS
|
--entryPoints=Name:websecure Address::443 TLS
|
||||||
--acme.email=your-email-here@my-awesome-app.org
|
--acme.email=your-email-here@my-awesome-app.org
|
||||||
--acme.storage=acme.json
|
--acme.storage=acme.json
|
||||||
--acme.entryPoint=web-secure
|
--acme.entryPoint=websecure
|
||||||
--acme.onHostRule=true
|
--acme.onHostRule=true
|
||||||
--acme.httpchallenge.entrypoint=http
|
--acme.httpchallenge.entrypoint=http
|
||||||
```
|
```
|
||||||
|
@ -856,7 +856,7 @@ with the path `/admin` stripped, e.g. to `http://<IP>:<port>/`. In this case, yo
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
|
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":443"
|
address = ":443"
|
||||||
|
|
||||||
[certificatesResolvers.sample.acme]
|
[certificatesResolvers.sample.acme]
|
||||||
|
@ -872,7 +872,7 @@ with the path `/admin` stripped, e.g. to `http://<IP>:<port>/`. In this case, yo
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
|
|
||||||
web-secure:
|
websecure:
|
||||||
address: ":443"
|
address: ":443"
|
||||||
|
|
||||||
certificatesResolvers:
|
certificatesResolvers:
|
||||||
|
@ -1069,7 +1069,7 @@ Each root item has been moved to a related section or removed.
|
||||||
providersThrottleDuration = "2s"
|
providersThrottleDuration = "2s"
|
||||||
AllowMinWeightZero = true
|
AllowMinWeightZero = true
|
||||||
debug = true
|
debug = true
|
||||||
defaultEntryPoints = ["web", "web-secure"]
|
defaultEntryPoints = ["web", "websecure"]
|
||||||
keepTrailingSlash = false
|
keepTrailingSlash = false
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1083,7 +1083,7 @@ Each root item has been moved to a related section or removed.
|
||||||
--providersthrottleduration=2s
|
--providersthrottleduration=2s
|
||||||
--allowminweightzero=true
|
--allowminweightzero=true
|
||||||
--debug=true
|
--debug=true
|
||||||
--defaultentrypoints=web,web-secure
|
--defaultentrypoints=web,websecure
|
||||||
--keeptrailingslash=true
|
--keeptrailingslash=true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1156,21 +1156,21 @@ As the dashboard access is now secured by default you can either:
|
||||||
## static configuration
|
## static configuration
|
||||||
# traefik.toml
|
# traefik.toml
|
||||||
|
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":443"
|
address = ":443"
|
||||||
[entryPoints.web-secure.tls]
|
[entryPoints.websecure.tls]
|
||||||
[entryPoints.web-secure.auth]
|
[entryPoints.websecure.auth]
|
||||||
[entryPoints.web-secure.auth.basic]
|
[entryPoints.websecure.auth.basic]
|
||||||
users = [
|
users = [
|
||||||
"test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/"
|
"test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/"
|
||||||
]
|
]
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
entryPoint = "web-secure"
|
entryPoint = "websecure"
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
--entryPoints='Name:web-secure Address::443 TLS Auth.Basic.Users:test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/'
|
--entryPoints='Name:websecure Address::443 TLS Auth.Basic.Users:test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/'
|
||||||
--api
|
--api
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1180,7 +1180,7 @@ As the dashboard access is now secured by default you can either:
|
||||||
# dynamic configuration
|
# dynamic configuration
|
||||||
labels:
|
labels:
|
||||||
- "traefik.http.routers.api.rule=Host(`traefik.docker.localhost`)"
|
- "traefik.http.routers.api.rule=Host(`traefik.docker.localhost`)"
|
||||||
- "traefik.http.routers.api.entrypoints=web-secured"
|
- "traefik.http.routers.api.entrypoints=websecured"
|
||||||
- "traefik.http.routers.api.service=api@internal"
|
- "traefik.http.routers.api.service=api@internal"
|
||||||
- "traefik.http.routers.api.middlewares=myAuth"
|
- "traefik.http.routers.api.middlewares=myAuth"
|
||||||
- "traefik.http.routers.api.tls"
|
- "traefik.http.routers.api.tls"
|
||||||
|
@ -1191,7 +1191,7 @@ As the dashboard access is now secured by default you can either:
|
||||||
## static configuration
|
## static configuration
|
||||||
# traefik.toml
|
# traefik.toml
|
||||||
|
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":443"
|
address = ":443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
@ -1206,7 +1206,7 @@ As the dashboard access is now secured by default you can either:
|
||||||
|
|
||||||
[http.routers.api]
|
[http.routers.api]
|
||||||
rule = "Host(`traefik.docker.localhost`)"
|
rule = "Host(`traefik.docker.localhost`)"
|
||||||
entrypoints = ["web-secure"]
|
entrypoints = ["websecure"]
|
||||||
service = "api@internal"
|
service = "api@internal"
|
||||||
middlewares = ["myAuth"]
|
middlewares = ["myAuth"]
|
||||||
[http.routers.api.tls]
|
[http.routers.api.tls]
|
||||||
|
@ -1222,7 +1222,7 @@ As the dashboard access is now secured by default you can either:
|
||||||
# traefik.yaml
|
# traefik.yaml
|
||||||
|
|
||||||
entryPoints:
|
entryPoints:
|
||||||
web-secure:
|
websecure:
|
||||||
address: ':443'
|
address: ':443'
|
||||||
|
|
||||||
api: {}
|
api: {}
|
||||||
|
@ -1241,7 +1241,7 @@ As the dashboard access is now secured by default you can either:
|
||||||
api:
|
api:
|
||||||
rule: Host(`traefik.docker.localhost`)
|
rule: Host(`traefik.docker.localhost`)
|
||||||
entrypoints:
|
entrypoints:
|
||||||
- web-secure
|
- websecure
|
||||||
service: api@internal
|
service: api@internal
|
||||||
middlewares:
|
middlewares:
|
||||||
- myAuth
|
- myAuth
|
||||||
|
|
|
@ -78,7 +78,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- web
|
- web
|
||||||
- web-secure
|
- websecure
|
||||||
routes:
|
routes:
|
||||||
- match: Host(`foo.com`) && PathPrefix(`/bar`)
|
- match: Host(`foo.com`) && PathPrefix(`/bar`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
|
|
|
@ -152,7 +152,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- web
|
- web
|
||||||
- web-secure
|
- websecure
|
||||||
routes:
|
routes:
|
||||||
- match: Host(`foo.com`) && PathPrefix(`/bar`)
|
- match: Host(`foo.com`) && PathPrefix(`/bar`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = "{{ .PortHTTP }}"
|
address = "{{ .PortHTTP }}"
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = "{{ .PortHTTPS }}"
|
address = "{{ .PortHTTPS }}"
|
||||||
|
|
||||||
{{range $name, $resolvers := .Acme }}
|
{{range $name, $resolvers := .Acme }}
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
[http.routers]
|
[http.routers]
|
||||||
[http.routers.test]
|
[http.routers.test]
|
||||||
entryPoints = ["web-secure"]
|
entryPoints = ["websecure"]
|
||||||
rule = "Host(`traefik.acme.wtf`)"
|
rule = "Host(`traefik.acme.wtf`)"
|
||||||
service = "test"
|
service = "test"
|
||||||
[http.routers.test.tls]
|
[http.routers.test.tls]
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = "{{ .PortHTTP }}"
|
address = "{{ .PortHTTP }}"
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = "{{ .PortHTTPS }}"
|
address = "{{ .PortHTTPS }}"
|
||||||
|
|
||||||
{{range $name, $resolvers := .Acme }}
|
{{range $name, $resolvers := .Acme }}
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
[http.routers]
|
[http.routers]
|
||||||
[http.routers.test]
|
[http.routers.test]
|
||||||
entryPoints = ["web-secure"]
|
entryPoints = ["websecure"]
|
||||||
rule = "PathPrefix(`/`)"
|
rule = "PathPrefix(`/`)"
|
||||||
service = "test"
|
service = "test"
|
||||||
[http.routers.test.tls]
|
[http.routers.test.tls]
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = "{{ .PortHTTP }}"
|
address = "{{ .PortHTTP }}"
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = "{{ .PortHTTPS }}"
|
address = "{{ .PortHTTPS }}"
|
||||||
|
|
||||||
{{range $name, $resolvers := .Acme }}
|
{{range $name, $resolvers := .Acme }}
|
||||||
|
@ -45,14 +45,14 @@
|
||||||
|
|
||||||
[http.routers]
|
[http.routers]
|
||||||
[http.routers.test]
|
[http.routers.test]
|
||||||
entryPoints = ["web-secure"]
|
entryPoints = ["websecure"]
|
||||||
rule = "Host(`traefik.acme.wtf`)"
|
rule = "Host(`traefik.acme.wtf`)"
|
||||||
service = "test"
|
service = "test"
|
||||||
[http.routers.test.tls]
|
[http.routers.test.tls]
|
||||||
certResolver = "default"
|
certResolver = "default"
|
||||||
|
|
||||||
[http.routers.tchouk]
|
[http.routers.tchouk]
|
||||||
entryPoints = ["web-secure"]
|
entryPoints = ["websecure"]
|
||||||
rule = "Host(`tchouk.acme.wtf`)"
|
rule = "Host(`tchouk.acme.wtf`)"
|
||||||
service = "test"
|
service = "test"
|
||||||
[http.routers.tchouk.tls]
|
[http.routers.tchouk.tls]
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = "{{ .PortHTTP }}"
|
address = "{{ .PortHTTP }}"
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = "{{ .PortHTTPS }}"
|
address = "{{ .PortHTTPS }}"
|
||||||
|
|
||||||
{{range $name, $resolvers := .Acme }}
|
{{range $name, $resolvers := .Acme }}
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
[tcp.routers]
|
[tcp.routers]
|
||||||
[tcp.routers.test]
|
[tcp.routers.test]
|
||||||
entryPoints = ["web-secure"]
|
entryPoints = ["websecure"]
|
||||||
rule = "HostSNI(`traefik.acme.wtf`)"
|
rule = "HostSNI(`traefik.acme.wtf`)"
|
||||||
service = "test"
|
service = "test"
|
||||||
[tcp.routers.test.tls]
|
[tcp.routers.test.tls]
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = "{{ .PortHTTP }}"
|
address = "{{ .PortHTTP }}"
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = "{{ .PortHTTPS }}"
|
address = "{{ .PortHTTPS }}"
|
||||||
|
|
||||||
{{range $name, $resolvers := .Acme }}
|
{{range $name, $resolvers := .Acme }}
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
[http.routers]
|
[http.routers]
|
||||||
[http.routers.test]
|
[http.routers.test]
|
||||||
entryPoints = ["web-secure"]
|
entryPoints = ["websecure"]
|
||||||
rule = "Host(`traefik.acme.wtf`)"
|
rule = "Host(`traefik.acme.wtf`)"
|
||||||
service = "test"
|
service = "test"
|
||||||
[http.routers.test.tls]
|
[http.routers.test.tls]
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = "{{ .PortHTTP }}"
|
address = "{{ .PortHTTP }}"
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = "{{ .PortHTTPS }}"
|
address = "{{ .PortHTTPS }}"
|
||||||
|
|
||||||
{{range $name, $resolvers := .Acme }}
|
{{range $name, $resolvers := .Acme }}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = "{{ .PortHTTP }}"
|
address = "{{ .PortHTTP }}"
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = "{{ .PortHTTPS }}"
|
address = "{{ .PortHTTPS }}"
|
||||||
|
|
||||||
[entryPoints.traefik]
|
[entryPoints.traefik]
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
[http.routers]
|
[http.routers]
|
||||||
[http.routers.test]
|
[http.routers.test]
|
||||||
entryPoints = ["web-secure"]
|
entryPoints = ["websecure"]
|
||||||
rule = "Host(`traefik.acme.wtf`)"
|
rule = "Host(`traefik.acme.wtf`)"
|
||||||
service = "test"
|
service = "test"
|
||||||
[http.routers.test.tls]
|
[http.routers.test.tls]
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
rootCAs = [ """{{ .CertContent }}""" ]
|
rootCAs = [ """{{ .CertContent }}""" ]
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
insecureSkipVerify = true
|
insecureSkipVerify = true
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
rootCAs = [ """{{ .CertContent }}""" ]
|
rootCAs = [ """{{ .CertContent }}""" ]
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[entryPoints.https02]
|
[entryPoints.https02]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":8888"
|
address = ":8888"
|
||||||
|
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":8443"
|
address = ":8443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
service = "service1"
|
service = "service1"
|
||||||
|
|
||||||
[http.routers.router1TLS]
|
[http.routers.router1TLS]
|
||||||
entryPoints = [ "web-secure" ]
|
entryPoints = [ "websecure" ]
|
||||||
rule = "Host(`example.com`)"
|
rule = "Host(`example.com`)"
|
||||||
service = "service1"
|
service = "service1"
|
||||||
[http.routers.router1TLS.tls]
|
[http.routers.router1TLS.tls]
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
service = "service1"
|
service = "service1"
|
||||||
|
|
||||||
[http.routers.router2TLS]
|
[http.routers.router2TLS]
|
||||||
entryPoints = [ "web-secure" ]
|
entryPoints = [ "websecure" ]
|
||||||
rule = "Host(`example2.com`)"
|
rule = "Host(`example2.com`)"
|
||||||
service = "service1"
|
service = "service1"
|
||||||
[http.routers.router2TLS.tls]
|
[http.routers.router2TLS.tls]
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
service = "service1"
|
service = "service1"
|
||||||
|
|
||||||
[http.routers.router3TLS]
|
[http.routers.router3TLS]
|
||||||
entryPoints = [ "web-secure" ]
|
entryPoints = [ "websecure" ]
|
||||||
rule = "Host(`test.com`)"
|
rule = "Host(`test.com`)"
|
||||||
service = "service1"
|
service = "service1"
|
||||||
[http.routers.router3TLS.tls]
|
[http.routers.router3TLS.tls]
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
service = "service1"
|
service = "service1"
|
||||||
|
|
||||||
[http.routers.router4TLS]
|
[http.routers.router4TLS]
|
||||||
entryPoints = [ "web-secure" ]
|
entryPoints = [ "websecure" ]
|
||||||
rule = "Host(`test2.com`)"
|
rule = "Host(`test2.com`)"
|
||||||
service = "service1"
|
service = "service1"
|
||||||
[http.routers.router4TLS.tls]
|
[http.routers.router4TLS.tls]
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
service = "service1"
|
service = "service1"
|
||||||
|
|
||||||
[http.routers.router5TLS]
|
[http.routers.router5TLS]
|
||||||
entryPoints = [ "web-secure" ]
|
entryPoints = [ "websecure" ]
|
||||||
rule = "Host(`foo.com`)"
|
rule = "Host(`foo.com`)"
|
||||||
service = "service1"
|
service = "service1"
|
||||||
[http.routers.router5TLS.tls]
|
[http.routers.router5TLS.tls]
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
service = "service1"
|
service = "service1"
|
||||||
|
|
||||||
[http.routers.router6TLS]
|
[http.routers.router6TLS]
|
||||||
entryPoints = [ "web-secure" ]
|
entryPoints = [ "websecure" ]
|
||||||
rule = "Host(`foo2.com`)"
|
rule = "Host(`foo2.com`)"
|
||||||
service = "service1"
|
service = "service1"
|
||||||
[http.routers.router6TLS.tls]
|
[http.routers.router6TLS.tls]
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
service = "service1"
|
service = "service1"
|
||||||
|
|
||||||
[http.routers.router7TLS]
|
[http.routers.router7TLS]
|
||||||
entryPoints = [ "web-secure" ]
|
entryPoints = [ "websecure" ]
|
||||||
rule = "Host(`bar.com`)"
|
rule = "Host(`bar.com`)"
|
||||||
service = "service1"
|
service = "service1"
|
||||||
[http.routers.router7TLS.tls]
|
[http.routers.router7TLS.tls]
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
service = "service1"
|
service = "service1"
|
||||||
|
|
||||||
[http.routers.router8TLS]
|
[http.routers.router8TLS]
|
||||||
entryPoints = [ "web-secure" ]
|
entryPoints = [ "websecure" ]
|
||||||
rule = "Host(`bar2.com`)"
|
rule = "Host(`bar2.com`)"
|
||||||
service = "service1"
|
service = "service1"
|
||||||
[http.routers.router8TLS.tls]
|
[http.routers.router8TLS.tls]
|
||||||
|
@ -124,7 +124,7 @@
|
||||||
service = "service1"
|
service = "service1"
|
||||||
|
|
||||||
[http.routers.router9TLS]
|
[http.routers.router9TLS]
|
||||||
entryPoints = [ "web-secure" ]
|
entryPoints = [ "websecure" ]
|
||||||
rule = "Host(`pow.com`)"
|
rule = "Host(`pow.com`)"
|
||||||
service = "service1"
|
service = "service1"
|
||||||
[http.routers.router9TLS.tls]
|
[http.routers.router9TLS.tls]
|
||||||
|
@ -136,7 +136,7 @@
|
||||||
service = "service1"
|
service = "service1"
|
||||||
|
|
||||||
[http.routers.router10TLS]
|
[http.routers.router10TLS]
|
||||||
entryPoints = [ "web-secure" ]
|
entryPoints = [ "websecure" ]
|
||||||
rule = "Host(`pow2.com`)"
|
rule = "Host(`pow2.com`)"
|
||||||
service = "service1"
|
service = "service1"
|
||||||
[http.routers.router10TLS.tls]
|
[http.routers.router10TLS.tls]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
level = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":4443"
|
address = ":4443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
rootCAs = [ """{{ .RootCertContent }}""" ]
|
rootCAs = [ """{{ .RootCertContent }}""" ]
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.websecure]
|
||||||
address = ":8443"
|
address = ":8443"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
|
@ -67,7 +67,7 @@ func TestHandler_EntryPoints(t *testing.T) {
|
||||||
TrustedIPs: []string{"192.168.1.3", "192.168.1.4"},
|
TrustedIPs: []string{"192.168.1.3", "192.168.1.4"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"web-secure": {
|
"websecure": {
|
||||||
Address: ":443",
|
Address: ":443",
|
||||||
Transport: &static.EntryPointsTransport{
|
Transport: &static.EntryPointsTransport{
|
||||||
LifeCycle: &static.LifeCycle{
|
LifeCycle: &static.LifeCycle{
|
||||||
|
|
2
pkg/api/testdata/entrypoints.json
vendored
2
pkg/api/testdata/entrypoints.json
vendored
|
@ -37,7 +37,7 @@
|
||||||
"192.168.1.40"
|
"192.168.1.40"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"name": "web-secure",
|
"name": "websecure",
|
||||||
"proxyProtocol": {
|
"proxyProtocol": {
|
||||||
"insecure": true,
|
"insecure": true,
|
||||||
"trustedIPs": [
|
"trustedIPs": [
|
||||||
|
|
|
@ -66,7 +66,7 @@ metadata:
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: web-secure
|
- name: websecure
|
||||||
port: 443
|
port: 443
|
||||||
targetPort: 8443
|
targetPort: 8443
|
||||||
selector:
|
selector:
|
||||||
|
@ -85,7 +85,7 @@ subsets:
|
||||||
- ip: 10.10.0.5
|
- ip: 10.10.0.5
|
||||||
- ip: 10.10.0.6
|
- ip: 10.10.0.6
|
||||||
ports:
|
ports:
|
||||||
- name: web-secure
|
- name: websecure
|
||||||
port: 8443
|
port: 8443
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -97,7 +97,7 @@ metadata:
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: web-secure2
|
- name: websecure2
|
||||||
port: 8443
|
port: 8443
|
||||||
scheme: https
|
scheme: https
|
||||||
selector:
|
selector:
|
||||||
|
@ -116,5 +116,5 @@ subsets:
|
||||||
- ip: 10.10.0.7
|
- ip: 10.10.0.7
|
||||||
- ip: 10.10.0.8
|
- ip: 10.10.0.8
|
||||||
ports:
|
ports:
|
||||||
- name: web-secure2
|
- name: websecure2
|
||||||
port: 8443
|
port: 8443
|
||||||
|
|
|
@ -66,7 +66,7 @@ metadata:
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: web-secure
|
- name: websecure
|
||||||
port: 443
|
port: 443
|
||||||
selector:
|
selector:
|
||||||
app: containous
|
app: containous
|
||||||
|
@ -84,5 +84,5 @@ subsets:
|
||||||
- ip: 10.10.0.5
|
- ip: 10.10.0.5
|
||||||
- ip: 10.10.0.6
|
- ip: 10.10.0.6
|
||||||
ports:
|
ports:
|
||||||
- name: web-secure
|
- name: websecure
|
||||||
port: 443
|
port: 443
|
||||||
|
|
Loading…
Reference in a new issue