mirror of
https://github.com/traefik/traefik.git
synced 2025-12-17 23:42:04 +01:00
Fix encodedCharacters entryPoint option documentation
This commit is contained in:
parent
f0957c8df4
commit
950e957b03
@ -129,14 +129,15 @@ They can be defined by using a file (YAML or TOML) or CLI arguments.
|
|||||||
trustedIPs:
|
trustedIPs:
|
||||||
- "127.0.0.1"
|
- "127.0.0.1"
|
||||||
- "192.168.0.1"
|
- "192.168.0.1"
|
||||||
encodedCharacters:
|
http:
|
||||||
allowEncodedSlash: true
|
encodedCharacters:
|
||||||
allowEncodedBackSlash: true
|
allowEncodedSlash: true
|
||||||
allowEncodedNullCharacter: true
|
allowEncodedBackSlash: true
|
||||||
allowEncodedSemicolon: true
|
allowEncodedNullCharacter: true
|
||||||
allowEncodedPercent: true
|
allowEncodedSemicolon: true
|
||||||
allowEncodedQuestionMark: true
|
allowEncodedPercent: true
|
||||||
allowEncodedHash: true
|
allowEncodedQuestionMark: true
|
||||||
|
allowEncodedHash: true
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
@ -164,7 +165,7 @@ They can be defined by using a file (YAML or TOML) or CLI arguments.
|
|||||||
[entryPoints.name.forwardedHeaders]
|
[entryPoints.name.forwardedHeaders]
|
||||||
insecure = true
|
insecure = true
|
||||||
trustedIPs = ["127.0.0.1", "192.168.0.1"]
|
trustedIPs = ["127.0.0.1", "192.168.0.1"]
|
||||||
[entryPoints.name.encodedCharacters]
|
[entryPoints.name.http.encodedCharacters]
|
||||||
allowEncodedSlash = true
|
allowEncodedSlash = true
|
||||||
allowEncodedBackSlash = true
|
allowEncodedBackSlash = true
|
||||||
allowEncodedNullCharacter = true
|
allowEncodedNullCharacter = true
|
||||||
@ -190,13 +191,13 @@ They can be defined by using a file (YAML or TOML) or CLI arguments.
|
|||||||
--entryPoints.name.proxyProtocol.trustedIPs=127.0.0.1,192.168.0.1
|
--entryPoints.name.proxyProtocol.trustedIPs=127.0.0.1,192.168.0.1
|
||||||
--entryPoints.name.forwardedHeaders.insecure=true
|
--entryPoints.name.forwardedHeaders.insecure=true
|
||||||
--entryPoints.name.forwardedHeaders.trustedIPs=127.0.0.1,192.168.0.1
|
--entryPoints.name.forwardedHeaders.trustedIPs=127.0.0.1,192.168.0.1
|
||||||
--entryPoints.name.encodedCharacters.allowEncodedSlash=true
|
--entryPoints.name.http.encodedCharacters.allowEncodedSlash=true
|
||||||
--entryPoints.name.encodedCharacters.allowEncodedBackSlash=true
|
--entryPoints.name.http.encodedCharacters.allowEncodedBackSlash=true
|
||||||
--entryPoints.name.encodedCharacters.allowEncodedNullCharacter=true
|
--entryPoints.name.http.encodedCharacters.allowEncodedNullCharacter=true
|
||||||
--entryPoints.name.encodedCharacters.allowEncodedSemicolon=true
|
--entryPoints.name.http.encodedCharacters.allowEncodedSemicolon=true
|
||||||
--entryPoints.name.encodedCharacters.allowEncodedPercent=true
|
--entryPoints.name.http.encodedCharacters.allowEncodedPercent=true
|
||||||
--entryPoints.name.encodedCharacters.allowEncodedQuestionMark=true
|
--entryPoints.name.http.encodedCharacters.allowEncodedQuestionMark=true
|
||||||
--entryPoints.name.encodedCharacters.allowEncodedHash=true
|
--entryPoints.name.http.encodedCharacters.allowEncodedHash=true
|
||||||
```
|
```
|
||||||
|
|
||||||
### Address
|
### Address
|
||||||
@ -657,8 +658,9 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
entryPoints:
|
entryPoints:
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
encodedCharacters:
|
http:
|
||||||
allowEncodedSlash: true
|
encodedCharacters:
|
||||||
|
allowEncodedSlash: true
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
@ -667,14 +669,14 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
|
|
||||||
[entryPoints.web.encodedCharacters]
|
[entryPoints.web.http.encodedCharacters]
|
||||||
allowEncodedSlash = true
|
allowEncodedSlash = true
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
## Static configuration
|
## Static configuration
|
||||||
--entryPoints.web.address=:80
|
--entryPoints.web.address=:80
|
||||||
--entryPoints.web.encodedCharacters.allowEncodedSlash=true
|
--entryPoints.web.http.encodedCharacters.allowEncodedSlash=true
|
||||||
```
|
```
|
||||||
|
|
||||||
??? info "`encodedCharacters.allowEncodedBackSlash`"
|
??? info "`encodedCharacters.allowEncodedBackSlash`"
|
||||||
@ -688,8 +690,9 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
entryPoints:
|
entryPoints:
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
encodedCharacters:
|
http:
|
||||||
allowEncodedBackSlash: true
|
encodedCharacters:
|
||||||
|
allowEncodedBackSlash: true
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
@ -698,14 +701,14 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
|
|
||||||
[entryPoints.web.encodedCharacters]
|
[entryPoints.web.http.encodedCharacters]
|
||||||
allowEncodedBackSlash = true
|
allowEncodedBackSlash = true
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
## Static configuration
|
## Static configuration
|
||||||
--entryPoints.web.address=:80
|
--entryPoints.web.address=:80
|
||||||
--entryPoints.web.encodedCharacters.allowEncodedBackSlash=true
|
--entryPoints.web.http.encodedCharacters.allowEncodedBackSlash=true
|
||||||
```
|
```
|
||||||
|
|
||||||
??? info "`encodedCharacters.allowEncodedNullCharacter`"
|
??? info "`encodedCharacters.allowEncodedNullCharacter`"
|
||||||
@ -719,8 +722,9 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
entryPoints:
|
entryPoints:
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
encodedCharacters:
|
http:
|
||||||
allowEncodedNullCharacter: true
|
encodedCharacters:
|
||||||
|
allowEncodedNullCharacter: true
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
@ -729,14 +733,14 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
|
|
||||||
[entryPoints.web.encodedCharacters]
|
[entryPoints.web.http.encodedCharacters]
|
||||||
allowEncodedNullCharacter = true
|
allowEncodedNullCharacter = true
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
## Static configuration
|
## Static configuration
|
||||||
--entryPoints.web.address=:80
|
--entryPoints.web.address=:80
|
||||||
--entryPoints.web.encodedCharacters.allowEncodedNullCharacter=true
|
--entryPoints.web.http.encodedCharacters.allowEncodedNullCharacter=true
|
||||||
```
|
```
|
||||||
|
|
||||||
??? info "`encodedCharacters.allowEncodedSemicolon`"
|
??? info "`encodedCharacters.allowEncodedSemicolon`"
|
||||||
@ -750,8 +754,9 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
entryPoints:
|
entryPoints:
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
encodedCharacters:
|
http:
|
||||||
allowEncodedSemicolon: true
|
encodedCharacters:
|
||||||
|
allowEncodedSemicolon: true
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
@ -760,14 +765,14 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
|
|
||||||
[entryPoints.web.encodedCharacters]
|
[entryPoints.web.http.encodedCharacters]
|
||||||
allowEncodedSemicolon = true
|
allowEncodedSemicolon = true
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
## Static configuration
|
## Static configuration
|
||||||
--entryPoints.web.address=:80
|
--entryPoints.web.address=:80
|
||||||
--entryPoints.web.encodedCharacters.allowEncodedSemicolon=true
|
--entryPoints.web.http.encodedCharacters.allowEncodedSemicolon=true
|
||||||
```
|
```
|
||||||
|
|
||||||
??? info "`encodedCharacters.allowEncodedPercent`"
|
??? info "`encodedCharacters.allowEncodedPercent`"
|
||||||
@ -781,8 +786,9 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
entryPoints:
|
entryPoints:
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
encodedCharacters:
|
http:
|
||||||
allowEncodedPercent: true
|
encodedCharacters:
|
||||||
|
allowEncodedPercent: true
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
@ -791,14 +797,14 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
|
|
||||||
[entryPoints.web.encodedCharacters]
|
[entryPoints.web.http.encodedCharacters]
|
||||||
allowEncodedPercent = true
|
allowEncodedPercent = true
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
## Static configuration
|
## Static configuration
|
||||||
--entryPoints.web.address=:80
|
--entryPoints.web.address=:80
|
||||||
--entryPoints.web.encodedCharacters.allowEncodedPercent=true
|
--entryPoints.web.http.encodedCharacters.allowEncodedPercent=true
|
||||||
```
|
```
|
||||||
|
|
||||||
??? info "`encodedCharacters.allowEncodedQuestionMark`"
|
??? info "`encodedCharacters.allowEncodedQuestionMark`"
|
||||||
@ -812,8 +818,9 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
entryPoints:
|
entryPoints:
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
encodedCharacters:
|
http:
|
||||||
allowEncodedQuestionMark: true
|
encodedCharacters:
|
||||||
|
allowEncodedQuestionMark: true
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
@ -822,14 +829,14 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
|
|
||||||
[entryPoints.web.encodedCharacters]
|
[entryPoints.web.http.encodedCharacters]
|
||||||
allowEncodedQuestionMark = true
|
allowEncodedQuestionMark = true
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
## Static configuration
|
## Static configuration
|
||||||
--entryPoints.web.address=:80
|
--entryPoints.web.address=:80
|
||||||
--entryPoints.web.encodedCharacters.allowEncodedQuestionMark=true
|
--entryPoints.web.http.encodedCharacters.allowEncodedQuestionMark=true
|
||||||
```
|
```
|
||||||
|
|
||||||
??? info "`encodedCharacters.allowEncodedHash`"
|
??? info "`encodedCharacters.allowEncodedHash`"
|
||||||
@ -843,8 +850,9 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
entryPoints:
|
entryPoints:
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
encodedCharacters:
|
http:
|
||||||
allowEncodedHash: true
|
encodedCharacters:
|
||||||
|
allowEncodedHash: true
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
@ -853,14 +861,14 @@ By default, Traefik rejects requests containing certain encoded characters that
|
|||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
|
|
||||||
[entryPoints.web.encodedCharacters]
|
[entryPoints.web.http.encodedCharacters]
|
||||||
allowEncodedHash = true
|
allowEncodedHash = true
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
## Static configuration
|
## Static configuration
|
||||||
--entryPoints.web.address=:80
|
--entryPoints.web.address=:80
|
||||||
--entryPoints.web.encodedCharacters.allowEncodedHash=true
|
--entryPoints.web.http.encodedCharacters.allowEncodedHash=true
|
||||||
```
|
```
|
||||||
|
|
||||||
### Transport
|
### Transport
|
||||||
|
|||||||
@ -93,21 +93,22 @@ All encoded character filtering is enabled by default (`false` means encoded cha
|
|||||||
entryPoints:
|
entryPoints:
|
||||||
websecure:
|
websecure:
|
||||||
address: ":443"
|
address: ":443"
|
||||||
encodedCharacters:
|
http:
|
||||||
allowEncodedSlash: false # %2F - Default: false (RECOMMENDED)
|
encodedCharacters:
|
||||||
allowEncodedBackSlash: false # %5C - Default: false (RECOMMENDED)
|
allowEncodedSlash: false # %2F - Default: false (RECOMMENDED)
|
||||||
allowEncodedNullCharacter: false # %00 - Default: false (RECOMMENDED)
|
allowEncodedBackSlash: false # %5C - Default: false (RECOMMENDED)
|
||||||
allowEncodedSemicolon: false # %3B - Default: false (RECOMMENDED)
|
allowEncodedNullCharacter: false # %00 - Default: false (RECOMMENDED)
|
||||||
allowEncodedPercent: false # %25 - Default: false (RECOMMENDED)
|
allowEncodedSemicolon: false # %3B - Default: false (RECOMMENDED)
|
||||||
allowEncodedQuestionMark: false # %3F - Default: false (RECOMMENDED)
|
allowEncodedPercent: false # %25 - Default: false (RECOMMENDED)
|
||||||
allowEncodedHash: false # %23 - Default: false (RECOMMENDED)
|
allowEncodedQuestionMark: false # %3F - Default: false (RECOMMENDED)
|
||||||
|
allowEncodedHash: false # %23 - Default: false (RECOMMENDED)
|
||||||
```
|
```
|
||||||
|
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
[entryPoints.websecure]
|
[entryPoints.websecure]
|
||||||
address = ":443"
|
address = ":443"
|
||||||
|
|
||||||
[entryPoints.websecure.encodedCharacters]
|
[entryPoints.websecure.http.encodedCharacters]
|
||||||
allowEncodedSlash = false
|
allowEncodedSlash = false
|
||||||
allowEncodedBackSlash = false
|
allowEncodedBackSlash = false
|
||||||
allowEncodedNullCharacter = false
|
allowEncodedNullCharacter = false
|
||||||
@ -119,11 +120,11 @@ entryPoints:
|
|||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
--entryPoints.websecure.address=:443
|
--entryPoints.websecure.address=:443
|
||||||
--entryPoints.websecure.encodedCharacters.allowEncodedSlash=false
|
--entryPoints.websecure.http.encodedCharacters.allowEncodedSlash=false
|
||||||
--entryPoints.websecure.encodedCharacters.allowEncodedBackSlash=false
|
--entryPoints.websecure.http.encodedCharacters.allowEncodedBackSlash=false
|
||||||
--entryPoints.websecure.encodedCharacters.allowEncodedNullCharacter=false
|
--entryPoints.websecure.http.encodedCharacters.allowEncodedNullCharacter=false
|
||||||
--entryPoints.websecure.encodedCharacters.allowEncodedSemicolon=false
|
--entryPoints.websecure.http.encodedCharacters.allowEncodedSemicolon=false
|
||||||
--entryPoints.websecure.encodedCharacters.allowEncodedPercent=false
|
--entryPoints.websecure.http.encodedCharacters.allowEncodedPercent=false
|
||||||
--entryPoints.websecure.encodedCharacters.allowEncodedQuestionMark=false
|
--entryPoints.websecure.http.encodedCharacters.allowEncodedQuestionMark=false
|
||||||
--entryPoints.websecure.encodedCharacters.allowEncodedHash=false
|
--entryPoints.websecure.http.encodedCharacters.allowEncodedHash=false
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user