authentik: add support for basic http auth on arrstack
This commit is contained in:
@@ -8,6 +8,9 @@ entries:
|
||||
name: arrstack
|
||||
model: authentik_core.group
|
||||
id: arrstack
|
||||
attrs:
|
||||
arrstack_username: "arr"
|
||||
arrstack_password: "{{ arrstack_password }}"
|
||||
|
||||
{% for service in ["qBit", "Prowlarr", "Sonarr", "Radarr"] -%}
|
||||
- identifiers:
|
||||
@@ -18,6 +21,11 @@ entries:
|
||||
access_token_validity: hours=24
|
||||
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
||||
certificate: !Find [authentik_crypto.certificatekeypair, [name, "authentik Self-signed Certificate"]]
|
||||
{% if service != 'qBit' -%}
|
||||
basic_auth_enabled: true
|
||||
basic_auth_user_attribute: arrstack_username
|
||||
basic_auth_password_attribute: arrstack_password
|
||||
{% endif -%}
|
||||
intercept_header_auth: true
|
||||
external_host: https://{{ service | lower }}.{{ domain }}/
|
||||
mode: forward_single
|
||||
|
||||
@@ -15,7 +15,7 @@ services:
|
||||
- {{ helpers.traefik_labels('auth', port='9000') | indent(6) }}
|
||||
- traefik.http.middlewares.authentik.forwardauth.address=http://localhost:9000/outpost.goauthentik.io/auth/traefik
|
||||
- traefik.http.middlewares.authentik.forwardauth.trustForwardHeader=true
|
||||
- traefik.http.middlewares.authentik.forwardauth.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
|
||||
- traefik.http.middlewares.authentik.forwardauth.authResponseHeaders=Authorization,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
|
||||
restart: unless-stopped
|
||||
# Port forward is needed because traefik can't resolve the container name from the host network
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user