docs/content/integration/trusted-header-sso/paperless/index.md
This is a guide on integration of Authelia and Paperless (specifically Paperless-ngx) via the trusted header SSO authentication.
As with all guides in this section it's important you read the introduction first.
This example makes the following assumptions:
https://paperless.{{< sitevar name="domain" nojs="example.com" >}}/https://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}/Some of the values presented in this guide can automatically be replaced with documentation variables.
{{< sitevar-preferences >}}
To configure Paperless to trust the Remote-User header do the following:
PAPERLESS_ENABLE_HTTP_REMOTE_USER=true
PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME=HTTP_REMOTE_USER
PAPERLESS_LOGOUT_REDIRECT_URL=https://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}/logout