
* Create _traefik_standalone_single_application.md Example for Authentik Single Application Proxy with Service example because this was unclear for many users and if you dont create a middleware for every application you get the error "no app for hostname". Signed-off-by: support-tt <61587422+support-tt@users.noreply.github.com> * Update _traefik_standalone_single_application.md Signed-off-by: support-tt <61587422+support-tt@users.noreply.github.com> * rename to old file Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: support-tt <61587422+support-tt@users.noreply.github.com> Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
41 lines
1.3 KiB
Markdown
41 lines
1.3 KiB
Markdown
```yaml
|
|
http:
|
|
middlewares:
|
|
authentik:
|
|
forwardAuth:
|
|
address: http://outpost.company:9000/outpost.goauthentik.io/auth/traefik
|
|
trustForwardHeader: true
|
|
authResponseHeaders:
|
|
- X-authentik-username
|
|
- X-authentik-groups
|
|
- X-authentik-email
|
|
- X-authentik-name
|
|
- X-authentik-uid
|
|
- X-authentik-jwt
|
|
- X-authentik-meta-jwks
|
|
- X-authentik-meta-outpost
|
|
- X-authentik-meta-provider
|
|
- X-authentik-meta-app
|
|
- X-authentik-meta-version
|
|
routers:
|
|
default-router:
|
|
rule: "Host(`app.company`)"
|
|
middlewares:
|
|
- name: authentik
|
|
priority: 10
|
|
services: app
|
|
default-router-auth:
|
|
match: "Host(`app.company`) && PathPrefix(`/outpost.goauthentik.io/`)"
|
|
priority: 15
|
|
services: authentik
|
|
services:
|
|
app:
|
|
loadBalancer:
|
|
servers:
|
|
- url: http://ipp.internal
|
|
authentik:
|
|
loadBalancer:
|
|
servers:
|
|
- url: http://outpost.company:9000/outpost.goauthentik.io
|
|
```
|