Skip to content

Instantly share code, notes, and snippets.

@lobstaj
lobstaj / cookieauth.conf
Last active May 30, 2023 07:56 — forked from eatnumber1/cookieauth.conf
Stateless Nginx Cookie Authentication
# Simple Cookie Authorization (SCA)
#
# SCA sets up an auth scheme which uses a secure cookie, presenting basic
# auth if the cookie isn't supplied.
#
# Put this file in /etc/nginx/conf.d
#
# To use it, put a stanza like the following in a server section:
#
# set $sca_realm "My Website";