forked from SW/traefik
New API security
This commit is contained in:
committed by
Traefiker Bot
parent
1959e1fd44
commit
d044c0f4cc
25
integration/fixtures/simple_secure_api.toml
Normal file
25
integration/fixtures/simple_secure_api.toml
Normal file
@@ -0,0 +1,25 @@
|
||||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
address = ":8000"
|
||||
|
||||
[entryPoints.traefik]
|
||||
address = ":8080"
|
||||
|
||||
|
||||
[api]
|
||||
|
||||
[providers.file]
|
||||
filename = "{{ .SelfFilename }}"
|
||||
|
||||
[http.routers.api]
|
||||
rule="PathPrefix(`/secure`)"
|
||||
service="api@internal"
|
||||
middlewares=["strip"]
|
||||
|
||||
[http.middlewares.strip.stripPrefix]
|
||||
prefixes = [ "/secure" ]
|
||||
|
||||
Reference in New Issue
Block a user