oauth2-proxy/docs
Mateen Anjum 2427245a18
docs: fix invalid nginx error_page 401 example for API routes
The API route example used `error_page 401 =401;`, but nginx parses the
`=401` as the error_page URI, so an unauthenticated API call is internally
redirected to a location named /=401 instead of returning 401 to the client.
Drop the directive: without an error_page for 401, nginx returns the 401 from
auth_request to the client unchanged.

Also add a note that the browser and API snippets show only the routing
difference and the rest of the auth_request config (the auth_request_set /
proxy_set_header lines that pass X-User, X-Email, token and cookies) must be
replicated from the main example.

Fixes #3467.

Signed-off-by: Mateen Anjum <mateenali66@gmail.com>
2026-07-09 15:59:43 -04:00
..
docs docs: fix invalid nginx error_page 401 example for API routes 2026-07-09 15:59:43 -04:00
src/css Microsoft Entra ID provider (#2390) 2024-12-31 11:46:13 +00:00
static doc: readme overhaul and azure sponsorship (#2826) 2024-10-27 12:12:46 +00:00
versioned_docs release v7.15.3 (#3450) 2026-06-09 13:28:24 +02:00
versioned_sidebars release v7.15.0 (#3378) 2026-03-19 01:10:21 +08:00
.gitignore docs: restructure all options and flags (#2747) 2024-08-20 10:40:27 +02:00
README.md doc: SourceHut documentation fixes (#3170) 2025-08-20 12:02:32 +02:00
babel.config.js Migrate existing documentation to Docusaurus 2020-11-05 15:36:27 +00:00
docusaurus.config.js docs: update slack reference for CNCF 2026-06-09 13:50:16 +02:00
package.json release v7.15.2 (#3413) 2026-04-14 13:12:28 +02:00
sidebars.js docs: split integration.md into separate integration guides (#3299) 2026-01-16 09:37:52 +01:00
versions.json release v7.15.0 (#3378) 2026-03-19 01:10:21 +08:00

README.md

Website

This website is built using Docusaurus 2, a modern static website generator.

Installation

npm install

Local Development

npm start

This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.

Build

npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

GIT_USER=<Your GitHub username> USE_SSH=true npm deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.