Setup ArchiveBox authentication with oauth2-proxy #101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Enable authentication for ArchiveBox using oauth2-proxy as a reverse proxy auth provider.
Background
ArchiveBox supports reverse proxy authentication via headers from upstream auth providers like oauth2-proxy, Cloudflare Zero Trust, and Authentik.
Reference: ArchiveBox Wiki - Setting up Authentication
Required Configuration
These ArchiveBox environment variables need to be set:
REVERSE_PROXY_USER_HEADERX-Remote-UserREVERSE_PROXY_WHITELIST192.168.1.10/32LOGOUT_REDIRECT_URLhttps://auth.example.com/after/logoutTasks
REVERSE_PROXY_USER_HEADER=X-Remote-UserREVERSE_PROXY_WHITELIST= oauth2-proxy container IPREVERSE_PROXY_AUTH_HEADER=True(to enable the feature)Notes
REVERSE_PROXY_WHITELISTmust only contain the reverse proxy's IP — ArchiveBox fully trusts this range for authentication